Robotics · also MathematicsLevel 3 · Innovator
Navigation frames, heading and waypoints
A vehicle that navigates keeps track of two frames at once. The world frame is fixed to the map (east and north) or, for a spacecraft, to distant stars. The body frame rides with the vehicle: x points out of the nose and y out of the left side. Heading is the compass angle of the nose, measured clockwise from north, while mathematics measures angles anticlockwise from east, so the two differ by 90 degrees and a sign. To steer towards a waypoint, the vehicle finds the bearing to it in the world frame, then rotates that into its own body frame to see whether the waypoint is ahead, behind, left or right, and how far to turn.
Why it mattersAn autopilot, a Mars rover and a drone all steer by turning world-frame waypoints into body-frame directions many times a second.