Skip to content

[cli] Add mcap cat --json support for unsupported/unrecognized encodings #817

@jhurliman

Description

@jhurliman

Today:

$ mcap cat --topics /not/a/proto --json data.mcap | head -n1
2023/02/16 14:37:12 Error: failed to print messages: JSON output only supported for ros1msg, protobuf, and JSON schemas

The future:

$ mcap cat --topics /not/a/proto --json data.mcap | head -n1
{"topic":"/not/a/proto","sequence":0,"log_time":1672783876.875759239,"publish_time":1672783876.875759239,"data":"aGVsbG8sIHdvcmxkCg=="}

Metadata

Metadata

Assignees

No one assigned

    Labels

    clifeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions