Loop closure is the moment a robot recognizes "I've been here before" — the single most important event in SLAM, because it lets the system cancel out all the drift accumulated since it last saw that place.
Loop closure is when a robot realizes it has returned to a place it mapped before. That recognition lets it correct all the small errors that piled up along the way, snapping its map back into shape.
As a robot explores, tiny errors in its motion estimate quietly pile up — this is drift, the curse of dead reckoning. Loop closure is the cure, and the most dramatic moment in any SLAM run.
What it is
Loop closure is the robot recognizing that its current view matches a place it mapped earlier — it has come full circle. That recognition creates a powerful new constraint: "wherever my drifting estimate thinks I am, I'm actually back here." Feeding that constraint into the map lets the system undo the accumulated error all at once.
Recognize, constrain, correct
The new edge links now to a much earlier pose; re-optimizing spreads the built-up error backward across the whole loop, and the map snaps into alignment.
How robots detect it
Recognizing a place is a perception problem, not a geometry one:
Cameras use appearance-based place recognition — bag-of-visual-words (DBoW2) or learned global descriptors — to find images that look like the current view.
Lidar uses scan descriptors (like Scan Context) to match 3D shapes.
Because a false loop closure is catastrophic — it welds two unrelated places together and warps the whole map — systems add geometric verification (RANSAC-style checks) before trusting a match.
What happens after detection
Once verified, the loop closure becomes an edge in the pose graph. Re-optimizing distributes the correction across every pose in the loop, so the map visibly tightens — corridors line up, rooms stop duplicating. This global fix is exactly what pure odometry and filtering can't achieve.
Why it matters
Loop closure is what separates a map that slowly warps into nonsense from one that stays globally consistent over hours of operation. Modern SLAM research is largely about detecting loop closures faster, more reliably, and across bigger changes in lighting and season.