Rewire

Entity Mapping

How ROS 2 topics become Rerun entities in the viewer.

When Rewire receives a ROS 2 message, it converts it to one or more Rerun entities. Understanding this mapping helps you navigate the viewer and write custom mappings.

Topic to entity path

ROS 2 topic names map directly to Rerun entity paths:

ROS 2 topicRerun entity path
/camera/image/camera/image
/odom/odom
/robot/joint_states/robot/joint_states

The topic name becomes the entity path. Namespaced topics naturally create a hierarchy in the Rerun viewer's entity tree.

One topic, multiple entities

Some message types produce more than one Rerun entity. For example:

  • Odometry logs an InstancePoses3D (pose), an Ellipsoids3D (position covariance), and Scalars (position, orientation, linear/angular velocity, and the covariance diagonals)
  • Imu logs Scalars only, one entity each for orientation, angular velocity, linear acceleration, and their covariance diagonals
  • PoseWithCovarianceStamped logs InstancePoses3D (pose), Ellipsoids3D (position covariance), and Scalars (position, orientation, and the covariance diagonal)

The additional entities are logged as children of the topic path. For example, a /odom topic carrying Odometry messages produces:

/odom                 -> InstancePoses3D (pose)
/odom/position        -> Scalars (x, y, z)
/odom/orientation     -> Scalars (x, y, z, w)
/odom/covariance      -> Ellipsoids3D + Scalars (position covariance, when reported)
/odom/twist/linear    -> Scalars (x, y, z)
/odom/twist/angular   -> Scalars (x, y, z)
/odom/twist/covariance -> Scalars (twist covariance diagonal, when reported)

Grouped scalar series

A vector-valued signal logs as one entity carrying its components as named series, not one entity per axis. The three components of /odom/position share a single plot, colored by axis, and the legend names them x, y, and z.

To look at one axis on its own, click a series in the plot legend to toggle it, or Alt-click to solo it. The choice is stored in the blueprint, so it survives across sessions.

Before v0.7.0 each axis had its own entity, such as /odom/position/x. Blueprints that reference per-axis paths need updating to the grouped path.

The BatteryState converter is the exception: its fields mix units (V, A, Ah, %, °C) that would collide on one y-axis, so each keeps its own entity. Custom JSON5 mappings also keep the paths you define.

Messages of type visualization_msgs/Marker use a namespace and ID scheme. A marker published on the /visualization_marker topic with namespace obstacles and ID 3 produces:

/visualization_marker/obstacles/3  -> Boxes3D, Arrows3D, etc.

TF tree integration

Entities that have a Header with a frame_id are automatically placed in the TF tree. The Rerun viewer uses this to render data in the correct coordinate frame.

For example, a PointCloud2 on /lidar/points with frame_id: "lidar_link" will appear attached to the lidar_link frame in 3D space, moving with the robot as TF updates.

Data measured in pixels works differently. An Image, CompressedImage, ImageMarker, or Detection2DArray is attached to the image of the camera named by its frame_id, not to the 3D frame itself. Give your overlays the same frame_id as the camera image and they draw on top of it in a 2D view. When the camera also publishes CameraInfo, the image and its overlays are projected into the 3D view at the camera's pose.

Custom mappings

When the built-in type mappings don't cover your message type, you can define custom mappings in a JSON5 file. Custom mappings follow the same entity path convention — the topic name becomes the entity path, and you define which fields map to which Rerun archetype components.

See Custom Mappings for details.

On this page

Last updated on October 26, 2026

© 2026 Rewire