Sweep 0°

2D LiDAR Scan: RANSAC Wall Fit & Object Clustering

A mobile robot's single-plane LiDAR spins its one beam through a full 360° sweep dozens of times a second, producing a ring of unlabeled range returns with no idea which of them are the room's wall and which belong to an obstacle. This simulator runs the real answer to both questions live, top-down: a RANSAC line fit that discovers the wall by consensus among random point pairs, and a grid-based connected-component pass that clusters the leftover points into discrete objects — on a synthetic room of cars and pedestrians you can reshuffle and a sensor you can reconfigure.