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.
The concept concept: Odometry is a method of estimating a robot's
Difficulty 3/5 Β· ClassroomBefore 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
π‘ Think of it likeβ¦
Think of it like a household object that does the same job β the underlying idea is the same, just adapted for robots.
Why it matters
Without odometry, many concept systems in robotics simply couldn't work.
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.
Ask R2 Co-pilot anything you didn't understand about Odometry. It'll explain it plainly.
Learn this in the Academy
πW-04: Building a Mobile Robot
Hands-on lesson Β· Wire track
Keep going
A* (A-Star) Pathfinding in Robotics β Complete Guide
A* finds the shortest path between two points on a grid or graph. It is the most-used pathfinding algorithm inβ¦
ConceptAccelerometer in Robotics β Complete Guide
An accelerometer measures linear acceleration along an axis. In robotics, accelerometers detect motion, tilt, β¦
ConceptActuator
The muscles of a robot β devices that convert electrical or pneumatic energy into mechanical motion.
Last updated Β· 2026-05-19
Community discussion
0 questions & insightsLoading discussionβ¦
Spotted something off? Report an error β