0
$\begingroup$

Rosanswers logo

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'' ?


Originally posted by metalcell on ROS Answers with karma: 3 on 2015-08-18

Post score: 0

$\endgroup$

1 Answer 1

1
$\begingroup$

Rosanswers logo

Where exactly is your problem? You can just do a

rosbag play *.bag

in your directory.


Originally posted by NEngelhard with karma: 3519 on 2015-08-18

This answer was ACCEPTED on the original site

Post score: 4


Original comments

Comment by metalcell on 2015-08-20:
Thanks. This is exactly what I am looking for.

Comment by rocketman_7 on 2018-02-01:
Ubuntu 16.04 + ROS kinetic, not seeing this working.

Comment by Nachum on 2021-08-23:
Is there a way that I will have input that it is a new file?

Comment by Petros ADLATUS on 2022-03-24:
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?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.