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,647 times
Last updated: Aug 01 '17
ROS hokuyo_node LaserScan Subscriber msg data class python
ROSSerializationException while publishing PointCloud2 Message
How to properly shutdown a node from command coded in the script of the same node
Understanding the catkin, CMakeList, setup.py build flow in Python
record topics with time synchronizer
is rospy.Publisher.publish() thread safe?
nosetests not working reliably with catkin_make [closed]
Segmentation fault (core dumped) OpenCV