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

rosbag play from time1 end time2

asked 2017-06-20 00:21:22 -0500

DinnerHowe gravatar image

Hi, guys: i just wander is there a command in rosbag play, could let us play a bag from time1 to time2? BTW, i did not find such command in wiki:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-20 12:12:20 -0500

ahendrix gravatar image

You can use the --start and --duration options to start playback at a specific offset into a bag file, and to play for a specific period of time. This isn't quite the same as specifying absolute start and end timestamps, but with a bit of math you can use it to do the same thing.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-06-20 00:21:22 -0500

Seen: 1,667 times

Last updated: Jun 20 '17