FixTheRobot Explore Robotics / Perception / P1 / P1-L2

This lab works on phones, but writing code is much easier on a laptop.

Perception · Perception Foundations · P1-L2 · Beginner

Find the Misleading Measurements

A robot stands still and measures the distance to a wall. The log of readings looks nothing like a straight line: far-off points, stretches where the number never changes, gaps, and a whole log that is calm but wrong.

You will name each fault, write the checks that flag the untrustworthy readings, and produce one corrected distance together with a statement of how sure you are.

Your task

    Simulation
    solution.pyLoading Python…
    Ctrl+Enter runs
    What Python can I use?

    Plain Python with math (and slamkit for small matrix helpers: matmul, transpose, solve, inverse, identity). Images, point clouds and detections arrive as lists inside the dictionary D; an image is a list of rows, each row a list of pixels. There is no NumPy or OpenCV: you write the algorithm yourself, which is the point of the lab. Print with print().

    Hints

    What this lab teaches

    Stage 1 trains recognition: different faults have different shapes and need different remedies. Stage 2 asks you to write detectors and is graded on both missed faults and false alarms. Stage 3 combines rejection, bias calibration and an honest uncertainty. The simulator keeps the true distance and the fault positions private.

    Theory for this lab

    Perception Foundations labs

    1. P1-L1: Inspect and Interpret Sensor Observations
    2. P1-L2: Find the Misleading Measurements: this lab.
    3. P1-L3: Build a First Perception Pipeline

    Educational simplification: a simulated range sensor pointed at a fixed wall, with Gaussian noise of 3 cm and a small number of injected faults of four kinds. Real sensors produce more complicated failures that depend on surface, angle, temperature and time. All data in this lab are simulated.

    Get the next lab

    Get notified when new robotics labs are released. One email per new lab, nothing else.