Skip to content

Add metadata to ROS2 MCAP file with rosbag2_py #1233

Discussion options

You must be logged in to vote

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):

$ mcap help add
Add records to an existing MCAP file

Usage:
  mcap add [flags]
  mcap add [command]

Available Commands:
  attachment  Add an attachment to an MCAP file
  metadata    Add metadata to an MCAP file

Flags:
  -h, --help   help for add

Global Flags:
      --config string          Config file (default is $HOME/.mcap.yaml)
      --pprof-profile          Record pprof profiles of command execution. Profiles will be written to files: mcap-mem.prof, mcap-cpu.prof, and mcap-block.pprof. Defaults to false.
      --strict-…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@christian-nils
Comment options

Answer selected by christian-nils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants