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

Instead of rosrun Use gdb to find the point in which your node is crashing.

 gdb ~/(catkin_ws)/devel/lib/(pkg_name)/(executable_name)

enter r and wait for the node to crash, you will have some information about the line in which crash happens and even the line number

Enter bt to track the segmentation fault. One of the most common causes of the segmentation fault is attempting to access a vector index which does not exist