rerun-mcap
यह क्या करती है
यह स्किल एजेंट को MCAP रिकॉर्डिंग फ़ाइल को ऐसे डेटा में बदलने के चरणों में ले जाती है जिसे Rerun दिखा सके। यह उन लोगों के लिए है जो MCAP फ़ॉर्मेट में रोबोट या सेंसर लॉग रिकॉर्ड करते हैं।
कब इस्तेमाल करें
- ✓जब आप MCAP रिकॉर्डिंग फ़ाइल को Rerun में देखने के लिए बदलना चाहते हैं।
- ✓जब आपको चुनना हो कि कौन-से MCAP टॉपिक शामिल करें, या अपने protobuf संदेश कैसे decode करें।
- ✓जब बदला गया MCAP डेटा खाली निकले और आपको कारण जानना हो।
Skill का लिंक
https://github.com/rerun-io/rerun/blob/main/skills/rerun-mcap/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी MCAP रिकॉर्डिंग Rerun में बदल जाती है, पर नतीजा खाली है। क्या गड़बड़ है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल बताती है कि रिकॉर्डिंग का हर टॉपिक Rerun entity कैसे बनता है और कौन-से मानक संदेश प्रकार जैसे के तैसे रखने चाहिए। यह खाली आउटपुट के आम कारण भी बताती है।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
क्या स्किल मेरे अपने संदेश प्रकार decode कर सकती है?
हाँ। यह कस्टम protobuf संदेशों को decode करना कवर करती है, जो हर संदेश प्रकार के लिए एक संरचित component बनते हैं।
कुछ टॉपिक बिना बदलाव के क्यों पास किए जाते हैं?
coordinate transforms और camera calibration जैसे मानक प्रकार पहले से Rerun प्रकारों में decode होते हैं, इसलिए स्किल उन्हें वैसे ही रखने को कहती है।
क्या रिकॉर्डिंग में रखे रोबोट मॉडल कवर होते हैं?
फ़ाइल में रखा रोबोट मॉडल एक संबंधित स्किल, 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
investigate-puffin
12kयह आपके एजेंट को Puffin प्रोफ़ाइलर रिकॉर्डिंग जाँचने, धीमे कोड भाग ढूँढने और बदलाव से पहले-बाद के ट्रेस की तुलना करने में मदद करती है।
rerun-blueprint
12kआपके एजेंट को ब्लूप्रिंट लिखकर Rerun व्यूअर का लेआउट, व्यू और छिपे कॉलम बदलना सिखाती है।
rerun-catalog-queries
12kयह आपके एजेंट को Python से Rerun कैटलॉग पर क्वेरी तेज़ करने में मदद करती है, राउंड ट्रिप, डेटा आकार और धीमी रीड के सुझावों के साथ।
rerun-chunk-processing
12kआपके एजेंट को Rerun डेटा पाइपलाइन बनाना सिखाती है, जो रीडर और लेंस से MCAP, Parquet, वीडियो या RRD फ़ाइलों को रिकॉर्डिंग में बदलती है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।