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

Revision history [back]

If you look at roscpp, the current handler on SIGINT just call ros::requestShutdown() so you should fine as it is.

See: https://code.ros.org/svn/ros/stacks/ros_comm/tags/electric/clients/cpp/roscpp/src/libros/init.cpp

On a different point, requesting a shutdown on ROS just switch a boolean variable (see the previous source code) so IMHO it should be safe to continue using ROS after resquestShutdown is called... Maybe someone can confirm?

If you look at roscpp, the current handler on SIGINT just call ros::requestShutdown() so you should fine as it is.be with your current solution.

See: https://code.ros.org/svn/ros/stacks/ros_comm/tags/electric/clients/cpp/roscpp/src/libros/init.cpp

On a different point, requesting a shutdown on ROS just switch a boolean variable (see the previous source code) so IMHO it should be safe to continue using ROS after resquestShutdown is called... Maybe someone can confirm?