Sensors · Simulation game
LiDAR Explorer
Teleoperate a robot. Scan the environment. Understand the world through LiDAR.
Loading…
1 · Warehouse and point cloud
Every dot is one laser return from a ray cast against the warehouse geometry. The coloured axes at the sensor are the sensor frame: red x forward, green y left, blue z up. Points are stored in the world frame (x east, y up, z south).
2 · Range measurements
Top: the latest scan seen from above in the sensor frame (forward up). Bottom: measured range for each beam against its angle; a gap is a no-return (nothing within max range). In 3D mode the plot shows the beams of the channel nearest the horizontal.
| Beam | Range | Sensor frame x, y, z (m) | World x, y, z (m) | Intensity |
|---|
- Scan
- —
- Rays cast this scan
- —
- Returns (points)
- —
- No-returns
- —
- Nearest return
- —
- Accumulated points
- —
3 · Sensor playground
Changing a control reconfigures the simulated sensor at once: the beams cast, the points produced and the rates below all change. Noise is added to each measured range as a zero-mean Gaussian error.
What the settings produce
| Quantity | From the settings | Measured in this browser |
|---|---|---|
| Rays per scan | — | — |
| Points per scan (returns) | ≤ rays per scan | — |
| Measurements per second (rays/s) | — | — |
| Sensor update rate (scans/s) | — | — |
| Point data rate (estimate) | — | — |
| Ray-cast time per scan | n/a | — |
| Beams dropped (not cast) | 0 | — |
“From the settings” is arithmetic on your configuration. “Measured” is counted from the running simulation on this machine. The data rate is an estimate that assumes 16 bytes per point (x, y, z and intensity as 4-byte floats) with no compression or packet overhead; it is not the bandwidth of any real device. If the browser cannot cast all beams in time, the simulator drops beams and says so; a real sensor has its own limits.
- Finer angular resolution gives more beams per scan, so more points on each object and more computation.
- Higher scan frequency gives fresher scans and more measurements per second, but costs the same per scan, so the total work scales with it.
- Longer range lets distant objects appear, and makes the beams of a fixed angular step spread further apart: points on a far wall are sparser.
- More noise blurs surfaces: a flat wall becomes a thick band of points.
- More vertical channels cover more heights (floor, low obstacles, shelf tops) at the price of more beams.
4 · Point cloud processing
Real filters run on the points the sensor produced. Choose a source, switch the steps on, and select the Filtered view in panel 1 to see the result.
| Step | Points in | Points out | Time (ms) |
|---|---|---|---|
| No step enabled. | |||
Pass-through keeps points inside a coordinate window on one axis. Ground removal is a fixed height threshold in the world frame, not a fitted plane, so it also removes the base of low objects. Voxel downsampling replaces the points in each cubic cell by their centroid. Statistical outlier removal drops points whose mean distance to their k nearest neighbours is more than the mean plus the multiplier times the standard deviation. Times are measured on this machine; outlier removal is skipped above 40,000 points.
5 · Robot telemetry
- Position (x, z)
- —
- Yaw (CCW, 0 = north)
- —
- Linear velocity (wheels)
- —
- Ground speed
- —
- Angular velocity
- —
- Wheels (left / right)
- —
- Contact
- —
- Collisions
- 0
- Distance
- —
- Sim time
- —
- Render FPS
- —
- Sensor
- —
- Sim speed (1 = real time)
- —
Challenges
Each one is checked against what the sensor actually measured. The checker uses the simulator's ground truth for scoring only; the sensor never sees it.
How it works
The simulated sensor
For every beam the simulator casts a ray from the sensor into the physics world that the robot also collides with. The nearest surface along the ray gives the true range; the sensor then adds noise, rejects ranges below the blind zone or above the maximum, and builds the point from the measured range and the beam's known angle: p = r · (cos φ cos θ, cos φ sin θ, sin φ) in the sensor frame, then moves it to the world frame with the robot pose. No object position is ever looked up. A beam that hits nothing within range is a no-return, and is not drawn as a point.
A scan is a sweep: the beam column advances with time, so one scan takes 1 / frequency seconds and the robot can move while it is being collected. Fast driving therefore smears walls slightly, as with a real spinning sensor.
2D versus 3D LiDAR
| 2D LiDAR | 3D LiDAR | |
|---|---|---|
| Beams | One scan plane | Several vertical channels, each a plane (cone) |
| Output | Range per angle: a slice of the world | XYZ points: a 3D shape of the world |
| Sees | Only what crosses its height; a 0.35 m barrier is invisible to a plane at 0.5 m | Floor, low obstacles, tops of shelves, overhangs |
| Data per scan | Hundreds of points | Thousands to hundreds of thousands |
| Typical use | Indoor mapping and obstacle stops | Driving, drones, 3D mapping, ground and object segmentation |
What this simulation is, and is not
The 3D mode simulates a multi-channel mechanical (spinning) LiDAR: a rotating head carrying several lasers at fixed elevation angles, each producing one ring of points per revolution. Other technologies behave differently and are not what you see here:
- Solid-state LiDAR (MEMS mirror, optical phased array, flash) has no spinning head; its field of view is narrow, and its scan pattern is not a set of horizontal rings.
- Scanning-pattern sensors (for example rosette or non-repetitive patterns) cover the view irregularly over time.
- FMCW LiDAR measures per-point radial velocity as well as range; this simulator gives range only.
- A single-beam rangefinder measures one distance with no scan.
Simplifications: range noise is Gaussian and independent of surface and range; there are no multipath, glass, rain, dust or sunlight effects; beams are infinitely thin; intensity is simulated from a made-up surface reflectivity, the angle of incidence and a range fall-off, not a radiometric model. The numbers shown are measured from this simulation, not from any real sensor.
Frames
The sensor frame follows the robotics convention: x forward, y left, z up, origin at the sensor. The world frame is the 3D scene: x east, y up, z south. A point is converted with the robot's position and yaw at the moment of that beam. Accumulated points are kept in the world frame so scans from different poses line up on the same walls.
Keep learning
Practise the same ideas in Python: Understand & Visualize a Point Cloud, Process & Transform a Point Cloud, Build a LiDAR Obstacle Detection Pipeline. For vision instead of ranging, try Camera Vision Mission.