rerun-chunk-processing
Fungsinya
Skill ini mengajarkan AI Anda cara kerja pemrosesan chunk Rerun, dari membaca berkas sumber hingga menulis rekaman yang sudah dioptimalkan. Skill ini ditujukan untuk developer yang mengonversi atau membersihkan data robot atau sensor.
Kapan dipakai
- βSaat Anda menulis kode untuk mengonversi berkas MCAP, Parquet, atau video ke format Rerun.
- βSaat Anda ingin memproses ulang rekaman .rrd yang sudah ada.
- βSaat Anda memindahkan konverter data lama ke pipeline pembaca dan lensa Rerun.
Link skill
https://github.com/rerun-io/rerun/blob/main/skills/rerun-chunk-processing/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTulis pipeline Rerun yang membaca berkas MCAP saya, menerapkan lensa, dan menyimpan rekaman yang sudah dioptimalkan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjelaskan bagaimana pembaca menghasilkan chunk data, bagaimana stream dan lensa mengubahnya, dan bagaimana pemanggilan akhir menjalankan pipeline serta menyimpan hasilnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah saya harus membuat chunk secara manual?
Skill menyatakan untuk memakai pembaca dan lensa jika tersedia, dan membuat chunk secara manual hanya untuk metadata eksternal.
Pembaca apa saja yang disebutkan?
Skill menyebut pembaca untuk MCAP, URDF, Parquet, video mp4, dataset LeRobot, dan berkas RRD.
Apakah saya perlu memodelkan data terlebih dahulu?
Ya. Skill menyatakan untuk menentukan model data terlebih dahulu dengan skill rerun-data-model.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11550
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
investigate-puffin
12kMembantu agent Anda menyelidiki rekaman profiler Puffin (berkas .puffin), menemukan bagian kode yang lambat, dan membandingkan jejak dari sebelum dan sesudah perubahan.
rerun-blueprint
12kMengajari agent Anda mengubah tampilan viewer Rerun dengan menulis blueprint untuk sebuah rekaman atau tabel, termasuk tata letak, tampilan, dan kolom tersembunyi.
rerun-catalog-queries
12kMembantu agent Anda mengkueri katalog Rerun dari Python lebih cepat, dengan tips tentang perjalanan bolak-balik, ukuran payload, dan pembacaan dataset yang lambat.
rerun-data-model
12kMembantu agent Anda memetakan data robot atau multimodal ke model data Rerun, dengan menentukan entitas, komponen, serta nilai statis atau berbasis waktu terlebih dahulu.
Skill serupa
gitcrawl
394kMemungkinkan agent Anda mencari arsip issue dan pull request GitHub yang tersimpan, mengelompokkan yang duplikat, dan memeriksa status terkininya di GitHub.
slacrawl
394kMemungkinkan agent Anda mencari dan menghitung pesan di arsip Slack lokal, memeriksa seberapa baru arsip itu, dan menyegarkannya bila diperlukan.
goplaces
394kMembantu agent Anda mencari tempat, mendapatkan detail dan ulasannya, serta menentukan nama tempat memakai Google Places, dengan keluaran JSON untuk skrip.