PREDICT spread — Neff — error —

The robot (white dot) is globally lost in a known floor-plan. Orange dots are pose guesses scattered across every room; faint rays are the robot's real lidar scan. Each step, every guess imagines its own scan and is kept or culled by how well it matches. Drive a bit and the cloud collapses onto the truth. The accent ring is the filter's estimate.

Particle Filter

What you are looking at

Orange dots
Guesses at the robot’s pose.
Walls
The known floor plan the guesses are matched against.
Faint rays
The distances measured by the robot’s lidar.

Try this

  1. Use Step once to follow prediction, weighting, and resampling in the phase badge.
  2. Press Kidnap to scatter the guesses and watch them converge again.

Key idea

A particle filter keeps several possible poses at once. Guesses that better explain the measurements are more likely to survive resampling.

Copy link