Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Debugging ROS with eclipse - with arguments

Hi all, my goal is to be able to debug the project VINS-MONO (https://github.com/HKUST-Aerial-Robotics/VINS-Mono) 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!

Debugging ROS with eclipse - with arguments

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

  • install eclipse * eclipse
  • follow wiki.ros.org/IDEs instrunction in the eclipse section * section
  • create a debug project as instructed in www.ceh-photo.de/blog/?p=899 * www.ceh-photo.de/blog/?p=899
  • at this point everything compiled and seemed to work * 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 * nodes
  • running in three different consoles: the rosbag, the two launch files * 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: * these:

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

Thank you for replying!