Problemcore
Full SLAM
Also called smoothing SLAM.
SLAM that estimates the whole path of the robot together with the map from all the data.
Full SLAM is the form of the SLAM problem that asks for the whole path of the robot and the map together, , given all the data so far. It differs from online SLAM, which asks only for the current pose and the map, , and integrates out each past pose as it goes. Full SLAM keeps every pose, so its state grows with time, but a new reading, such as a loop closure, can correct the whole past path, and the problem keeps a sparse structure. The general problem, with both forms, is on the SLAM problem page. Full SLAM is a smoothing problem, and with Gaussian noise its most likely solution is a sparse nonlinear least squares problem.
In plain words
The robot keeps a record of every place it has been and every reading it has taken. Each wheel reading says how far it went between two places, and each sensor reading says where a landmark was seen from one place. These are like springs between the places and the landmarks. Full SLAM finds the positions that stretch all the springs as little as possible. When the robot comes back to a known place and sees a known landmark, the new spring pulls the whole chain into a better shape, and old places move too.
Definition
Input. All the controls and readings , the motion model , the measurement model , and a prior on the first pose, often .
Output. The posterior over the path and the map, or its most likely value, the maximum a posteriori estimate.
The factorization. By the Markov assumptions,
Each factor involves one pose and its predecessor, or one pose and the landmarks of one reading. This is a factor graph.
Least squares form. If the motion is with and a reading is with , the negative log of the posterior is, up to a constant,
plus the prior term, where . The maximum a posteriori path and map minimize this sum.
Variants
- Landmark SLAM and pose graph SLAM. With landmarks, the map is part of the variables. In a pose graph, the readings are first turned into relative pose constraints between poses, and the map is rebuilt from the optimized poses. See pose graph optimization.
- Batch and incremental. A batch method solves the whole problem again. An incremental method, such as iSAM or iSAM2, updates the solution as new data arrive.
- Visual full SLAM. With cameras, full SLAM over keyframe poses and 3D points is bundle adjustment.
- Robust forms. Wrong data associations, such as false loop closures, are handled with robust costs or with switchable constraints.
Examples
A loop closure on a line, by hand. A robot starts at . From there it reads a landmark at distance 3. It moves by 1 twice, by odometry, to and . From it reads at distance 1.4. All four readings have variance 1. The constraints are
They do not agree: going round the loop gives , but the direct reading gives . Least squares spreads the gap of 0.4 equally over the four constraints of the loop, since they have the same variance, so each is off by 0.1:
Check: the information matrix over is and the right side is ; the matrix times is .
The past pose moved from 1.0, its value by odometry, to 0.9, because of a reading taken later at . A filter for online SLAM would have dropped before that reading came, and would report the same and , since the model is linear, but never the corrected .
Known algorithms
- GraphSLAM. Builds the information form of the least squares problem, removes the landmarks by a Schur complement, and solves for the path.
- Square-root SAM. Solves the least squares problem by a sparse QR or Cholesky factorization.
- iSAM and iSAM2. Update the factorization incrementally as new data arrive.
- Pose graph optimization. Gauss-Newton or Levenberg-Marquardt on the poses only. SE-Sync solves a convex relaxation and certifies a global optimum when the relaxation is tight.
- Particle filters over paths. FastSLAM and grid-based RBPF SLAM represent the posterior over the full path by samples, and each sample carries its map.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| FastSLAM | O(N k log m) step | O(N m) extra | randomizednot exactonlinerecursive | 1 language |
| GraphSLAM | O(I (m p^2 + p^3 + k)) total | O(p + k) information_form | batchdeterministicnot exactlocal optimum | 1 language |
| Grid-based Rao-Blackwellized SLAM | O(N G) resampling | O(N G) extra | randomizednot exactonlinerecursive | 1 language |
| Incremental smoothing and mapping | O(g (p + m) + z + (p + m)^3 / k) amortized | O(z) factor | cost depends on orderingdeterministicnot exactincremental | 1 language |
| iSAM2 | O(v s^2) back_substitution | O((p + m) s) tree | cost depends on orderingdeterministicnot exactincremental | 1 language |
| Square root smoothing and mapping | O(k n^2) factor_worst | O(c) factor | batchcost depends on orderingdeterministicnot exact | 1 language |
Bounds
- Sparsity (theorem). The information matrix of the least squares problem has a nonzero block only for pairs of variables that share a factor: consecutive poses, and a pose with the landmarks it read. So it has nonzero blocks for poses and readings, not .
- Cost of a solve. The cost of a sparse factorization depends on the order of elimination and the fill-in it creates, not only on the number of variables. A good elimination ordering, such as nested dissection for a planar network of places, keeps the fill-in small. There is no general bound that is better than dense for every graph.
- Nonconvexity. With rotations in the poses, the least squares problem is nonconvex. Gauss-Newton or Levenberg-Marquardt can stop in a wrong local minimum from a bad start. SE-Sync can certify a global minimum when its relaxation is tight.
- Same answer as online SLAM in the linear Gaussian case (theorem). The marginal of the full Gaussian posterior on is the online posterior, as in the example above.
Reductions
- To nonlinear least squares. With Gaussian noise, the maximum a posteriori path and map minimize the sum above; see nonlinear least squares.
- To online SLAM. Integrate out the past poses .
- To pose graph optimization. Remove the landmarks, either by the Schur complement or by turning readings into relative pose constraints.
- To mapping. Given the path, building the map is mapping with known poses, as in occupancy grid mapping.
Applications
Most large SLAM systems solve full SLAM, or full SLAM over a set of keyframes, because it allows loop closures to correct the whole path: lidar mapping of buildings and cities, the maps used by self-driving cars, and visual SLAM systems such as ORB-SLAM. Offline survey mapping, where all the data are known in advance, is a direct batch use.
References
- Sebastian Thrun, Wolfram Burgard and Dieter Fox, Probabilistic Robotics, MIT Press, 2005, Chapter 10 (the full SLAM problem) and Chapter 11 (GraphSLAM, the full problem as sparse least squares)
- Hugh Durrant-Whyte and Tim Bailey, Simultaneous localization and mapping, part I, IEEE Robotics and Automation Magazine 13(2), 2006, from page 99, the probabilistic statement of SLAM
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 KEMWGG Edit this page History Report an error Markdown