Localization, Mapping & SLAM

robot mapping

Robot mapping is the act of a robot building a record of what its surroundings look like, by stitching together everything its sensors pick up as it travels. Think of a surveyor walking a plot of land, jotting down where each fence, tree, and ditch sits until the loose notes add up to a usable map. A robot does the same, only its notes are streams of sensor readings — laser distances, camera images, sonar echoes — and the finished map is a digital model of the space it can store, reuse, and reason about later.

The catch that makes mapping its own distinct skill is this: a single sensor sweep only tells you what is around the robot at one instant, from one spot. To build a whole map you must take readings from many spots and fuse them into one consistent picture, and to do that you need to know where the robot was standing for each reading. Mapping in its pure form assumes those positions are already known and trustworthy — say, the robot is carried along a precisely measured track, or its location is pinned down by some outside system. Given trusted positions, the work is to transform each scan into a common frame of reference and lay them on top of one another so walls line up and the picture holds together.

The result can take different shapes depending on what the robot needs. It might be an occupancy grid that shades in where space is blocked or free, a landmark map that records only a handful of standout features like corners and poles, or a richer three-dimensional model. In practice, of course, a robot rarely knows its own positions perfectly ahead of time, which is exactly why pure mapping so often gets bundled with localization into the joint problem of SLAM.

A factory installs a robot whose exact path is fixed by rails, so its position at every moment is known with millimeter precision. As it glides along, it sweeps a laser over the shelves and stitches the scans into a detailed map of the warehouse aisles, ready for other robots to use.

When the robot's positions are known, mapping is just lining up the scans correctly.

Mapping and localization are mirror images: mapping assumes you know where you are and asks what the world looks like, while localization assumes you know the world and asks where you are. Each is hard precisely because, in the real world, you usually have neither for free.

Also called
mappingmap building建图地图构建