ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you are using ROS Indigo or newer, you can use --prefix command line argument of rosrun (ref)

rosrun --prefix 'gdb -ex run --args' object_recognition_capture upload -i final.bag -n 'example' example --commit

On older ROS versions (or as an alternative solution), you can wrap your node in a launch file, then add launch-prefix="gdb -ex run --args" to any <node> tag, as described in this tutorial.