Odometry
Odometry: estimating a robot's or vehicle's position from its own motion (wheel turns, camera images). Fast and simple, but the error builds up with distance.

Odometry is the estimation of a robot's or vehicle's position from its own motion: wheel turns counted by encoders, or how a camera's view shifts from frame to frame. It is the foundation of every mobile robot, from robot vacuums to Mars rovers, because it is instant and relies on no external infrastructure. Its limit is well known: the error grows with distance, and another sensor is needed to correct it.
Technical definition
Wheel odometry: count and add up
A robot with two drive wheels measures how much each wheel turns. If both turn equally, it moves straight ahead; if one turns more than the other, it turns. Adding up these small movements from a known starting point gives an estimated position and heading, updated dozens of times per second.
The math is simple, and the sensor is cheap and often already built into the motors. But every step carries a small error (slip, wheel diameter, rugs, door thresholds), and those errors don't cancel out: they stack up. Heading errors are the most expensive, since a few degrees off course is enough to shift the robot by tens of centimeters within a few meters.
Visual odometry and optical flow
Visual odometry replaces the wheels with one or two cameras: it tracks distinctive features of the scene from one image to the next and infers the motion. It is immune to wheel slip, which is why it is used on Mars, where sand fools the wheels. The optical-flow sensor, a miniature version of the computer-mouse principle, directly measures the floor sliding past under the robot.
These methods drift too, but differently and often more slowly. Robust systems fuse them with an inertial measurement unit (IMU) and wheel encoders in a filter that weights each source by how reliable it is.
Current challenges
Anchoring to the world: odometry plus perception
Odometry alone is never enough over time. It serves as a prediction that perception corrects: a lidar scan matched against a floor plan (scan matching), an AprilTag-style visual marker, a beacon, or GPS outdoors. The ROS convention (REP 105) formalizes this split between an “odom” frame, continuous but drifting, and a “map” frame corrected by other sensors.
The old Neato example on this site shows it clearly: the wheels alone drift by about fifty centimeters over a few meters, while a laser scan matched to the floor plan brings the error back to a few centimeters. A mobile robot's quality depends less on its odometry than on how it corrects it.
A question for decision-makers, not just engineers
Warehouse robots, autonomous forklifts, robotic mowers, inspection drones: all rely on corrected odometry. For a decision-maker, the right questions concern the real environment (slippery floors, symmetrical spaces, glass walls, featureless areas), the sensors planned to correct the position, and what the robot does when it knows it is lost. A robot that never doubts itself is more dangerous than one that stops to re-localize.
Standards and Specifications
ROS REP 105 — Coordinate Frames for Mobile Platforms
The reference robotics convention: the “odom” frame is continuous and accurate in the short term but drifts without bound; a “map” frame, corrected by other sensors, keeps it in check
Frequently Asked Questions
How does odometry work?
Odometry adds up small movements. On a wheeled robot, encoders count each wheel's rotation: that gives the distance traveled and, from the difference between the left and right wheels, every change of heading. Starting position plus the sum of movements equals the estimated position.
It needs no external infrastructure (no GPS, beacon or map) and answers instantly. That is why nearly every mobile robot, from a robot vacuum to a Mars rover, uses it as its baseline estimate.
Why does odometry drift?
Every measurement carries a small error: a wheel that slips, slightly different wheel diameters, uneven floors, a badly measured turn. Because the position is a sum, these errors accumulate instead of cancelling out, and a heading error of a few degrees quickly turns into tens of centimeters at the end of a straight line.
In the old Neato example described on this site, a simulation shows about fifty centimeters of drift over a 7.5 m trip using the wheels alone. Drift is not an implementation bug: it is inherent to the method.
What is the difference between odometry and localization?
Odometry is relative: it tells you how far you have moved since the last known point. Localization is absolute: it places the robot on a map by comparing what it senses (a lidar scan, an image, a marker) with what it should sense.
In practice, the two work together. Odometry provides a fast, continuous estimate, and localization corrects it at regular intervals. In the Neato's case, one laser scan matched against the floor plan brings the error back to about 2 cm at every stop.
What is visual odometry?
Visual odometry estimates motion by tracking distinctive points from one camera frame to the next, using one or two cameras. It does not depend on wheel grip, which makes it valuable on slippery ground: NASA has been using it on its Mars rovers since the mid-2000s.
A very low-cost variant is the optical-flow sensor, the same principle as a computer mouse: a tiny camera pointed at the floor measures how far the robot really moved. These approaches drift too, but more slowly, and they pair well with wheel encoders.