ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Take a look at ros::Time; it provides ways of waiting. Then, you could have a loop that subscribed to one topic,spun for some amount of time, unsubscribed, subscribed to the other, and so on.