Localization, Mapping & SLAM

loop closure

Loop closure is the moment a robot realizes 'I've been here before,' and uses that recognition to snap its map back into shape. As a robot drives around, it tracks its own motion step by step — a little forward, a slight turn — and tiny errors in each step quietly pile up, so its guess of where it is slowly slides away from the truth. This creeping error is called drift. Walk a big loop around a building with your eyes half-closed, counting steps, and by the time you return to the front door your tally will say you're somewhere else entirely. Loop closure is the robot opening its eyes at the door, recognizing it, and saying 'wait — this is exactly where I started.'

That single recognition is enormously powerful. The robot now knows two things it thought were far apart are in fact the same place, which gives it a hard constraint: the start and end of the loop must line up. It can then spread the accumulated error backward across the whole path it traveled, gently bending the route so the loop actually closes instead of leaving a gap or an overlap. A map that was drifting into a smeared, mismatched mess gets pulled into a clean, consistent shape — corridors meet up, walls stop doubling, rooms land where they belong.

The catch is that recognizing a revisited place is itself hard and risky, because it leans on the data-association problem: two places can look alike without being the same. A false loop closure — declaring you're back at the start when you're really in a different but similar-looking spot — yanks the map into a confidently wrong shape that is very hard to undo. So good systems demand strong, well-checked evidence before they trust a loop closure, treating a wrongly accepted one as far worse than a missed one.

A vacuum robot mapping a whole apartment finishes a long loop and rolls back into the kitchen where it began. Recognizing the kitchen, it realizes its map had drifted by half a meter, and corrects the entire floor plan in one stroke.

Returning to a known spot lets one recognition fix a whole journey of error.

Drift is the slow error that loop closure cures; without revisiting a known place, a robot moving only by dead reckoning has no way to discover and correct that drift.

Also called
loop-closure detectionplace revisiting闭环检测回环閉環偵測