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

Revision history [back]

In the condition of the main loop use this:

while not ropy.is_shutdown() : ....

In the condition of the main loop use this:

while not ropy.is_shutdown() :
  ....

rospy.sleep(1.0)

In the condition of the main loop use this:

while not ropy.is_shutdown() :
   rospy.sleep(1.0)

rospy.is_shutdown is required to attend to the ending signals of the process.