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

Revision history [back]

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.