rerun-mcap
하는 일
이 스킬은 MCAP 녹화 파일을 Rerun이 보여 줄 수 있는 데이터로 바꾸는 과정을 에이전트에게 안내합니다. MCAP 형식으로 로봇이나 센서 로그를 기록하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓MCAP 녹화 파일을 변환해서 Rerun에서 보고 싶을 때.
- ✓포함할 MCAP 토픽을 고르거나 사용자 정의 protobuf 메시지를 디코딩하는 방법이 필요할 때.
- ✓변환된 MCAP 데이터가 비어 있어서 그 이유를 찾아야 할 때.
스킬 링크
https://github.com/rerun-io/rerun/blob/main/skills/rerun-mcap/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“MCAP 녹화 파일을 Rerun으로 변환했는데 결과가 비어 있습니다. 무엇이 잘못된 걸까요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 녹화 파일의 각 토픽이 Rerun 엔티티가 되는 방식과, 그대로 유지해야 하는 표준 메시지 타입을 설명합니다. 출력이 비는 흔한 이유도 나열합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Rerun MCAP ingestion
McapReader turns an MCAP file into a lazy chunk stream: one entity per topic
at the topic's path, message payloads decoded by pluggable decoders. This
skill covers the reader's options, what each topic becomes, and the failure
modes that yield an empty stream with no error. Stream mechanics (filter, drop,
lenses, merge, write) are in rerun-chunk-processing.
The API
from rerun.chunk import McapReader
reader = McapReader(mcap_path) # see help(McapReader) for the full option set
stream = reader.stream()
A URDF embedded in the MCAP can be ingested as well (then see rerun-urdf).
What a topic becomes
With the default decoders (decoders=None), the message schema name decides what a topic becomes — pass archetypes through, lens only the raw :message topics:
| MCAP schema name | decodes to | what to do |
|---|---|---|
foxglove.FrameTransforms |
Transform3D |
pass through; do not hand-build |
foxglove.CameraCalibration |
Pinhole |
pass through |
foxglove.CompressedVideo |
VideoStream (real sample bytes) + CoordinateFrame |
pass through |
other foxglove.* well-known types |
the matching archetype | pass through |
ros2 well-known types (ros2msg / ros2_reflection) |
archetype | pass through |
your own schemas.proto.* / custom protobuf |
one <schema.name>:message struct |
attach semantics with a DeriveLens + Selector |
So a camera topic already arrives as Pinhole, its video as VideoStream, and a frame_transforms topic as Transform3D — only custom messages (e.g. a custom joint states schema, a custom gripper status enum) come through reflection or raw only and need lenses.
The foxglove decoder does the schema→archetype mapping; because foxglove messages are protobuf-encoded it rides on the protobuf decoder, so keep decoders=None (verified: decoders=["protobuf"] alone leaves foxglove.CameraCalibration a raw :message; adding foxglove makes it a Pinhole). Confirm on your file: McapReader(path).stream(), then read McapSchema:name and a few Chunk.format() before deciding anything is missing or needs rebuilding.
- Entity path = topic name (
/sensors/joint_statesstays/sensors/joint_states). Filter early:McapReader(path).stream().filter(content="/sensors/**"). - A reflection-decoded message lands as one struct component named
<fully.qualified.MessageName>:message. Navigate it withSelector(Selector(".joint_positions")) inside lenses; this is how custom messages get Rerun semantics attached (see the DeriveLens patterns inrerun-chunk-processing). - Topic regexes use RE2 syntax and are not anchored:
cammatches/external/cam_lowand/camera_info. Anchor explicitly (^/external/cam) when it matters. Prefer reader-level topic filtering over.filter(...)when you can, so excluded topics are never decoded at all.
When to use the low-level mcap package instead
McapReader keeps payloads in columnar chunk streams; that is almost always what you want.
Drop to mcap.reader.make_reader only when you need raw record metadata without payloads, or when you need to rewrite the container itself (re-registering schemas, channels, and messages).
Gotchas
- Empty stream, no error: a topic regex that matched nothing, or a channel
whose decoder produced no rows. Check
Chunk.format()on a few chunks ofreader.stream().to_chunks()against a tiny test file, or compare topic names with themcapCLI / package first. - Topic regexes are unanchored RE2; excludes run after includes.
timeline_type="timestamp"interprets MCAP log times as wall-clock ns since epoch. If the recording's clock is wrong, fix it at the reader withtimestamp_offset_nsrather than mutating timestamps downstream.- Decoder subsets silently skip topics no decoder claims; when a topic is
missing, retry with
decoders=Noneto rule out decoder selection. - Example fix-lenses are dataset-specific. Before copying a
MutateLenslike thePinhole:resolutionswap from therobot_data_preprocessingexample, read the raw component fromMcapReader(path).stream()and confirm the defect exists in your data — applied blindly it corrupts correct calibration (a correct 648×480 flipped to 480×648). foxglovederives both the camera'sPinhole:child_frameand the video'sCoordinateFrame:framefrom each message's.frame_id(plus an image-plane
자주 묻는 질문
스킬이 제 메시지 타입을 디코딩할 수 있나요?
네. 사용자 정의 protobuf 메시지를 디코딩하는 방법을 다루며, 각 메시지 타입은 구조화된 컴포넌트 하나가 됩니다.
일부 토픽은 왜 변경 없이 그대로 전달하나요?
좌표 변환이나 카메라 보정 같은 표준 타입은 이미 Rerun 타입으로 디코딩되므로, 그대로 두라고 안내합니다.
녹화 파일에 들어 있는 로봇 모델도 다루나요?
파일 안의 로봇 모델은 관련 스킬인 rerun-urdf에서 다룹니다.
상세 정보
작성자의 원본 설명
Ingest MCAP files into Rerun chunk streams with rerun.chunk.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).
repo: rerun-io/rerun
인기도
- GitHub 스타
- 12k
- 순위
- #11555
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
investigate-puffin
12k에이전트가 Puffin 프로파일러 기록(.puffin 파일)을 살펴보고, 느린 코드 구간을 찾고, 변경 전후의 추적 결과를 비교하도록 돕습니다.
rerun-blueprint
12k에이전트가 블루프린트를 작성해 Rerun 뷰어의 모습을 바꾸도록 가르칩니다. 레이아웃, 뷰, 숨긴 열을 포함합니다.
rerun-catalog-queries
12k에이전트가 Python에서 Rerun 카탈로그를 더 빠르게 조회하도록 돕습니다. 왕복 호출, 데이터 크기, 느린 데이터셋 읽기에 대한 팁을 제공합니다.
rerun-chunk-processing
12k에이전트에게 리더와 렌즈로 Rerun 데이터 파이프라인을 만드는 법을 가르칩니다. MCAP, Parquet, 비디오, RRD 파일을 녹화로 변환합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.