Probability for Robotics · Particle Filters and Monte Carlo Localization · M9-L1 · Advanced
Monte Carlo Localization
Bench log · Rover in the teaching lab
11:30. Rover is carried into a room with four beacons and switched on. It has no idea where it is. A first particle filter localised it on the bench, but in the room it collapses onto the wrong corner, and when a technician lifts it and puts it down at the other side, it never finds itself again.
You will find the settings that keep the filter healthy, write the weighting and the resampling that make it work, and add the one idea that rescues it from a kidnapping: a few random particles whenever the readings stop making sense.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and the course library robotprob (for example from robotprob import Rng, mean, gaussian_pdf). NumPy is not available in the browser. Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.