Ask Your Question

debugging with eclipse

asked 2014-02-11 04:32:59 -0600

shangl gravatar image

updated 2016-10-24 08:35:51 -0600

ngrennan gravatar image

hi, i struggle a lot with using ros with eclipse

first of all, i did all that is standing on the ros with IDE page. i can import the project to eclipse and build it. the indexer is absolutely not working (it recognizes rosnode etc, but i get errors like "namespace std is amgiguous" - i use eclipse kepler). however, for now i just ignored that, because i can still do some autocompletion stuff etc.. building works fine, but when it comes to debug the program, i have no clue what to do. the tutorial says:

"Create a new launch configuration, by clicking on Run --> Run configurations... --> C/C++ Application (double click or click on New). Select the correct binary on the main tab (Search project should work when your binary was already built). Then in the environment tab, add (at least)" --> which binary? i cannot execute the binary directly, right? i have to use rosrun. so what should be in there? i dont see any binaries listed when i click on "search project"

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-02-11 08:06:01 -0600

ahendrix gravatar image

Not a whole answer, but there is no problem executing binaries directly. rosrun only exists to make finding them easier.

Sadly, I don't have any input on why Eclipse isn't finding your executables in the first place. In general, CMake and catkin place executables in devel/lib/{package_name}/{binary} when they're built.

edit flag offensive delete link more


do i have to pass some special arguments to it? when i call a binary working perfectly fine with rosrun, it crashes with a segmentation fault

shangl gravatar image shangl  ( 2014-02-12 01:35:52 -0600 )edit

You shouldn't have to pass any special arguments, but you may need to set the LD_LIBRARY_PATH environment variable if eclipse/ROS integration doesn't do that for you. Beyond that, I'd run it in a debugger.

ahendrix gravatar image ahendrix  ( 2014-02-12 06:19:35 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-02-11 04:32:59 -0600

Seen: 471 times

Last updated: Feb 11 '14