Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge rosbag #1

Closed
HJMGARMIN opened this issue May 10, 2023 · 5 comments
Closed

merge rosbag #1

HJMGARMIN opened this issue May 10, 2023 · 5 comments

Comments

@HJMGARMIN
Copy link

Thank you for your great work.
I downloaded the dataset and I found that there are ten rosbags in each package. I want to know how to merge them into one rosbag.

@eliabntt
Copy link
Owner

Hi,

You can either play them with rosbag play *.bag --clock --other-options this will play all the bags in the folder in the correct order.

If you want to merge them you can use this or write your own script to read the bags and write the data you need in a new one using the official APIs.

@HJMGARMIN
Copy link
Author

Thanks for your reply. It's useful.

@eliabntt
Copy link
Owner

No problem!

Also, note that the bags may be compressed (forgot to mention that in the readme).

you can decompress them before playing with
rosbag decompress *.bag This will automatically decompress all the bags in the folder.

@HJMGARMIN
Copy link
Author

If I do not decompress the bags, is there any influence when I rosbag play them.

@eliabntt
Copy link
Owner

That depends on your system. Probably, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants