FIELD NOTES / ZAPPD
Why a robot map can change after the robot comes home
SLAM estimates both motion and surroundings. Drift, loop closure and coordinate frames explain why a corrected map can move while the robot stays still.
A robot completes a circuit of a corridor. On screen, two walls that appeared slightly misaligned suddenly line up. The robot has not pushed the building into place. Its estimate of the building and its own journey has changed.
That moment captures something easy to miss about simultaneous localization and mapping, or SLAM. The map is an estimate assembled from observations made by a moving observer. The observer's position is also uncertain. These uncertainties interact throughout the journey.
Thinking of mapping as drawing walls makes the correction look strange. Thinking of it as reconciling evidence makes it expected. The interesting question becomes which evidence caused the system to revise its explanation.
Small motion errors accumulate
Consider an imagined wheeled robot travelling around a rectangular room. If its motion estimate contains a small directional error on each segment, the estimated final position can differ from the starting position. Measurements gathered along the way are then placed according to a trajectory that does not close cleanly.
This thought experiment illustrates drift without assigning a particular error rate to a sensor. The effect depends on the motion estimate and environment. A map that looks plausible locally can still become inconsistent over a longer route.
The Cartographer algorithm walkthrough separates local SLAM, which builds locally consistent submaps, from global SLAM, which seeks a consistent relationship among them. The document explicitly allows local SLAM to drift. Global processing finds loop closure constraints by matching observations against submaps.
Submaps make the distinction concrete. A short stretch of corridor can be represented coherently even while the accumulated arrangement of corridor sections needs correction. Global consistency and local consistency describe different properties of the estimate.
Returning supplies another relationship
When the robot observes a previously visited area, that observation can connect the present journey to an earlier part of the map. A loop closure supplies a relationship that was unavailable while the robot was exploring new space. The system can use it to revise the estimated arrangement.
It is helpful to imagine surveying the same doorway twice. The two measurements should describe one doorway, but their inferred locations differ. Reconciling them requires revisiting some combination of the intervening motion estimates and map placement. Merely drawing another doorway would preserve the contradiction.
The interpretation also exposes a failure mode. A repeated corridor can resemble another corridor. If the system accepts the wrong relationship, global correction can make the estimate worse. Recognizing a place and making a geometrically consistent connection deserve separate scrutiny.
For a builder, a dramatic map jump is therefore evidence to investigate. It can reflect a useful correction or a bad association. The size of the visual jump alone cannot distinguish those explanations. The observations and accepted constraints matter more than how reassuring the final picture looks.
Position is relative to a frame
ROS REP 105 defines coordinate frame conventions for mobile platforms. Its odom frame supports continuous local motion estimates that can drift. Its map frame provides a long-term reference in which the robot pose can change discontinuously as localization corrects the estimate.
These are different promises. A controller acting on nearby motion benefits from continuity. A system relating the robot to a stored building map needs a global reference that can incorporate corrections. One coordinate representation need not satisfy both requirements in the same way.
Imagine a robot stationary beside a doorway while its map-based pose changes after a correction. The wheels did not necessarily move. The relationship between the locally continuous estimate and the global map changed. Logging only one position number would conceal that distinction.
This is why a localization display should name its reference frame. Coordinates without a frame leave out part of their meaning. The statement that a robot moved twenty centimeters is incomplete if the apparent movement was a corrected estimate in one reference rather than observed physical motion.
Mapping does not finish navigation
A coherent map does not decide where the robot should go next. It also does not guarantee that the present scene matches the stored one. A newly placed cart can occupy a route that was open during mapping. Global location and immediate obstacle observation address different questions.
For an imagined office experiment, it would be useful to repeat the route under a few deliberately recorded conditions. Preserve a run with a clear corridor, another with moved furniture and another with an ambiguous repeated feature. Compare where the estimates diverge rather than judging only the final map image.
The proposed comparison is diagnostic, not a universal SLAM benchmark. It asks whether the system can reconcile the evidence that matters in that particular place. Sensor timestamps and mounting relationships should accompany the record because the observations must correspond to the motion being estimated.
A good map review would show the trajectory before and after correction, the matched region and the relevant coordinate frames. That reveals what the software learned when the robot returned. The useful achievement is an improved account of the journey, with enough evidence to explain the revision.