rerun-data-model
它能做什么
这个技能帮助你的 AI 在编写任何转换代码之前,决定原始机器人或传感器数据在 Rerun 中应如何组织。适合为 Rerun 录制准备数据集的人员。
适用场景
- ✓你即将把机器人数据转换或导入为 Rerun .rrd 文件的时候。
- ✓你需要决定哪些值是实体、组件或录制属性的时候。
- ✓你想在编写任何转换代码之前填写映射表的时候。
技能链接
https://github.com/rerun-io/rerun/blob/main/skills/rerun-data-model/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们把机器人数据集转换为 Rerun 之前,请帮我决定每个传感器应如何映射到实体和组件。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能逐步梳理建模选择,例如实体与组件的区别,以及静态值与随时间变化的值的区别,并在编写代码前填写映射表。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Rerun data model
The hard part of ingesting a dataset is the modeling decision, not the API call.
Get the model right and any mechanism works; get it wrong and queries, views, and training all break.
This skill is just the decisions.
For mechanism details see rerun-chunk-processing (pipeline mechanics) and the importer skills it routes to: rerun-mcap,rerun-urdf,rerun-parquet, rerun-mp4, rerun-lerobot.
For exact signatures, the docs at rerun.io/docs/concepts/logging-and-ingestion.
Before writing conversion code, fill in the mapping table below. It is the design, and a human can review it in seconds.
Pick the mechanism before you model the bytes
Modeling decides what each datum becomes; this decides how it gets there — and the default is a reader + lenses, not hand-built chunks:
- Does a reader exist for this source? MCAP→
McapReader, URDF→UrdfTree, parquet→ParquetReader, HDF5→Hdf5Reader, RRD→RrdReader, LeRobot dir→log_file_from_path. Yes →reader.stream()+ lenses; the reader produces the chunks, you do not. - No, and it is genuine external metadata (JSON calibration, offsets) or a specific custom use case that can't be covered by a generic reader**→**
Chunk.from_columns. - Otherwise: consider if you are about to hand-build something a reader or lens should produce and ask for clarification.
For MCAP specifically: a Foxglove- or ROS-decodable file emits archetypes like Transform3D, Pinhole, and VideoStream for certain supported message schemas ready-made — pass those through, never re-derive them; only custom protobuf signal topics need lenses. The full decision tree and the anti-pattern list are in rerun-chunk-processing.
The model
Dataset → Segment → Layer → Recording → Entity → Component → Chunk
- Entity = a thing, named by a path (
/robot/arm/camera). Component = one typed field on it (positions, image, a scalar). Archetype = a standard bundle of components that log and render together (Points3D,Image,Transform3D). - Every value you log sits on two axes: where (entity path + component) and when (which timeline, or static = all time).
- Segment = one episode; on registration its
recording_idbecomes thesegment_id. Layer = an extra.rrdon top of a segment. It attaches by matching the segment'srecording_idand nothing else: that shared id is the whole layering mechanism.
The decisions
Entity vs component on an existing entity
New entity if it has its own spatial frame (Transform3D/Pinhole), its own annotation context, or should be shown/cleared/shared independently (each robot link, each camera, each sensor). Same entity + extra component for auxiliary data at the same instances (per-point confidence).
Use AnyValues for non-standard fields.
Property vs component vs layer (the most common confusion)
- Component: per-timestamp signal on the timeline (joint angle, image).
- Segment property: one-per-episode metadata for catalog filter/search (operator, robot, site, task, date). Not per timestamp.
- Layer: a whole derived
.rrdover a base segment (FK transforms, point clouds, gripper state, labels, quality scores). Queryable as if part of base.
Static vs temporal Static belongs to all timelines and shadows any temporal value of the same component on the same entity. Use it for invariants (calibration, coordinate frames, robot meshes, annotation context, a video asset). Never make per-frame data static.
Which timeline
A timestamp timeline (ns since epoch) for cross-sensor clock alignment, a sequence timeline for frame/ordinal alignment; stamp on both when useful.
Do not resample to a common rate. Latest-at reconciles multi-rate streams at query time by holding each component's last sample (no interpolation).
Base vs layer
Base = faithful conversion of the raw streams, nothing computed.
Layer = anything derived (FK from URDF + joint states, clouds from depth + intrinsics).
Keep them separate .rrds.
The mapping table (produce before coding)
| Source (topic/column/key) | Entity path | Archetype | Component(s) | Timeline | Static/temporal | Base/layer | Property? |
|---|---|---|---|---|---|---|---|
| mcap |
常见问题
它会编写转换代码吗?
它专注于设计决策。机制细节在 rerun-chunk-processing 等相关技能中。
什么是静态值?
静态值不随时间变化,而随时间变化的值则是在某些时间点记录的。
哪些源类型有各自的技能?
这个技能会把 MCAP、URDF、Parquet、mp4 和 LeRobot 数据分别交给专门的导入技能处理。
详情
作者的原始描述
How raw multimodal robot data maps onto the Rerun data model. Read FIRST, before modeling or converting a dataset — and whenever you are about to convert/ingest/preprocess robot data into an .rrd or build a Rerun recording, even if not asked for the data model. Resolves the entity-vs-component, property-vs-component-vs-layer, and static-vs-temporal decisions and routes to the mechanism (do it with readers and lenses, not hand-built chunks or per-message rr.log): rerun-chunk-processing and the importer skills rerun-mcap, rerun-urdf, rerun-parquet, rerun-mp4, rerun-lerobot.
repo: rerun-io/rerun
热度
- GitHub 星标
- 12k
- 排名
- #11551
- 许可证
- 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教你的智能体使用读取器和 lens 构建 Rerun 数据流水线,将 MCAP、Parquet、视频或 RRD 文件转换为录制。