Localization, Mapping & SLAM

simultaneous localization and mapping (SLAM)

Simultaneous localization and mapping, almost always shortened to SLAM, is a robot solving two tangled problems at the very same time: drawing a map of a place it has never seen, while also keeping track of where it is on that very map. Imagine being dropped, blindfolded, into a pitch-dark unfamiliar house and asked both to sketch its floor plan and to mark your own position on it as you feel your way around. You have no map to locate yourself against, and no fixed position from which to draw the map — yet you must produce both, each leaning on the other.

That circular dependency is the whole difficulty, and it is also the trick that makes SLAM possible. As the robot moves, it spots features around it — a corner here, a pillar there — and notes how far and in which direction each one lies. From those bearings it can both refine where it thinks it is and pin those features onto its growing map. The two estimates prop each other up, like two people steadying themselves by leaning together: a slightly better idea of your position sharpens the map, and a slightly better map sharpens your idea of your position. The catch is that small errors creep in with every step and quietly accumulate, so the map can slowly warp.

The cure for that drift is a moment SLAM systems prize, called loop closure: when the robot revisits a place it has been before and recognizes it, that recognition snaps the accumulated error back into line and tightens the whole map at once, the way checking your work against a landmark you already trust corrects all the guesses in between. SLAM in its modern forms — using laser scanners in LiDAR SLAM, or ordinary cameras in visual SLAM — is the technology under the hood of robot vacuums, self-driving cars, drones, and the augmented-reality apps that place virtual furniture in your living room.

A new robot vacuum, exploring your home for the first time, has no map at all. It wanders, drawing walls as it discovers them and tracking its own path among them; when it loops back to the kitchen doorway it started from and recognizes it, the whole map snaps neatly square — that recognition is loop closure at work.

Building the map and finding yourself on it, both at once — with no map and no position given to start.

SLAM is often pictured as two halves working together: a front-end that reads raw sensor data and recognizes features and revisited places, and a back-end that crunches all those observations into the most consistent map and trajectory.

Also called
SLAMconcurrent mapping and localization同步定位与地图构建即時定位與地圖構建