ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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?
2 | No.2 Revision |
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?