Archetypes
Available Rerun archetypes for custom message mappings.
Leaf archetypes
Simple one-to-one field mappings:
| Archetype | Description | Field type | Optional keys |
|---|---|---|---|
Scalars | Numeric time series | Any numeric field | — |
TextLog | Log entry | String field | level |
TextDocument | Rich text display | String field | media_type |
{
temperature: { archetype: "Scalars" },
message: { archetype: "TextLog", level: "WARN" },
description: { archetype: "TextDocument", media_type: "text/markdown" },
}level is the severity every entry on that field is logged with, such as "INFO" or "WARN".
media_type tells the viewer how to render the document, for example text/markdown.
Composite archetypes
Map multiple sub-fields to a single Rerun archetype. Every value is a path into the message:
| Archetype | Required fields | Optional fields |
|---|---|---|
Points2D | x, y | each, label |
Points3D | x, y, z | each, label |
Boxes2D | center_x, center_y, half_width, half_height | each, label |
Boxes3D | center_x, center_y, center_z, half_width, half_height, half_depth | each, label |
InstancePoses3D | translation_x, translation_y, translation_z, quat_x, quat_y, quat_z, quat_w | each |
Arrows3D | origin_x, origin_y, origin_z, vector_x, vector_y, vector_z | each |
GeoPoints | lat, lon | each, alt |
Transform3D | translation_x, translation_y, translation_z, quat_x, quat_y, quat_z, quat_w | — |
LineStrips3D | each, x, y, z | — |
{
position: {
archetype: "Points3D",
x: "x", y: "y", z: "z",
label: "name",
},
}Boxes take half sizes, so pointing them at a message's full widths draws boxes twice as large.
When alt is set on GeoPoints, the altitude is also plotted as a time series at
<entity>/altitude.
Arrays
One archetype for the whole array
Add each to a composite to iterate an array and log every element in one batch — one entity
holding all the points, boxes or arrows:
{
detections: {
archetype: "Points3D",
each: ".",
x: "position.x", y: "position.y", z: "position.z",
label: "class",
},
}each is the path to the array. Use "." when the field itself is the array. LineStrips3D
always needs each, since its points come from an array; Transform3D takes no each.
One entity per element
To give every element its own entity instead, use each with fields and no archetype. Each
element's sub-fields are mapped as usual, under <entity>/<key>:
{
bodies: {
each: ".",
entity_key: "name",
fields: {
position: {
archetype: "Points3D",
x: "x", y: "y", z: "z",
},
},
},
}entity_key names the field whose value becomes each element's entity name, so a body named
arm logs to /topic/bodies/arm/position. Without it, or when an element lacks that field, the
element's index is used instead.
Nested fields
Recurse into sub-messages:
{
position: {
fields: {
x: { archetype: "Scalars" },
y: { archetype: "Scalars" },
z: { archetype: "Scalars" },
}
},
}Field paths
Use dot notation to reach nested fields from a composite:
{
target: {
archetype: "Points3D",
x: "pose.position.x",
y: "pose.position.y",
z: "pose.position.z",
},
}