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

How to use rosbag play to paly multiple rosbags which are in a folder with a single command ?

asked 2015-08-18 08:21:03 -0600

metalcell gravatar image

I have several rosbags in a folder, and I want to use rosbag play to play them one by one automatically. So what should I do with the name of folder or its path so I can make the use of '' rosbag play'' ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-18 10:23:26 -0600

NEngelhard gravatar image

Where exactly is your problem? You can just do a

rosbag play *.bag

in your directory.

edit flag offensive delete link more



Thanks. This is exactly what I am looking for.

metalcell gravatar image metalcell  ( 2015-08-20 08:51:53 -0600 )edit

Ubuntu 16.04 + ROS kinetic, not seeing this working.

rocketman_7 gravatar image rocketman_7  ( 2018-02-01 14:09:05 -0600 )edit

Is there a way that I will have input that it is a new file?

Nachum gravatar image Nachum  ( 2021-08-23 03:35:00 -0600 )edit

Hey @metalcell can you tell me how you playback all the bag files in a folder please? because the answer of @NEngelhard is in relation to one bag file example_bag_file.bag, or not?

Petros ADLATUS gravatar image Petros ADLATUS  ( 2022-03-24 05:56:53 -0600 )edit

Question Tools

1 follower


Asked: 2015-08-18 08:21:03 -0600

Seen: 5,948 times

Last updated: Aug 18 '15