SLAM
512 words · 3 min read · 2 sources
SLAM is the technique a robot uses to build a map of an unfamiliar place — while figuring out where it is on that map. Both at the same time.
The concept concept: SLAM is the technique a robot uses to
Difficulty 3/5 · ClassroomSLAM is the technique a robot uses to build a map of an unfamiliar place — while figuring out where it is on that map. Both at the same time. The letters stand for **Simultaneous Localization And Mapping**.
💡 Think of it like…
Think of it like a household object that does the same job — the underlying idea is the same, just adapted for robots.
🇮🇳 In India
Indoor robot vacuums sold in India (Mi, Eufy, Roborock) all use vSLAM (visual SLAM) — a single camera plus IMU.
Why it matters
Without slam, many concept systems in robotics simply couldn't work.
🤯 A robot vacuum can build a complete 3D map of your home in 10 minutes — and remember it for the next year.
🎯 Quick challenge
What does SLAM stand for?
SLAM is the technique a robot uses to build a map of an unfamiliar place — while figuring out where it is on that map. Both at the same time. The letters stand for Simultaneous Localization And Mapping.
The blindfolded warehouse problem
Imagine being dropped into a dark warehouse, blindfolded, with nothing but a flashlight and a sketchpad. Every step you take, you mark on the pad what you can see in the flashlight beam. After a while, you have a real map of the warehouse — and you know exactly where you are on it. You did both at once. That's SLAM.
This is harder than it sounds, because if your steps are even slightly off (say you thought you walked exactly one metre but actually walked 1.05 metres), errors pile up. Walk for 100 metres and you might be 5 metres off. After a long enough walk, the map you've drawn no longer matches reality.
How robots do it
Real robots use sensors instead of flashlights. The three most common ones for SLAM are:
Lidar — a laser that spins around 360°, measuring distance to every wall and object up to 30+ metres away. Very accurate. Used by most self-driving cars, vacuum robots, and warehouse robots.
Cameras — using one or two cameras and tracking visual features (a corner of a doorway, a unique pattern on a wall). Cheaper, but harder to compute. Tesla famously uses cameras only.
Depth cameras — like Microsoft's Kinect or Intel's RealSense. They give you a 3D point cloud directly, which makes SLAM easier than with regular cameras.
The robot's computer takes thousands of sensor readings per second and runs an algorithm — usually a particle filter, a Kalman filter, or a graph-optimization technique — that keeps the map and the position consistent.
Loop closure: the magic step
The biggest moment in any SLAM run is loop closure — when the robot recognizes "wait, I've been here before." At that instant, all the small errors that built up over the journey can be corrected at once. The map snaps into shape. Modern SLAM systems are mostly about how well they detect and use loop closures.
Where SLAM matters
Anywhere a robot needs to move around a place it doesn't already have a perfect map of. Your Roomba runs SLAM every time it cleans. A Mars rover uses SLAM because there's no GPS on Mars. A surgical robot uses a kind of SLAM inside the body. Even some AR headsets (Apple Vision Pro, Meta Quest) run SLAM continuously, because they need to know exactly where you are in your room to overlay digital objects.
What's hard about it
SLAM works beautifully when the world stays still. As soon as people walk around, or chairs get moved, or lighting changes drastically — the robot can get confused. The current research frontier is dynamic SLAM (handling moving things) and lifelong SLAM (keeping a useful map of a place that changes over months and years).
Curious how a lidar actually measures distance with light? Read Lidar.
Ask R2 Co-pilot anything you didn't understand about SLAM. It'll explain it plainly.
Learn this in the Academy
🔥F-01: ROS2 Navigation Stack
Hands-on lesson · Forge track
Keep going
Atlas (Boston Dynamics)
Atlas is Boston Dynamics' bipedal humanoid robot — the most acrobatic robot ever built, and now an electric ma…
ConceptLidar
Lidar is a sensor that measures distance by firing invisible laser pulses and timing how long they take to bou…
RobotOptimus (Tesla)
Optimus is the humanoid robot Tesla is building to do general-purpose work — in their factories first, and eve…
Last updated · 2026-05-19
Community discussion
0 questions & insightsLoading discussion…
Spotted something off? Report an error →