# Simultaneous Localization and Mapping (SLAM)

> A robot draws a map of a new place and tracks where it is on it, at once.

**Field:** Artificial Intelligence  
**Category:** Robotics & Vision  
**Also known as:** SLAM, Visual SLAM, Robot Mapping

## Think of it like

It is like walking in a dark house with a torch. You draw a map as you go, and mark where you are on it.

## Definition

SLAM is how a robot maps a new place and tracks where it is on that map. The two jobs depend on each other. To find itself it needs a map, and to draw the map it needs to know where it is. So it solves both at once, step by step, with cameras, lidar and how far its wheels have turned. Each time it sees a place it knows, it fixes small errors in both. Robot vacuums, drones and warehouse carts all use it.

## Example

Lucy's new robot vacuum spends its first run slowly mapping her flat. After that, it knows every room and goes home to charge by itself.

## Why it matters

A robot that cannot tell where it is cannot go anywhere on purpose. SLAM lets it work in places no one mapped for it.

## Common mistake

Expecting the map to stay right forever. Moved furniture and new walls confuse it, so the robot has to keep updating.

## Three principles

- **Map and place.** Both at once.
- **Step by step.** Small fixes.
- **Knows a place again.** Fixes errors.

## Related terms

- [Robot](https://learn.benibix.com/term/ai/robot)
- [Autonomous Vehicle](https://learn.benibix.com/term/ai/autonomous-vehicle)
- [Embodied AI](https://learn.benibix.com/term/ai/embodied-ai)
- [Computer Vision](https://learn.benibix.com/term/ai/computer-vision)
- [Light Detection and Ranging (LiDAR)](https://learn.benibix.com/term/ai/lidar)
- [Point Cloud](https://learn.benibix.com/term/ai/point-cloud)
- [Sensor Fusion](https://learn.benibix.com/term/ai/sensor-fusion)

## Told apart from

- [SLAM vs Path Planning](https://learn.benibix.com/compare/slam-vs-path-planning): People think SLAM finds the way to the goal, and it does not. SLAM answers two questions: what is around me, and where am I on that map. Path planning takes the map and answers a third: how do I get from here to there without hitting anything. A robot needs both, and SLAM runs first.

![A robot moves through a room. Behind it, a map grows step by step, and a dotted line shows the path it thinks it took.](https://learn.benibix.com/diagrams/rb-slam.svg)

---

Source: https://learn.benibix.com/term/ai/slam
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
