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

Python shutdown node

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

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

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

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 or the rospy API

edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 16,749 times

Last updated: Aug 01 '17