rerun-mcap
Qué hace
Esta skill guía al agente para convertir un archivo de grabación MCAP en datos que Rerun puede mostrar. Está pensada para personas que registran registros de robots o sensores en formato MCAP.
Cuándo usarla
- ✓Cuando quieres convertir un archivo de grabación MCAP para verlo en Rerun.
- ✓Cuando necesitas elegir qué temas MCAP incluir o cómo decodificar mensajes protobuf personalizados.
- ✓Cuando los datos MCAP convertidos salen vacíos y necesitas averiguar por qué.
Link de la skill
https://github.com/rerun-io/rerun/blob/main/skills/rerun-mcap/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi grabación MCAP se convierte en Rerun pero el resultado está vacío. ¿Qué está mal?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill explica cómo cada tema de la grabación se convierte en una entidad de Rerun y qué tipos de mensaje estándar deben mantenerse tal cual. También enumera las causas habituales de que la salida salga vacía.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Puede la skill decodificar mis propios tipos de mensaje?
Sí. Cubre la decodificación de mensajes protobuf personalizados, que se convierten en un componente estructurado por cada tipo de mensaje.
¿Por qué algunos temas deben pasar sin cambios?
Los tipos estándar, como las transformaciones de coordenadas y la calibración de cámara, ya se decodifican a tipos de Rerun, así que la skill indica mantenerlos tal como están.
¿Cubre los modelos de robot guardados en la grabación?
Un modelo de robot del archivo lo gestiona una skill relacionada, rerun-urdf.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 12 mil
- Posición en el ranking
- #11555
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
investigate-puffin
12 milPermite que tu agente investigue grabaciones del perfilador Puffin (.puffin), encuentre el código lento y compare trazas de antes y después de un cambio.
rerun-blueprint
12 milEnseña a tu agente a cambiar el aspecto del visor de Rerun escribiendo un blueprint para una grabación o tabla, con diseño, vistas y columnas ocultas.
rerun-catalog-queries
12 milAyuda a tu agente a consultar un catálogo de Rerun desde Python más rápido, con consejos sobre idas y vueltas a la red, tamaño de los datos y lecturas lentas.
rerun-chunk-processing
12 milEnseña a tu agente a crear flujos de datos de Rerun con lectores y lentes que convierten archivos MCAP, Parquet, video o RRD en grabaciones.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.