FastSLAM: A Factored Solution to the Simultaneous Localization and Mapping Problem

Michael Montemerlo, Sebastian Thrun, Daphne Koller, Ben WegbreitAAAI 2002

Abstract

The ability to simultaneously localize a robot and accurately map its surroundings is considered by many to be a key prerequisite of truly autonomous robots. However, few approaches to this problem scale up to handle the very large number of landmarks present in real environments. Kalman filter-based algorithms, for example, require time quadratic in the number of landmarks to incorporate each sensor observation. This paper presents FastSLAM, an algorithm that recursively estimates the full posterior distribution over robot pose and landmark locations, yet scales logarithmically with the number of landmarks in the map. This algorithm is based on an exact factorization of the posterior into a product of conditional landmark distributions and a distribution over robot paths. The algorithm has been run successfully on as many as 50,000 landmarks, environments far beyond the reach of previous approaches. Experimental results demonstrate the advantages and limitations of the FastSLAM algorithm on both simulated and real-world data.

Introduction: The SLAM Bottleneck

The Simultaneous Localization and Mapping (SLAM) problem is often described as a "chicken and egg" challenge: a robot needs a map to localize itself, but it needs to know its location to build an accurate map. Historically, the Extended Kalman Filter (EKF) was the standard approach. However, EKF-SLAM suffers from a computational bottleneck: its complexity is quadratic ($O(K^2)$) relative to the number of landmarks $K$. This arises because every sensor observation requires updating the correlations between the observed landmark and all other landmarks in the map. Consequently, EKF-SLAM is typically limited to environments with only a few hundred features.

The FastSLAM Algorithm

FastSLAM addresses this scaling issue by exploiting the conditional independence inherent in the SLAM problem. The core mathematical insight is that if the robot's exact path were known, the positions of the landmarks would be independent of one another.

Factored Posterior

The algorithm factors the full SLAM posterior into a product of a distribution over robot paths and $K$ independent landmark distributions, each conditioned on the path:

$$p(s_{1:t}, \theta_{1:K} | z_{1:t}, u_{1:t}) = p(s_{1:t} | z_{1:t}, u_{1:t}) \prod_{k=1}^K p(\theta_k | s_{1:t}, z_{1:t}, u_{1:t})$$

The graphical model illustrating the factorization of the SLAM posterior. Knowing the robot path $s_{1:t}$ (middle row) renders the landmark positions $\theta$ (top/bottom) conditionally independent.

Rao-Blackwellized Particle Filter

To implement this factorization, FastSLAM uses a Rao-Blackwellized particle filter. Each particle represents a hypothesized robot path. Attached to each particle are $K$ independent Kalman filters—one for each landmark. This structure allows the algorithm to maintain multiple hypotheses about the robot's trajectory, making it significantly more robust to data association errors than the single-hypothesis EKF.

Efficient Implementation via Tree Structures

A naive implementation of a particle filter with $M$ particles and $K$ landmarks would still require $O(MK)$ time per update due to the need to copy landmark estimates. FastSLAM achieves logarithmic scaling ($O(M \log K)$) by storing landmark estimates in a balanced binary tree. When a particle is updated, only the path to the modified landmark in the tree needs to be updated, allowing particles to share the majority of their map data.

Experimental Evaluation

The authors validated FastSLAM using both large-scale simulations and physical robot experiments.

Large-Scale Simulation

To test the limits of the algorithm, simulations were conducted with up to 50,000 landmarks. FastSLAM successfully maintained accurate maps with as few as 100 particles, demonstrating that the number of parameters required was only a fraction (0.3%) of those needed for a conventional EKF.

Physical Robot Testbed

Experiments were also performed using a Pioneer robot equipped with a laser range finder in a "Mars Rover" style arena. The robot successfully mapped the environment, consisting of various rocks as landmarks, with high precision.

Experimental results: (a) The Pioneer robot in the rock arena. (b) The resulting map showing landmarks and the estimated path. (c) Comparison between the estimated path (solid) and the true path (dashed).

Key Insights and Results

  • Path-Based Estimation: By focusing on the robot's path rather than just its current pose, FastSLAM enables the mathematical factorization that drives its efficiency.
  • Robustness: The multi-hypothesis nature of the particle filter allows FastSLAM to recover from incorrect data associations that would cause an EKF to fail.
  • Accuracy: In physical tests, FastSLAM achieved an average residual error of 8.3 cm. Interestingly, increasing the density of landmarks improved localization accuracy, as more features provided tighter constraints on the path.

Conclusion

FastSLAM represents a major leap in robotic mapping, moving from quadratic to logarithmic scaling. By combining particle filters for path estimation with independent Kalman filters for landmark mapping, it enabled robots to navigate and map complex, large-scale environments that were previously computationally unreachable.

Summary updated

BibTeX
@inproceedings{montemerlo2002fastslam,
  author = {Michael Montemerlo and Sebastian Thrun and Daphne Koller and Ben Wegbreit},
  title = {{FastSLAM: A Factored Solution to the Simultaneous Localization and Mapping Problem}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2002},
  url = {https://openreview.net/forum?id=rJECGe-OWB},
}
Figure