By Kevin McAleer, 5 Minutes
Page last updated November 24, 2026

Before we pick up a screwdriver, let’s get the big picture. Knowing how the pieces fit together will make every later lesson make more sense, especially when something doesn’t work first time.
Disney Research built a small bipedal droid, often called BDX, that walks with a lot of character. Its walk was trained with reinforcement learning, and Disney published a paper describing how. Antoine Pirrone set out to make a small, affordable, open-source robot in the same spirit. That robot is the Open Duck Mini.
The version we’re building is v2. It stands about 42 cm tall and has:
The project is split across four GitHub repos. Each one does one job.
| Repo | What it does | When you use it |
|---|---|---|
| Open_Duck_Mini | The CAD, the BOM, the print guide and the assembly guide | Lessons 2 to 7 |
| Open_Duck_Mini_Runtime | The code on the Pi: motor setup, tests, calibration and the walking script | Lessons 4 and 8 to 11 |
| Open_Duck_reference_motion_generator | Makes example walking gaits for the policy to copy | Lesson 12 and 13 |
| Open_Duck_Playground | Trains the walking policy in simulation on a GPU | Lesson 13 |
For the runtime, always use the v2 branch. We’ll check it out when we clone it.
Here’s the journey the walking brain takes before it ever reaches your robot.
flowchart LR
A["Onshape CAD"] --> B["Simulation model (MJCF)"]
B --> C["Training in MuJoCo Playground"]
R["Reference motion generator"] --> C
C --> D["Policy exported as ONNX"]
D --> E["Runtime on the Raspberry Pi"]
E --> F["14 servos walk the duck"]
.onnx file, a portable format for neural networks.The good news: steps 1 to 4 are already done for you. The runtime repo ships with a pretrained policy, so you can get your duck walking without training anything. We’ll come back to steps 1 to 4 in the last section, once your duck is on its feet.
It helps to think of the walk as a loop:
If you’ve done the Reinforcement Learning for Beginners course, that’s the observe, act, repeat loop you already know. The difference is that the learning happened earlier, in simulation. On the Pi, the policy only acts.
docs folder and find print_guide.md and assembly_guide.md. Skim the assembly guide’s headings. Note that it’s marked as incomplete, so we’ll follow it alongside this course.v2 branch and look in the scripts folder. Spot find_soft_offsets.py and v2_rl_walk_mujoco.py. You’ll run both later in the course.Problem: The runtime files don’t match what this course describes.
Solution: Check you are on the v2 branch, not the default branch.
Why: The runtime has code for more than one version of the duck.
Problem: A link or file name here no longer exists upstream. Solution: Follow the repo’s README. It is kept up to date. Why: The project is active and files get moved and renamed.
Comments