Rewire
Custom Mappings

Archetypes

Available Rerun archetypes for custom message mappings.

Leaf archetypes

Simple one-to-one field mappings:

ArchetypeDescriptionField typeOptional keys
ScalarsNumeric time seriesAny numeric field—
TextLogLog entryString fieldlevel
TextDocumentRich text displayString fieldmedia_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:

ArchetypeRequired fieldsOptional fields
Points2Dx, yeach, label
Points3Dx, y, zeach, label
Boxes2Dcenter_x, center_y, half_width, half_heighteach, label
Boxes3Dcenter_x, center_y, center_z, half_width, half_height, half_deptheach, label
InstancePoses3Dtranslation_x, translation_y, translation_z, quat_x, quat_y, quat_z, quat_weach
Arrows3Dorigin_x, origin_y, origin_z, vector_x, vector_y, vector_zeach
GeoPointslat, loneach, alt
Transform3Dtranslation_x, translation_y, translation_z, quat_x, quat_y, quat_z, quat_w—
LineStrips3Deach, 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",
  },
}

On this page

Last updated on October 25, 2026

© 2026 Rewire