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

Revision history [back]

click to hide/show revision 1
initial version

You should approach the problem from the other direction. Use the --clock option when playing a bag file. Depending on the nodes you start you might also want to set use_sim_time to true on the param server.

This will publish ROS time on the /clock topic and then ROS time will be the time from the bag file. System time doesn't exist any more unless explicitly requested by using a ros::WallTime.