Reinforcement learning
Some behavior is too hard to write by hand, so the robot learns it from trial and feedback.
Train a policy to choose actions from rewards. Start with a small simulated task and test what it actually learned.
You need: Python on a laptop
What you will build
A small policy evaluated against a reproducible baseline.
Intermediate·6 lessons·22 min of reading
About lesson formats and timing
Reading time excludes setup and exercises. Guided walkthroughs include steps and expected results; exercise briefs assume their prerequisites are already in place.
Your learning path
Each activity builds on the last. Start at the beginning, or jump back into an experiment.
- Lesson 01
Define observations, actions, and rewards
Build a small reinforcement-learning contract before training anything.
Exercise brief · Beginner
Try activity 1 - Lesson 02
Test a policy with imperfect sensors
Replace a perfect measurement with noise, bias, delay, and missing samples.
Exercise brief · Beginner
Try activity 2 - Lesson 03
Train a small policy and keep the experiment reproducible
Use a simple environment to practice training, saving, and evaluating a policy.
Guided walkthrough · Intermediate
Try activity 3 - Lesson 04
Learn from demonstrations without copying hidden state
Collect observation-action pairs and understand where behavior cloning fails.
Browser walkthrough · Intermediate
Try activity 4 - Lesson 05
Evaluate and replay a policy as a complete system
Check observations, normalization, timing, and action limits alongside the checkpoint.
Exercise brief · Intermediate
Try activity 5 - Lesson 06
Measure the simulation-to-hardware gap
Turn transfer assumptions into experiments on sensing, timing, dynamics, and control interfaces.
Exercise brief · Advanced
Try activity 6