ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Python shutdown node

asked 2015-09-25 05:13:22 -0500

Porti77 gravatar image

How i can shutdown a node in python? In c++ is ros::shutdown() but in python i didn't find it. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2017-08-01 06:02:43 -0500

robocop gravatar image

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/

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-09-25 05:13:22 -0500

Seen: 16,863 times

Last updated: Aug 01 '17