MicroDuck RL: From Simulation to the Real Robot — Part 12 of 14
This practice roadmap is designed for anyone who has just completed the environment setup. Work through it in order and your understanding of the project will change dramatically.
1. Explore the Model
Use the method from Part 08 to open the robot in the MuJoCo viewer. Push it over, observe how the joints move, and locate each body in robot_walk.xml. The goal is to turn “14 joints” from an abstract number into a physical model you can visualize.
2. Watch Training Progress
Open the 3D viewer on port 8080 and TensorBoard on port 6006. Use the checkpoint selector to compare model_250.pt with model_1000.pt. This is the clearest way to see learning in progress.
3. Read the Configuration
Read the comments in microduck_velocity_env_cfg.py; they were written for future contributors. Focus on the reward weights and the ENABLE_* switches. Read them alongside the task breakdown in Part 05 for a much faster understanding.
4. Study the Lessons Learned
Read the reward-design section of the repository’s AGENTS.md. Every item is a lesson from a real failure. Part 10 explains the six most important ones.
5. Change One Small Thing
This is the critical step. For example, change the foot_slip weight from −0.1 to −1.0, run a smoke test, and then run a short training job with 64 environments for a few hundred iterations. Compare the resulting gait and see for yourself why the configuration comments warn that a stronger penalty interferes with turning in place.
Change one variable, test it on a short budget, and compare the result with the comments. Complete this loop once and you have taken the first real step toward designing your own experiments.
6. Go Deeper
Read mdp.py, which contains more than 7,000 lines of custom reward, event, and observation functions. Choose one reward function and work through it alongside the corresponding equation. Once you can understand three or more of them, you are ready to design rewards for a new task.