Skip to content
StackDecode
AI & ML Atlas
Artificial IntelligencealgorithmAnimated walkthrough

Simultaneous Localisation and Mapping

A robot builds a map of an unknown place while working out where it is inside it.

The idea

Each problem needs the other: a map is needed to find your position, and your position is needed to build a map. SLAM solves both together by tracking uncertainty over the robot pose and landmark positions (Kalman filters, particle filters, or pose-graph optimisation) and tightening it when landmarks are seen again.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Predict the new pose from movement commands (odometry).
  2. 2Observe landmarks with sensors.
  3. 3Match observations to known landmarks or add new ones.
  4. 4Update the pose and map estimates, reducing uncertainty.
  5. 5Repeat as the robot moves; correct drift on revisiting places.
1/5

Step by step

  1. 1Predict the new pose from movement commands (odometry).
  2. 2Observe landmarks with sensors.
  3. 3Match observations to known landmarks or add new ones.
  4. 4Update the pose and map estimates, reducing uncertainty.
  5. 5Repeat as the robot moves; correct drift on revisiting places.

Where it is used

Robot vacuums, warehouse robots, underwater and planetary exploration.

Watch out for

Data association errors can ruin the map; uncertainty grows without re-observation.

Related