MicroDuck RL: From Simulation to the Real Robot — 14-Part Course Guide

This is the course index for MicroDuck RL: From Simulation to the Real Robot, a 14-part hands-on series. Bookmark this page as your starting point.

This practical series starts from scratch. You will use reinforcement learning to train an 800 g biped robot duck to walk, stand, roll, and roller-skate in simulation, then take the trained policies all the way to the physical robot.

Everything is based on the open-source pollen-robotics/microduck_rl repository. We ran every step on a consumer GPU—an RTX 5080 with 16 GB of VRAM—and documented the problems we encountered, the parameters we tuned, and the performance we measured.

Who This Series Is For

  • Beginners who are interested in reinforcement learning for robotics but do not know where to start
  • Developers who want to complete an end-to-end Sim2Real workflow
  • Anyone interested in production-grade reward design, domain randomization, and high-fidelity actuator modeling

No robotics background is required; Part 02 introduces all the essential concepts. You should, however, be comfortable with the Linux command line and have some familiarity with Python.

Technology Stack

Layer Technology Role
Task definition microduck_rl Robot model, reward functions, domain randomization, and curriculum learning
Training framework mjlab Environment wrapper, PPO runner, logging, and viewers
Physics simulation MuJoCo Warp Simulates 4,096 robots in parallel on the GPU
Algorithm rsl_rl PPO implementation from the ETH Robotics Systems Lab
Actuator model BAM High-fidelity, voltage-level servo simulation from Rhoban

What You Will Build

  • A robot duck that learns to walk in simulation in one to two hours
  • A complete workflow for monitoring, resuming, and hot-switching policies
  • An ONNX policy ready for deployment on the physical robot, plus a simulation dress-rehearsal workflow for validating it first

Course Contents

Part Topic What It Covers
01 What This Project Is: Teaching a Robot Duck to Walk with Reinforcement Learning A five-minute overview of the robot, the task, and the technology stack
02 Core Concepts: MuJoCo, Reinforcement Learning, PPO, and Sim2Real The essential background in one place
03 Complete Environment Setup Guide From installing uv to passing the tests, including troubleshooting notes
04 Training: What Happens Behind a Single Command Parameters, workflow, measured performance, and resuming from checkpoints
05 Inside the Velocity Locomotion Task Observations, rewards, domain randomization, and curriculum learning
06 The Robot Model and the BAM Actuator Model Why actuator fidelity is critical to Sim2Real
07 Real-Time Visualization and Monitoring Watch learning happen with the 3D viewer and TensorBoard
08 MuJoCo Basics: Explore the Robot Without Training Learn MJCF by experimenting directly with the robot model
09 Deployment: From Simulation to the Physical Robot ONNX export, simulation rehearsal, and policy hot-switching on hardware
10 How to Read Training Logs Practical lessons learned from failed training runs
11 Command Reference Every command in the series on one page
12 A Beginner’s Practice Roadmap Six steps from exploring the model to designing your own experiments
13 Hands-On Timeline and Key File Guide Measured setup results and a map of the source tree
14 FAQ and Troubleshooting Answers to the problems you are most likely to encounter

Bookmark this page and use it as the entry point for the full course.

Have you trained an RL policy for another robot? What Sim2Real problems did you encounter? Share your experience in the replies.