rerun-chunk-processing
यह क्या करती है
यह स्किल आपके AI को Rerun की चंक प्रोसेसिंग समझाती है, यानी स्रोत फ़ाइल पढ़ने से लेकर अनुकूलित रिकॉर्डिंग लिखने तक। यह उन डेवलपर्स के लिए है जो रोबोट या सेंसर डेटा बदलते या साफ़ करते हैं।
कब इस्तेमाल करें
- ✓जब आप MCAP, Parquet या वीडियो फ़ाइल को Rerun फ़ॉर्मैट में बदलने का कोड लिख रहे हैं।
- ✓जब आप मौजूदा .rrd रिकॉर्डिंग को पहले से प्रोसेस करना चाहते हैं।
- ✓जब आप पुराने डेटा कन्वर्टर को Rerun की रीडर और लेंस पाइपलाइन में ले जा रहे हैं।
Skill का लिंक
https://github.com/rerun-io/rerun/blob/main/skills/rerun-chunk-processing/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी MCAP फ़ाइल पढ़ने वाली Rerun पाइपलाइन लिखिए, जो लेंस लगाए और अनुकूलित रिकॉर्डिंग सेव करे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल बताती है कि रीडर डेटा चंक कैसे बनाते हैं, स्ट्रीम और लेंस उन्हें कैसे बदलते हैं, और आखिरी कॉल पाइपलाइन चलाकर परिणाम कैसे सेव करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Rerun chunk processing
The pipeline layer between raw data and an RRD: readers produce Chunks,
streams transform them, terminal calls execute. This skill is the generic
mechanics only. Decide the data model first (rerun-data-model), then pick the
importer skill for each source:
| Source | Reader | Skill |
|---|---|---|
| MCAP file (ROS2, protobuf, Foxglove) | McapReader(path).stream() |
rerun-mcap |
| URDF robot model (+ joint states → FK) | UrdfTree.from_file_path(...).stream() |
rerun-urdf |
| Parquet table (trajectories, sensor logs) | ParquetReader(path).stream() |
rerun-parquet |
| mp4 camera video | Mp4Reader(path).stream() |
rerun-mp4 |
| HDF5 file (groups → entities) | Hdf5Reader(path).stream() |
none yet |
| LeRobot dataset directory | built-in importer, then RrdReader |
rerun-lerobot |
| Existing RRD | RrdReader(path) |
here, below |
| Sidecar files (JSON calib, metadata) | Chunk.from_columns + from_iter |
here, below |
The API is rerun.chunk; when
behavior matters, check the installed surface:
python -c "from rerun.chunk import LazyChunkStream; help(LazyChunkStream)".
Decision rule: where does each component come from?
Default: a reader produces the chunks; lenses shape them. Walk this before writing any conversion code — most "build it by hand" instincts are wrong here:
- Source a reader supports? Use the reader's
.stream(); never hand-parse and re-log. MCAP→McapReader, URDF→UrdfTree, parquet→ParquetReader, mp4→Mp4Reader, HDF5→Hdf5Reader, RRD→RrdReader, LeRobot dir→log_file_from_path. - A decoder already emits the archetype? Foxglove gives
Transform3D,Pinhole,VideoStream(real sample bytes) ready-made — pass it through, do not re-derive. Only custom-protobuf topics arrive as<Name>:messageand need a lens (seererun-mcap). - Fix an existing component in place (swapped resolution, recolor, unit
convert)?
MutateLens,output_mode="forward_unmatched". - Derive a new component/entity (FK→
/tf, scalars from a message)?DeriveLens. To scatter one row into N (a joint batch → per-joint/tf), use the two-lens pair: derive the batch withoutput_mode="forward_all"(keeps the originals, e.g. the joint states), then a secondDeriveLenswithscatter=Trueandoutput_mode="drop_unmatched"(emits only the scattered rows). See therobot_data_preprocessingexample. - Genuine sidecar no reader or lens can produce (JSON calibration offsets,
hand-measured extrinsics, external metadata)?
Chunk.from_columns+from_iter. - Finish with
LazyChunkStream.merge(...)→.collect(optimize=OptimizationProfile.OBJECT_STORE)→write_rrd(application_id, recording_id).
Why this order: the pipeline stays lazy, columnar, multithreaded, and
OBJECT_STORE-optimizable. A hand-built row loop or an out-of-lens pa.array
throws all of that away — that is the path we are deliberately avoiding.
Anti-patterns (use a reader + lens instead)
If you are writing the left, stop and use the right:
for-loop building rows/components → a lens with aSelector(...).pipe(...)PyArrow-compute callback.rr.init+rr.logper message for conversion → that is live logging; for ingestion, read with a reader andwrite_rrd.chunk.to_record_batch()+pc.filterthen rebuilding viaChunk.from_columns(row-thinning by hand) →stream.drop(content=...),.split(...), or aMutateLensreturning a filteredpa.array.pa.array/pa.RecordBatch/np.frombufferassembled OUTSIDE a lens → move the transform inside aMutateLens/DeriveLensselector callback.rr.send_columnshand-assembled from a custom parser → use the matching reader; it produces chunks directly.- Parsing MCAP/URDF with a non-Rerun library then re-logging →
McapReader/UrdfTree. Chunk.from_columnsfor data a reader already decodes (Pinholeintrinsics,VideoStream,Transform3Dfrom a transforms topic) → keep it in the reader stream; fix with aMutateLensif neede
अक्सर पूछे जाने वाले सवाल
क्या चंक हाथ से बनाने चाहिए?
स्किल कहती है कि जब रीडर और लेंस मौजूद हों तो उन्हीं का इस्तेमाल करें, और चंक हाथ से केवल बाहरी मेटाडेटा के लिए बनाएँ।
कौन से रीडर बताए गए हैं?
इसमें MCAP, URDF, Parquet, mp4 वीडियो और LeRobot डेटासेट के रीडर के साथ RRD फ़ाइलें शामिल हैं।
क्या पहले डेटा मॉडल तय करना चाहिए?
हाँ। स्किल कहती है कि पहले rerun-data-model स्किल से डेटा मॉडल तय करें।
जानकारी
लेखक का मूल विवरण
Core mechanics of the Rerun Chunk Processing API (rerun.chunk) — LazyChunkStream pipelines, Chunk, lenses (MutateLens/DeriveLens/Selector), RrdReader, writing optimized RRDs. Read BEFORE writing any ingestion/conversion/preprocessing code (convert an MCAP, build a recording from a dataset, preprocess an .rrd, port an old converter): it mandates reader+lens pipelines and steers away from hand-built chunks — no Chunk.from_columns for data a reader/lens can produce, no per-message rr.log, no manual pa.array assembly. Source-specific knowledge lives in the importer skills (rerun-mcap, rerun-urdf,
repo: rerun-io/rerun
लोकप्रियता
- GitHub स्टार
- 12k
- रैंकिंग में स्थान
- #11550
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
investigate-puffin
12kयह आपके एजेंट को Puffin प्रोफ़ाइलर रिकॉर्डिंग जाँचने, धीमे कोड भाग ढूँढने और बदलाव से पहले-बाद के ट्रेस की तुलना करने में मदद करती है।
rerun-blueprint
12kआपके एजेंट को ब्लूप्रिंट लिखकर Rerun व्यूअर का लेआउट, व्यू और छिपे कॉलम बदलना सिखाती है।
rerun-catalog-queries
12kयह आपके एजेंट को Python से Rerun कैटलॉग पर क्वेरी तेज़ करने में मदद करती है, राउंड ट्रिप, डेटा आकार और धीमी रीड के सुझावों के साथ।
rerun-data-model
12kयह आपके एजेंट को रोबोट या मल्टीमोडल डेटा को Rerun के डेटा मॉडल में रखने में मदद करती है: एंटिटी, कंपोनेंट और स्टैटिक मान तय करके।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।