Ask Your Question
1

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
3

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 5,109 times

Last updated: Aug 01 '17