ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can always use the python "break" keyword to break out of any loop even if the loop condition is still true.
See more about it in python tutorial.
Ping me if it solved your problem.