Odometry
444 words · 3 min read · 2 sources
Odometry is a method of estimating a robot's current position by tracking how far and in what direction it has moved from a known starting point, using wheel encoders, motor data, or inertial sensors.
Before GPS, sailors estimated their position at sea using a technique called dead reckoning: start from a known point, record your speed and heading, and keep a running total of where you must be. If you sailed north at 10 knots for two hours, you were roughly 20 nautical miles north of where you started. It's not perfect — currents and wind introduce errors
Before GPS, sailors estimated their position at sea using a technique called dead reckoning: start from a known point, record your speed and heading, and keep a running total of where you must be. If you sailed north at 10 knots for two hours, you were roughly 20 nautical miles north of where you started. It's not perfect — currents and wind introduce errors — but it's far better than nothing, and it works without any external reference.
Robots do the same thing with wheels. That technique is called odometry.
How wheel odometry works
Most wheeled robots have encoders attached to their drive wheels — sensors that count tiny notches on a rotating disc, producing pulses with every fraction of a degree of wheel rotation. By counting pulses and knowing the wheel's circumference, the robot computes how far each wheel has travelled. For a two-wheeled differential-drive robot (like most floor robots and Roombas), the difference in left and right wheel distances tells it how much it has turned. Integrating these measurements over time gives a continuous estimate of position and heading — the odometric pose.
The mathematics is straightforward: at each timestep, update the x position by Δd × cos(θ), the y position by Δd × sin(θ), and the heading θ by (Δright − Δleft) / wheelbase. Small numbers, fast arithmetic, runs happily on a microcontroller.
The drift problem
Odometry suffers from one fundamental flaw: error accumulates. Every small slip, every slight wheel diameter asymmetry, every tiny encoder miscounting adds to the position estimate. Over short distances, odometry is excellent. Over long distances, the errors compound and the estimated position drifts arbitrarily far from the truth. A robot using only odometry will gradually spiral or veer as its estimate drifts.
This is why odometry is almost always fused with other sensors — lidar, cameras, IMU (inertial measurement unit) — and corrected by a localisation algorithm. Odometry provides a fast, low-latency estimate between sensor updates; the other sensors provide periodic corrections to reset accumulated drift.
Visual and inertial odometry
Wheel-based odometry isn't the only kind. Visual odometry tracks features in camera images to estimate motion, useful on legged robots or drones that have no wheels. Inertial odometry integrates accelerometer and gyroscope readings from an IMU. Both suffer the same drift problem as wheel odometry, but combining all three (wheel + visual + inertial) in a sensor fusion pipeline produces estimates accurate enough for warehouse navigation, Mars rover operations, and consumer robot vacuums.
NASA's Mars rovers Spirit and Opportunity relied heavily on odometry for short-range navigation because GPS doesn't exist on Mars — their wheels even had deliberate cutout patterns to help cameras measure ground slip.
Next: one minute
Watch how Odometry actually works
A one-minute video, an interactive demo you can poke at, and one question to check it landed.
Watch the one-minute lesson →Plain English. Free. Unsubscribe in one click.
Learn this in the Academy
🔌W-04: Building a Mobile Robot
Hands-on lesson · Wire track
Keep going
Timed Elastic Band (TEB)
The timed elastic band is a local planner that treats a robot's path like a stretchy band pulled taut by the g…
ConceptSOTIF (Safety of the Intended Functionality)
SOTIF addresses a safety problem unique to AI-driven robots and self-driving cars — being unsafe even when not…
ConceptState Lattice Planner
A state lattice planner searches over a pre-built set of feasible motion primitives arranged in a regular grid…
Last updated · 2026-05-19
Spotted something off? Report an error →