Robotics and Middleware · Spatial reference
Coordinate Frame
Also known as reference frame, coordinate system, axis system, base_link, map frame, odom frame, ENU
A reference defined by an origin and three orthogonal axes, in which positions, orientations and motions are expressed. Vehicles use many frames (world, map, vehicle body and each sensor) linked by transforms.
Explanation
The same physical point has different coordinates in a camera frame, a LiDAR frame and the vehicle frame, so every measurement must state its frame. ISO 8855:2011 defines road-vehicle axis systems, including an earth-fixed system and a right-handed vehicle axis system fixed to the sprung mass, with X forward, Y to the left and Z upward. ROS REP 103 uses the same body convention (x forward, y left, z up), east-north-up for short-range geographic frames, and an optical convention for cameras with z forward, x right and y down.
ROS REP 105 names standard frames for mobile platforms. base_link is rigidly attached to the vehicle. odom is world-fixed, and the pose in it is continuous but drifts without bound. map is world-fixed and does not drift significantly, but the pose in it can jump when localisation corrects it. earth is used when several maps are involved. These frames are arranged in a tree.
Convention mismatches are a frequent source of errors: north-east-down axes, different Euler-angle sequences, or different vehicle reference points such as the rear axle versus the centre of gravity. Each frame's origin, axes and handedness should be documented.
How it works
Each frame is defined by its origin and axis directions relative to a parent frame. A rigid transform, a translation plus a rotation (as a rotation matrix, Euler angles or quaternion), converts coordinates from one frame to another, and transforms chain along a tree to relate any two frames. Frames that move over time, such as the vehicle within the map, need transforms evaluated at the measurement time.
Automotive applications
- Expressing sensor detections in a common vehicle frame
- Defining sensor mounting positions for calibration
- Map-based localisation and planning
- Exchanging scenarios and ground truth between tools
Example
A front camera sits 1.9 m ahead of the base_link origin at the rear axle and 1.4 m up. In its optical frame z points forward, so a point 20 m ahead on the optical axis has z_cam = 20 m and lies at about x = 21.9 m, z = 1.4 m in base_link, ignoring camera tilt.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- REP 103: Standard Units of Measure and Coordinate Conventions (opens in a new tab)
“This REP provides a reference for the units and coordinate conventions used within ROS.”
- REP 105: Coordinate Frames for Mobile Platforms (opens in a new tab)
- ISO 8855:2011 Road vehicles — Vehicle dynamics and road-holding ability — Vocabulary (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.