-
Notifications
You must be signed in to change notification settings - Fork 251
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
Use mcap storage compression when compression is requested #1533
Comments
Second this. We have a lot of bags that have been recorded in the |
I would think you should be able to use |
What we can do here is to update the documentation in the readme file. The I would appreciate someone's help with updating the readme file in this regard. |
I do appreciate that |
Thanks!
|
@MichaelOrlov Thoughts on disabling |
It has been pointed out to me that this bit of code should have prevented per-message compression but I also see it is only present if |
@defunctzombie We added If the matter of concern to add the same exception as in the rosbag2/rosbag2_storage_mcap/src/mcap_storage.cpp Lines 845 to 849 in 317286c
somewhere on Humble - I am fine with it.
|
Description
You can enable compression via
--compression-mode
and--compression-format
with-s mcap
, but this produces:--compression-mode=file
:.mcap.zstd
files that tools like Foxglove Studio does not understand--compression-mode=message
: Foxglove Studio cannot read.mcap
files encoded like this.However, if you make a config file like
mcap-config.yaml
:and then run:
Then you get a
.mcap
file that is compressed with zstd, that Foxglove Studio can also load. This also gives you control over compression level/speed.I understand that it makes difficult for rosbag2 to treat mcap's compression as a special case, but currently if you are trying to figure out how to use compression with rosbag2, your go-to in the documentation will simply be to use the top-level flags, which gives a suboptimal result for mcap.
Related Issues
N/A
Completion Criteria
Users are not misled into producing an unreadable .mcap file.
Implementation Notes / Suggestions
Maybe rosbag2 should just give a warning or something when you specify
--compression-mode
with the mcap storage plugin.Testing Notes / Suggestions
Need to test that produced .mcap files are compatible with Foxglove Studio.
The text was updated successfully, but these errors were encountered: