Simultaneous Localization and Mapping

Simulation
Introduced by
Hugh Durrant-Whyte
Year
1988
Type
algorithm
Family
Mapping and Localization

What does it do?

Simultaneous Localization and Mapping (SLAM) is the problem of enabling a mobile robot to build a map of its environment while simultaneously estimating its own pose within that map, using noisy sensor measurements.

The 2006 tutorial by Durrant-Whyte and Bailey describes the essential SLAM methods and the issues that remained open at the time. SLAM lets a robot navigate unknown environments without a prior map or external positioning.

The intuition behind the method

The core difficulty of SLAM is circular: localizing requires a map, and mapping requires a known pose. SLAM handles this by maintaining a joint probabilistic estimate of the robot pose and the landmark positions. As the robot moves and observes landmarks with sensors such as cameras, lidar or radar, both sets of estimates are updated together. Early in a run, uncertainty is high for both; as landmarks are seen from several poses and loops are closed (revisiting known places), the estimates become more tightly constrained. Modern systems often use factor graphs and nonlinear optimisation to solve for all poses and landmarks together.

History

The 2006 tutorial by Durrant-Whyte and Bailey summarises the essential SLAM methods, key implementations and demonstrations. It describes the general method as well established, while noting that practical issues remained, especially in complex outdoor environments, and that computation, feature representation and data association were still active research topics. Early practical solutions used the extended Kalman filter (EKF-SLAM); particle-filter approaches such as FastSLAM handle nonlinear and non-Gaussian systems. Later work moved toward factor-graph and incremental optimisation formulations, and visual SLAM systems operate on camera data.

When to use it

Use SLAM when a robot must navigate an unknown environment without prior maps or GPS. It is essential for autonomous indoor navigation (factories, warehouses, hospitals), outdoor exploration (mining, agriculture), and underwater or aerial robots. SLAM is most practical for environments with rich, observable features (visual landmarks, geometric structure). Avoid SLAM in featureless environments (for example empty rooms or long plain walls with little geometric structure), in dynamic environments where landmarks move, or if computational resources are severely limited.

Limitations and considerations

  • Data association (matching observations to landmarks) is computationally hard and error-prone; mistakes compound and degrade mapping.
  • Loop closure detection can fail in repetitive environments (corridors with identical pillars) or with large appearance changes.
  • Computational cost grows with map size, so large landmark maps require efficient estimation and sufficient computing hardware.
  • Performance degrades in textureless, symmetric, or dynamic environments; prior mapping is more practical in such cases.
  • Initialization and sensor calibration are critical; poor calibration causes persistent drift.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Enables autonomous navigation without pre-built maps or external positioning infrastructure.
  • Produces metric maps useful for downstream planning and control tasks.
  • Naturally fuses multiple sensor types (visual, lidar, inertial) through a probabilistic framework.
  • Loop closure detection enables global map consistency; posterior uncertainty decreases as loops close.

Applications

  • Mobile robotics: indoor navigation in environments such as factories, warehouses and hospitals, where no prior map is available.
  • Autonomous vehicles: localization in GPS-denied environments and cooperative mapping across vehicles.
  • Aerial robotics: autonomous exploration and 3D mapping by drones, including inspection of hard-to-reach areas.
  • Underwater robotics: sonar-based mapping and survey of underwater environments.
  • Planetary exploration: localization and mapping by rovers in unknown terrain.

How it works

How it works

1

Define the state as the robot pose together with the positions of all landmarks. Set the initial pose at the origin of the reference frame with a small uncertainty, and start with an empty landmark map.

2

At each time step, acquire sensor data (camera image, lidar scan, sonar) and extract features such as corners, planes or range readings from it.

3

Use a motion model (for example odometry or an inertial sensor) to predict the robot pose at the next time step; the prediction also increases the pose uncertainty. Then associate the observed features with known landmarks (data association). Standard SLAM assumes a static environment, so landmarks are treated as fixed in the world frame.

4

Compare the predicted observations, obtained from an observation model that maps the state to expected sensor readings, with the measured ones. Correct the pose and landmark estimates and their covariance using a Bayesian estimator, such as an extended Kalman filter, a graph-based optimiser or a particle filter. Add unmatched features to the map as new landmarks.

Common pitfalls

  • Ignoring data association errors; a single wrong match propagates through the entire map, causing divergence.
  • Choosing sensor modalities or feature extractors without considering the environment; a camera fails indoors without good lighting.
  • Neglecting loop closure; without closing loops, drift in odometry accumulates and the map diverges.
  • Over-trusting short-term odometry; combine multiple sensors (inertial, visual, range) for robustness.
  • Judging a map by its appearance alone. Check loop-closure consistency, look for overconfident uncertainty after association errors, and compare the estimated trajectory against ground truth where it is available.

Frequently asked questions

What is data association and why is it critical to SLAM?

Data association is the problem of matching sensor observations (e.g., corner features from a camera) to known landmarks in the map. For each new observation, you must decide which landmark (if any) it corresponds to. Incorrect associations (assigning an observation to the wrong landmark) corrupt the map. Modern SLAM uses statistical hypothesis testing or machine learning for robust association, but ambiguity in repetitive environments remains a major challenge.

What is loop closure and how does it improve SLAM?

Loop closure occurs when the robot returns to a previously visited location. Detecting and constraining loop closure causes the accumulated odometry drift to be corrected. When a loop closes, the map uncertainty (covariance) decreases significantly, and past states can be updated retroactively. Loop closure is essential for global map consistency; without it, long missions accumulate unbounded drift.

What sensors are best for SLAM?

Different sensors excel in different environments: LiDAR provides accurate metric measurements and works day/night but is expensive; cameras are cheap and rich in information but sensitive to lighting; IMUs give accurate short-term motion estimates, but integrated errors accumulate into drift, so they are usually fused with other sensors; ultrasonic and sonar work in darkness or underwater. Multi-sensor fusion (lidar + camera + IMU) is most robust.

Can SLAM work in dynamic environments?

Standard SLAM assumes a static environment. In dynamic environments (moving people, vehicles, clutter), algorithms must separate dynamic objects from static landmarks. Methods include: (1) temporal filtering (ignore fast-moving features), (2) semantic segmentation (recognize and mask moving objects), (3) dynamic object tracking (track and predict motion of dynamic elements separately).

Related methods

Sources

  1. Durrant-Whyte, H., & Bailey, T. (2006). Simultaneous localization and mapping (SLAM): Part I. IEEE Robotics & Automation Magazine, 13(2), 99-110.

    Open DOI reference
  2. Thrun, S., Burgard, W., & Fox, D. (2005). Probabilistic Robotics. MIT Press.

    Open publication reference
  3. Dellaert, F., & Kaess, M. (2012). Square root SAM: Simultaneous localization and mapping via square root factor graphs. International Journal of Robotics Research, 25(12), 1181-1203.

    Open publication reference