Add metadata to ROS2 MCAP file with rosbag2_py #1233
-
Hello, I would like to add some metadata to my MCAP file. As suggested in this issue: #861, I am using rosbag2_py to write the MCAP file. I would like to add a couple of metadata to the file but I seem not to find the right way to do it using rosbag2_py only (but it seems to be possible using the MCAP Python library: https://mcap.dev/docs/python/_modules/mcap/writer#Writer.add_metadata). Anyone would know how I could do this? Thanks, Christian-Nils |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, One possible solution is to use the MCAP CLI (
|
Beta Was this translation helpful? Give feedback.
Hi there,
I believe it's correct that rosbag2 does not expose any way to work with MCAP metadata.
One possible solution is to use the MCAP CLI (
mcap add metadata
):