Problemcore
Online SLAM
Also called filtering SLAM.
SLAM that estimates only the current pose and the map, marginalizing out past poses as it goes.
Online SLAM is the form of the SLAM problem that asks only for the current pose and the map, , and updates this estimate at every step as new data arrive. It differs from full SLAM, which asks for the whole path, : online SLAM integrates out each past pose as soon as the robot has moved on, so its state does not grow with time, but it cannot correct the past path later. The general problem, with both forms, is on the SLAM problem page. Online SLAM is a filtering problem, and the classical solutions are filters such as EKF SLAM.
In plain words
The robot keeps a single best guess of where it is now and where everything on the map is, with a measure of how sure it is. After each move and each reading, it updates this guess and forgets the details of where it was before. This keeps the memory small and steady, and it gives an answer at once, which a moving robot needs. The price is that an old mistake cannot be fixed by going back over the old data, because that data is no longer kept. Everything the past taught is folded into the present guess.
Definition
Input. At each step , a control and a reading , a motion model and a measurement model . The map does not change.
Output. At each step, the posterior over the current pose and the map, or an approximation of it, such as a mean and a covariance.
The recursion. Online SLAM is the Bayes filter on the state , in which only the pose moves:
The integral removes the previous pose. Step by step, the online posterior at time is thus the full posterior with all the past poses integrated out.
Variants
- With known or unknown correspondences. Without them, the filter must also solve data association at each step.
- Gaussian and particle representations. A Gaussian over in EKF SLAM; its inverse, the information form, in the extended information filter; particles in FastSLAM, which samples whole paths but keeps only what the current step needs.
- Fixed-lag smoothing. A middle way keeps the last few poses and integrates out only the older ones. This is fixed-lag smoothing.
Examples
Why the past poses make the map dense, by hand. A robot on a line starts at , moves to and then to , with odometry of variance 1 each time. From it reads landmark , and from landmark , also with variance 1. In the information form, which is the inverse covariance, each motion step and each reading adds a term that links only the variables it involves. Over the information matrix is
The entry of is 3: one for the step from , one for the step to , one for the reading of . The entry of is 0: the two landmarks are linked only through the path. This is the matrix of full SLAM.
Online SLAM integrates out . For a Gaussian this is the Schur complement: subtract , where are the links of to and . Over the result is
A new link has appeared between and , which no reading made. Each pose that is integrated out links all its neighbours to each other. Over many steps, every landmark seen from the path gets linked to every other, and the online information matrix, like the covariance, becomes dense. The full SLAM matrix stays sparse because it keeps the poses.
Known algorithms
- EKF SLAM. One Gaussian over the pose and landmarks, time per update and memory.
- Extended information filter. The same Gaussian in information form. A reading is cheap to add, but the motion step and the recovery of the mean are costly.
- Sparse extended information filter. It removes weak links of the information matrix to keep it sparse. This sparsification is an approximation, and it makes the estimate overconfident.
- MonoSLAM. EKF SLAM with one camera as the only sensor.
- Particle filters. FastSLAM and grid-based RBPF SLAM run online, step by step, but each particle carries a path, so they estimate the full posterior over paths and use it online.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| EKF SLAM | O(k m) association | O(m^2) extra | deterministicnot exactonlinerecursive | 1 language |
| Extended information filter | O(n^3) mean · prediction | O(n^2) extra | deterministicnot exactonlinerecursive | 1 language |
| MonoSLAM | O(k m^2) frame | O(m^2) extra | deterministicnot exactonlinerecursive | 1 language |
| Sparse extended information filter | O(k^3) mean · motion · sparsification | O(n^2) extra | deterministicnot exactonlinerecursive | 1 language |
Bounds
- Dense state (theorem). In the linear Gaussian case, the landmarks become fully correlated in the limit, by the EKF SLAM convergence theorem. An exact Gaussian online posterior over landmarks then needs numbers, and any exact update that touches all correlations costs . The example above shows the same effect in the information form: integrating out the poses makes it dense.
- Same answer as full SLAM in the linear Gaussian case (theorem). The marginal of a Gaussian keeps the mean and the covariance of the remaining variables. So when the models are linear and the noise is Gaussian, the online estimate of equals that part of the full SLAM solution. With nonlinear models the two differ: a filter linearizes each step once and cannot go back, while full SLAM can linearize again at better estimates.
Reductions
- From full SLAM. Integrate out from the full posterior.
- To a Bayes filter. Online SLAM is a Bayes filter whose state is the pose and the static map.
- Localization. If the map is known, the online posterior is the localization posterior , see mobile robot localization.
Applications
Online SLAM is the form that a robot needs when it must act on its estimate at once and has a fixed budget of memory and time per step: small indoor robots, drones that track their position against a small map, and camera tracking for augmented reality, as in MonoSLAM. Most large systems today solve full SLAM or a fixed-lag form instead, and keep an online estimate only for the newest pose.
References
- Sebastian Thrun, Wolfram Burgard and Dieter Fox, Probabilistic Robotics, MIT Press, 2005, Chapter 10 (the online SLAM problem and EKF SLAM) and Chapter 12 (the sparse extended information filter and the effect of marginalizing past poses)
- 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 form of SLAM as a recursive estimate of the current pose and the map
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 9TEHQS Edit this page History Report an error Markdown