Python shutdown node
How i can shutdown a node in python? In c++ is ros::shutdown() but in python i didn't find it. Thanks
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
If you set the disable_signals
parameter in rospy.init_node
to True
then you can manually shutdown the node with a call to rospy.signal_shutdown(reason)
where reason is a String with the reason for shutdown.
For more information check out this wiki http://wiki.ros.org/rospy/Overview/In... or the rospy API http://docs.ros.org/api/rospy/html/
Asked: 2015-09-25 05:13:22 -0500
Seen: 16,812 times
Last updated: Aug 01 '17
How to use Marker package in ROS2 with Python?
How do I test the ROS version in Python code?
Shutdown of SimpleActionServer using rospy
Is there any point in using image_transport republish instead of using CompressedImage in Python?
ROS2 lifecycle node - how to shut down cleanly?