[MicroDuck RL 01] What This Project Is: Teaching a Robot Duck to Walk with Reinforcement Learning

MicroDuck RL: From Simulation to the Real Robot — Part 01 of 14

In one sentence: This project uses reinforcement learning (RL) to teach a small biped robot duck to walk, stand, roll, and roller-skate in simulation, then exports the trained policies for direct deployment on the physical robot.

Item Details
Robot MicroDuck by Pollen Robotics: a roughly 800 g, 25 cm-tall biped with 14 Dynamixel XL330 servos
Simulator MuJoCo, running through the GPU-parallel MuJoCo Warp implementation
Training stack mjlab, an RL framework for MuJoCo Warp, plus rsl_rl for PPO
Control rate 50 Hz: a 5 ms physics timestep with a decimation factor of 4
Output ONNX policy networks loaded by the physical robot at runtime, with hot switching between multiple policies

The repository includes more than 13 tasks: walking, getting up after a fall, sitting and standing, picking up objects, kicking a ball, forward rolls, roller-skating, turning in place, and more. This series focuses on the main task, Mjlab-Velocity-Flat-MicroDuck, which trains flat-ground velocity-tracking locomotion.

What Makes This Repository Valuable

It provides a complete, hard-won recipe for sim-to-real deployment:

  • High-fidelity actuator modeling. The servos are not treated as ideal motors; their behavior is modeled down to the voltage-control law. We cover this in Part 06.
  • Domain randomization. Physical parameters are randomized extensively so that the policy learns to handle real-world uncertainty. We examine the full randomization setup in Part 05.
  • Backlash simulation. Even mechanical play in the gears is represented.
  • Reward-design lessons learned the hard way. The repository’s AGENTS.md records what went wrong and what the team learned from real experiments. Part 10 covers the highlights.

What You Will Learn

  1. A complete robot-RL training workflow that runs on a consumer GPU with 16 GB of VRAM and can teach the duck to walk in one to two hours
  2. How to read an industrial-grade task configuration, including its observation space, reward functions, domain randomization, and curriculum learning
  3. The complete path from simulation to ONNX export, CPU-based dress rehearsal, and deployment on the physical robot

Part 02 introduces the essential background: what MuJoCo is, how the reinforcement-learning loop works, and why Sim2Real relies on randomization rather than perfectly modeling reality.