ros / ros_comm

ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
http://wiki.ros.org/ros_comm
752 stars 911 forks source link

Expose is_shutdown_requested in rospy namespace. #2267

Closed MichaelGrupp closed 1 day ago

MichaelGrupp commented 2 years ago

Just like the C++ ros::isShuttingDown(), this can be useful in certain cases where shutdown needs to be checked before all shutdown handlers finished.

The difference to is_shutdown() is already clearly described in the docstring of is_shutdown_requested() (see here).