Robot Foundations · Step 5 of 5 · Beginner
About 35–45 minutes. Recommended first: Build the Robot's World. You write short Python functions.
Where Am I?
Teach the robot to estimate where it is.
Your robot has a map. It has sensors. It can move. But there is one problem: the robot doesn't know exactly where it is on the map. Figure out how it can keep track of its position while moving.
- 01 The robot learned to move.
- 02 It learned to sense.
- 03 It used movement and sensing to reach a goal.
- 04 It built a map of its environment.
- 05 Now it needs to know where it is inside that map.
- Move
- Sense
- Map
- Localize
- Plan
- Control
Stages
Key ideas
Pose
(x, y, θ): where the robot is and which way it faces.
Odometry
Adding up wheel motion, step by step, to estimate the pose.
Drift
Slip and measurement errors are small, but they accumulate, so the estimate wanders away from the truth.
Predict and correct
Motion predicts how the estimate changes; an independent observation, such as a known landmark, corrects it.
true pose and path (solid) estimated pose and path (dashed) landmark
Pose telemetry
Robot controlsRuns in your browser
About Robot Foundations
Robot Foundations answers one question: how does a robot actually work? Every robot runs the same loop: it senses the world, works out where it is, plans what to do, and controls its motors, many times per second. The short lessons and five labs of this course build that loop piece by piece, with a simulated robot you drive and program yourself.
New to this? Read these short lessons first: Dead Reckoning: Position from Counting Wheel Turns, Why Drift Grows, Landmarks: Correcting with Something You Recognise, Predict, Then Correct.
Continue with the other Robot Foundations labs or explore the Control labs.
Get the next lab
Get notified when new robotics labs are released. One email per new lab, nothing else.