TECHNOLOGY

Compass heading and geographic ROS yaw use different zero directions and signs

In this article
THE QUICK TAKE

For the declared geographic ROS convention, yaw starts at east and increases counterclockwise; a north-zero clockwise compass value needs a geometric convention conversion too.

Unit conversion leaves the robot facing the wrong way

A robot adapter converts a compass-style heading from degrees into radians and inserts it as geographic yaw. Its visual arrow points in the wrong direction even though the angular unit is now correct. The source and target also differ in zero direction and positive rotation sense. Name those conventions before changing sensor calibration. A single test facing east or north is useful, but a signed turn is needed to expose an additional reversed rotation direction.

The geographic yaw convention is explicit

REP 103 uses radians for angles and defines geographic yaw as zero toward east, increasing counterclockwise. It explicitly contrasts a traditional compass bearing starting north and increasing clockwise. Preserve this difference in the adapter specification. A conversion must account for unit, zero reference and rotation sense, with a declared output interval. Do not apply a convenient constant offset while leaving an opposite positive direction unnoticed; these are independent parts of the angular mapping.

North itself needs a named reference

The REP 145 draft distinguishes sensor and device world frames, discusses magnetic reference and notes that yaw may be arbitrary without an absolute reference. This is draft driver guidance, not evidence that a particular device provides true-north heading. Changing ENU/NED axis conventions does not independently resolve magnetic declination or create an absent absolute reference. Obtain the actual producer contract before describing a corrected yaw as geographically aligned, and preserve any separately justified reference correction.

Keep heading distinct from direction of travel

State that the source quantity is the platform heading intended for this adapter. A direction of travel can differ when a robot reverses, slips or moves sideways; it should not become body orientation merely because it is also an angle referenced to north. Keep that semantic decision outside the coordinate conversion. Likewise, a mounted sensor can have a known angular offset relative to the body. Preserve measurement meaning, reference convention and mounting correction as separate inputs rather than combining them into an unexplained tuning constant.

Use cardinal directions and a signed turn as the fixture

Propose passive true-heading inputs for distinguishable cardinal directions and an ordered signed turn under the declared source convention. Compare the resulting orientation in the geographic frame, including the chosen wrap boundary. Separately test a deliberately unknown or magnetic reference rather than assigning it geographic certainty. Acceptance verifies the documented mapping, not the physical compass’s accuracy. No sensor, heading conversion or robot experiment was run here; the fixture does not certify magnetic calibration or safe navigation.

Report a convention conversion rather than a calibration claim

BOP pose and units explain another geometric interface contract. MVSEC pose references explain reference-dependent interpretation. For heading, retain quantity, north reference, units, zero direction, positive sense and mounting relation together. A plausible arrow is not proof of all those conditions. This narrow record makes a systematic yaw discrepancy diagnosable while keeping mathematical conversion separate from measured sensor quality, localization accuracy and control acceptance.

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