ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm not sure what's wrong with that code, but you can achieve what you want to do by using rospy.wait_for_message instead of a Subscriber.