Problemintro
Simultaneous localization and mapping
Also called SLAM, concurrent mapping and localization.
Build a map of an unknown environment and locate the robot in it at the same time, from motion and sensor data.
Simultaneous localization and mapping (SLAM) asks a robot that starts in an unknown place to build a map of it and, at the same time, find its own pose in that map, from its controls and its sensor readings only. This page is the general problem. It has two standard probabilistic forms, which have their own pages. Online SLAM asks for the current pose and the map, , and suits filters that run as the robot moves. Full SLAM asks for the whole path and the map, , and suits methods that optimize over all the data. The two halves of SLAM are simpler alone: localization with a known map, and mapping with known poses. SLAM is hard because each half needs the answer of the other, and because the errors of the pose and of the map are correlated.
In plain words
A robot is put in a building that it has never seen. It can count its wheel turns and it can see walls or marks around it, but both kinds of data have errors. It must draw a map and also say where it is on that map. If it knew where it was at every moment, drawing the map would be easy. If it had the map, finding itself would be easy. It has neither, so it must guess both together. A mistake in its position makes it draw the walls in the wrong place, and a wrong wall makes it place itself wrongly later. When the robot comes back to a place it has seen before and recognizes it, it can correct the errors that built up along the way.
Definition
Input. A sequence of controls , such as odometry readings, and a sequence of sensor readings , such as laser scans, camera images or ranges and bearings to landmarks. A motion model and a measurement model describe the noise. The pose at the start defines the frame of the map, often .
Output. An estimate of the map and of the robot pose, with its uncertainty. A planar pose is . The map can be a list of landmark positions, an occupancy grid, a set of points or a graph of places.
The question. In the probabilistic form, compute the posterior over the pose and the map given all the data. The online form keeps only the current pose, . The full form keeps the whole path, . The online posterior is the full posterior with the past poses integrated out.
Correspondence. A reading of a landmark does not always say which landmark it is. Deciding this is data association, a part of SLAM that is often harder than the estimation itself.
Variants
- Online and full. See online SLAM and full SLAM.
- Map types. Landmark maps, where the map is a vector of feature positions. Dense maps, such as occupancy grids or point clouds. Topological maps, a graph of places, see topological map.
- Known or unknown correspondences. With known correspondences each reading comes with the identity of its landmark. Without them, data association is part of the problem.
- Sensors. Laser or lidar SLAM, visual SLAM with one camera, as in MonoSLAM, or with several cameras, and SLAM with an inertial sensor.
- Several robots. Multi-robot SLAM adds the unknown relative poses of the robots and the merging of maps.
Examples
A 1D world, by hand. A robot moves on a line. It starts at , known exactly. One landmark is at an unknown position . The reading is with noise variance 1, and the motion is with noise variance 1.
- At the robot reads . So , and the map does not depend on the pose yet.
- It moves with , so , independent of .
- It reads . The predicted reading is , the innovation is , and its variance is . The covariance of the reading with is and with is , so the Kalman gains are and .
- The new estimates are and . The variances are each, and the covariance of and is now , a correlation of .
The last line is the heart of SLAM. The reading measures only the difference , so it ties the errors of the pose and the map together: if the robot is in truth further than it thinks, the landmark is too. A method that keeps the pose and the map as two separate estimates, without this correlation, throws away information and becomes overconfident.
Known algorithms
- Filters for the online form. EKF SLAM keeps one Gaussian over the pose and all landmarks, at a cost of per update for landmarks. The extended information filter and the sparse extended information filter work with the inverse covariance. MonoSLAM is EKF SLAM with one camera.
- Particle filters. FastSLAM samples paths and keeps one small filter per landmark, at per step with particles and a balanced tree. Grid-based RBPF SLAM does the same with one grid per particle.
- Optimization for the full form. GraphSLAM, square-root SAM, iSAM and iSAM2 solve the full problem as sparse nonlinear least squares. Pose graph optimization keeps only the poses.
- Systems. ORB-SLAM and lidar odometry and mapping combine tracking, mapping and loop closure detection.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| FastSLAM | O(N k log m) step | O(N m) extra | randomizednot exactonlinerecursive | 1 language |
| Grid-based Rao-Blackwellized SLAM | O(N G) resampling | O(N G) extra | randomizednot exactonlinerecursive | 1 language |
| Lidar odometry and mapping | O(n k + n log n) feature_extraction | O(m) map | deterministicnot exactonlinetoy code | 1 language |
| ORB-SLAM | O(l + c f) loop_query | O(n f) map | deterministicnot exactonlinetoy code | 1 language |
Bounds
SLAM is an estimation problem, not a decision problem, so the usual bounds are on cost and memory, not on a complexity class.
- Dense correlations (theorem). In the linear Gaussian case, the EKF SLAM convergence theorem of Dissanayake et al. (2001) shows that the landmark estimates become fully correlated in the limit. So an exact Gaussian over the pose and the map needs numbers, and EKF SLAM pays per update.
- A floor on the map uncertainty (theorem). In the same setting, the uncertainty of each landmark never drops below the uncertainty of the robot when it first saw a landmark. The data measure only relative positions, so they cannot fix the map in the world better than the start pose does.
- Sparse structure. In the full form, the information matrix has one nonzero block per motion step and per reading, so it is sparse. The cost of solving it depends on the variable ordering and the fill-in; see elimination ordering.
- Nonconvexity. With rotations, full SLAM is a nonconvex least squares problem, and local methods can stop in a wrong local minimum.
Reductions
- To localization. If the map is known, SLAM becomes mobile robot localization.
- To mapping. If the path is known, SLAM becomes mapping with known poses, such as occupancy grid mapping. FastSLAM and other Rao-Blackwellized particle filters use exactly this: they sample paths and solve the mapping for each.
- To least squares. With Gaussian noise, the most likely path and map of full SLAM solve a nonlinear least squares problem.
- Online from full. The online posterior is the full posterior with the past poses integrated out.
Applications
Indoor service robots and warehouse robots build and use maps with SLAM. Self-driving cars use lidar and visual SLAM to build the maps in which they later localize. Augmented reality on phones and headsets tracks the camera with visual SLAM. Robots for mines, caves, underwater survey and planetary exploration use it where no satellite positioning works.
References
- Sebastian Thrun, Wolfram Burgard and Dieter Fox, Probabilistic Robotics, MIT Press, 2005, Chapter 10 (the SLAM problem, its online and full forms, and EKF SLAM), Chapter 11 (GraphSLAM), Chapter 12 (SEIF) and Chapter 13 (FastSLAM)
- Hugh Durrant-Whyte and Tim Bailey, Simultaneous localization and mapping, part I, IEEE Robotics and Automation Magazine 13(2), 2006, from page 99, the statement of the problem, its probabilistic form and the history
- Tim Bailey and Hugh Durrant-Whyte, Simultaneous localization and mapping (SLAM), part II, IEEE Robotics and Automation Magazine 13(3), 2006, pages 108 to 117, the computational cost, data association and the representation of the environment
- Randall C. Smith and Peter Cheeseman, On the representation and estimation of spatial uncertainty, International Journal of Robotics Research 5(4), 1986, the representation of uncertain spatial relations by a mean and a covariance
- M. W. M. Gamini Dissanayake, Paul Newman, Steven Clark, Hugh F. Durrant-Whyte and M. Csorba, A solution to the simultaneous localization and map building (SLAM) problem, IEEE Transactions on Robotics and Automation 17(3), 2001, pages 229 to 241, Section III (the convergence of the map in the linear Gaussian case)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag Z0D3R7 Edit this page History Report an error Markdown