# Train a Microduck

[Microduck](https://pollen-robotics.com/microduck/), a small two-legged robot
from Pollen Robotics, has a surprisingly difficult job.

> Waddle around while keeping its body upright.

You’ll train Microduck to balance in place, then teach it to walk at a
requested speed and turn on command. Watch how its feet move when you change
the rewards. Does each foot take a turn in front?

These locomotion fundamentals will help you read the full
[IsaacLab-MicroDuck demo code](https://github.com/isaac-sim/IsaacLab/tree/exp/microduck/source/isaaclab_tasks/isaaclab_tasks/contrib/microduck) and the [Microduck training guide](https://isaac-sim.github.io/IsaacLab/main/source/how-to/train_microduck.html)
or build a walking task of your own.

Steer the walking policy you’ll use in this module. Start by moving forward,
then turn. Watch how Microduck places its feet as you change direction.
The policy runs live in the browser on an empty, flat plane.

You can also steer Microduck with the original policy in the
[Isaac Lab interactive demo](https://isaac-sim.github.io/IsaacLab-Web-Demos/?demo=microduck).

Here’s an outline of what you’ll do in this module.

![Microduck workflow; the surrounding text explains the signals, feedback, and checks.](images/microduck-workflow.svg)

In [Isaac Lab Basics](https://docs.nvidia.com/learning/physical-ai/getting-started-with-isaac-lab/2026-11.3/isaac-lab-basics/index.md), you worked with environment
configurations, managers, and proximal policy optimization (PPO). Here, you’ll
assemble your own scene and tasks in the IsaacLabTutorial starter checkout. The [Robot Learning
Fundamentals](https://docs.nvidia.com/learning/physical-ai/getting-started-with-isaac-lab/2026-11.3/robot-learning-fundamentals/index.md) lessons provide optional
background on the concepts behind the exercises in this module.

#### Learning Objectives
- Set up IsaacLabTutorial and configure the Microduck asset and contact sensors.
- Trace joint actions through the servo model to measured motion.
- Define and train a balance task, then a walking task that follows commands.
- Explain how individual reward terms encourage behavior and can create tradeoffs.
- Compare policies using fixed commands, failure rates, and tracking measurements.

## Before You Begin

The next lesson will describe hardware and software requirements. You should be
comfortable running shell commands, editing Python classes, and reading
configuration fields. You’ll build each task from the lesson code and run a
short check before evaluating a policy. You can train your own policy (the
network that chooses actions) or use the supplied checkpoint (a saved, trained
policy). Full training runs, tests across push directions and strengths, and the
rough-terrain extension are optional.

Set aside 2–3 hours for the activities, plus time for installation and any
full training runs you choose to do. You can explore how trained policies
move using the videos and interactive replays.

## How to Work Through the Lessons

Before each experiment, write down what you expect the robot to do. Then
watch what happens. Did it finish the task? Did it move as requested? Watch its
feet too, especially if the robot follows a command but walks differently
than you expected.

The exercises use Isaac Lab 3 with Microduck and
[BAM](https://github.com/Rhoban/bam) motor support included in your project. BAM
(Better Actuator Models), from the Rhoban BAM project, uses fitted servo-motor
models to simulate friction and other motor effects.

---
