ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
"randomly dying" is a symptom of a wide variety of bugs and other programming errors; most of which result in some form of memory corruption.
I suggest you run your node in gdb or valgrind; if you're running your node from a launch file have a look at http://wiki.ros.org/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB , or if you're using rosrun you can use the --prefix
option to run gdb:
rosrun --prefix 'gdb -ex run --args' my_package my_node
or valgrind:
rosrun --prefix valgrind my_package my_node