TECHNOLOGY

ROS Odometry: pose and twist are expressed in different declared frames

In this article
THE QUICK TAKE

Interpret Odometry pose in header.frame_id and twist in child_frame_id; a shared message and timestamp do not make their coordinate expressions identical.

A turn reveals an axis mistake that straight motion hid

A mobile robot drives forward after turning, but a monitoring adapter plots its velocity along the original world axis. The pose looks plausible because it was read in the parent frame correctly. The adapter treated the twist components under that same frame by convenience. Separate the coordinate expression of each field before blaming wheel odometry. A straight trajectory aligned with the world axes can hide the error; a rotated base supplies a more discriminating passive test.

The message declares frames per field

The Odometry definition states that pose is expressed in header.frame_id and twist in child_frame_id. Preserve both fields when converting the message into application arrays. A shared timestamp does not collapse these declarations into a single coordinate system. Nor should a cache retain only pose-frame metadata and silently attach it to every numeric component. The decoder must know which field it is reading before interpreting its direction or combining it with another measurement.

Frame names encode different reference behavior

REP 105 describes base_link attached to the base, odom as continuous but drifting and map as a globally corrected reference that can jump. These are conventions to preserve, not a guarantee of measured accuracy. Do not rename a velocity vector into map coordinates without the required conversion, and do not treat localization jumps as physical instantaneous robot motion. Retain the selected parent reference along with the child frame and the estimator’s actual output contract.

Changing the reference point needs more than relabeling

For a simple axis-expression check at the same physical reference point, the orientation relation exposes the component mismatch. If an application moves the velocity reference to another point on the robot, rotational motion can contribute additional linear velocity. Use the appropriate supported spatial-motion convention instead of applying a point-position transform to every vector. Keep this separate from the initial frame-label diagnosis. A repaired body/world axis conversion does not automatically validate lever-arm compensation or the covariance transformation used by a downstream estimator.

Use a rotated-base fixture without commanding motion

Propose synthetic Odometry messages with a known rotated base, forward body velocity and a consistent pose. Verify how the adapter reports body and parent-frame components, then compare a world-aligned control. Retain both declared frames through serialization and cache reload. Acceptance requires the expected directional relationship, not matching raw components between frames. No robot or estimator was run here. The fixture tests interpretation and does not establish sensor calibration, wheel slip performance or safe navigation.

Report the field and its frame together

MVSEC reference histories explain why related trajectories need separate interpretation. Argoverse stored point frames explain why sensor identity alone does not establish coordinates. This runtime case adds a field-level rule: pose and twist in one Odometry message carry different frame declarations. Keep the field, timestamp, frame and physical reference point together. That makes a velocity discrepancy diagnosable without converting every plausible coordinate mismatch into a model or localization failure.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles