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,865 times
Last updated: Aug 01 '17
Rospy isn't catching KeyboardInterrupt on the second iteration of the loop
Can't access packages of activated python environment
Issue with stere_image_proc, stage and rviz not displaying PointCloud2
rospy.get_time() returns 0 when using gazebo
Python rospy Script doesn't end running
How to read a topic last value from a Python script?
Unsuitable PythonLibs building catkin (Mac OS X 10.9.3)
How do you set namespace in a Python program?
service does not exist - app_manager rapp, hydro, python, turtlebot