ros-controls / ros_control

Generic and simple controls framework for ROS
http://wiki.ros.org/ros_control
BSD 3-Clause "New" or "Revised" License
469 stars 307 forks source link

Do not block when spawner is shut down while waiting for services #522

Open Martin-Oehler opened 1 week ago

Martin-Oehler commented 1 week ago

Hello everyone, a while ago, I contributed this PR #508. However, a small oversight is that I did not check for rospy.is_shutdown() in the introduced while-loop. So if you manage to kill the node while it is still waiting for services, you receive a nasty message spam.

This commit simply adds the missing check for a running node.

Best regards, Martin