SuperSuper

Slam Simulator 3D

LiDAR scan matching lab
Scan matching on Drift 0.00 m
True path Estimated path Landmarks LiDAR beams

What this simulator shows

Simultaneous Localization and Mapping (SLAM) is the problem of building a map of an unknown environment while simultaneously tracking where the robot is inside it. This page is a small, honest, browser-local simulator: a differential-drive robot moves through a 2D world, its wheel odometry accumulates error, and a LiDAR-style range sensor observes nearby landmarks. When scan matching is enabled, the estimated pose is pulled back toward the observed landmarks, which is the same core idea used by real SLAM systems such as Cartographer, GMapping and LIO-SAM.

How to use it

What the numbers mean

Drift is the Euclidean distance between the true pose and the estimated pose. Mean scan error is the average distance from each observed landmark to the nearest landmark in the estimated map, which is a rough proxy for map consistency. Landmarks seen counts unique landmarks that have entered sensor range at least once. None of these are benchmark results — they are the output of this page's own simplified model, and they will not match a real robot's performance.

Limitations

Why does drift sometimes go down even with scan matching off?

Odometry noise is random per step, so short runs can occasionally cancel out. Over a longer run, drift grows roughly with the square root of the number of steps when correction is off.

Can I use the exported JSON in another tool?

Yes. The download contains the true and estimated trajectories, landmark positions, per-step drift, and the settings used for the run, so you can plot or compare it in Python, R or a notebook.