Debugging ROS with eclipse - with arguments

asked 2018-12-22 01:36:23 -0500

danielroth gravatar image

updated 2018-12-22 09:43:25 -0500

gvdhoorn gravatar image

Hi all, my goal is to be able to debug the project VINS-MONO ( https://github.com/HKUST-Aerial-Robot... ) in eclipse. to do so I've preformed the following steps:

  • install eclipse
  • follow wiki.ros.org/IDEs instrunction in the eclipse section
  • create a debug project as instructed in www.ceh-photo.de/blog/?p=899
  • at this point everything compiled and seemed to work
  • separate my ROSlaunch file (which launches three nodes) into two separate files - one with the launch-prefix flag (this is the node I wish to debug) and the other two nodes
  • running in three different consoles: the rosbag, the two launch files
  • running the debug project in eclipse all of this seems to work but the eclipse is not stopping at any breakpoints I set (even thous after main()) and it seems that the eclipse is unaware to the rosbag data which starts every subscriber in the code

*after that I tried adding the arguments which appear in the launch file to the eclipse under run->debug-configuration->arguments. I just pasted them as they show on the launch file and it doesn't want to run the debug anymore (syntax error in arguments).

so my questions are these:

  • Am I doing something wrong or this is the proper way to debug ROS in eclipse?
  • How do I set the arguments in the eclipse if at all?
  • Why is it not working :( ?

Thank you for replying!

edit retag flag offensive close merge delete