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 | Q&A answers.ros.org |
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/
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2015-09-25 05:13:22 -0500
Seen: 15,672 times
Last updated: Aug 01 '17
ROS hokuyo_node LaserScan Subscriber msg data class python
Python PCL fails to install [closed]
is rospy.Publisher.publish() thread safe?
Missing packages after installing rosdep based on python3-rosdep2 in Noetic
nosetests not working reliably with catkin_make [closed]
Segmentation fault (core dumped) OpenCV
ROS + Raspberry Pi + Motor Shield
ImportError: dynamic module does not define init function (init_tf2)
Problem viewing images using python-opencv
Problem in converting camera parameters to ROS message to publish on topic