Hi,
I'm using this idiom for checking that the node in my python script is working
while not rospy.is_shutdown():
do some work
but when I kill the node with rosnode kill the while loop does not exit. I suppose rosnode kill triggers the flag associated with is_shutdown(), but maybe I'm wrong.
Could anyone please clarify me on the issue of finishing nodes and the processes that hold them properly? I've checked previous answers, but maybe I've missed a complete example with code on how to catch and handle the related signals.
Thank you very much in advance
Originally posted by chcorbato on ROS Answers with karma: 202 on 2012-07-05
Post score: 1