Loading...
Loading...
Ingest MCAP files into Rerun chunk streams with rerun.experimental.McapReader. Read when converting an MCAP recording, selecting topics or decoders, decoding custom protobuf messages, or when an MCAP-derived stream comes out empty. Builds on rerun-chunk-processing (stream mechanics) and rerun-data-model (what the topics should become).
npx skill4agent add rerun-io/rerun rerun-mcapMcapReaderrerun-chunk-processingfrom rerun.experimental import McapReader
reader = McapReader(mcap_path) # see help(McapReader) for the full option set
stream = reader.stream()rerun-urdfdecoders=None:message| MCAP schema name | decodes to | what to do |
|---|---|---|
| | pass through; do not hand-build |
| | pass through |
| | pass through |
other | the matching archetype | pass through |
ros2 well-known types ( | archetype | pass through |
your own | one | attach semantics with a |
PinholeVideoStreamframe_transformsTransform3Dfoxgloveprotobufdecoders=Nonedecoders=["protobuf"]foxglove.CameraCalibration:messagefoxglovePinholeMcapReader(path).stream()McapSchema:nameChunk.format()/sensors/joint_states/sensors/joint_statesMcapReader(path).stream().filter(content="/sensors/**")<fully.qualified.MessageName>:messageSelectorSelector(".joint_positions")rerun-chunk-processingcam/external/cam_low/camera_info^/external/cam.filter(...)mcapMcapReadermcap.reader.make_readerChunk.format()reader.stream().to_chunks()mcaptimeline_type="timestamp"timestamp_offset_nsdecoders=NoneMutateLensPinhole:resolutionrobot_data_preprocessingMcapReader(path).stream()foxglovePinhole:child_frameCoordinateFrame:frame.frame_idframe_idframe_idMutateLensCoordinateFrame:framehttps://github.com/rerun-io/rerun/tree/main/examples/python/robot_data_preprocessingrerun-chunk-processingrerun-urdfrerun-data-model