Project Setup#
Set up the IsaacLabTutorial project you’ll use to train Microduck. Over the next few lessons, you’ll build the scene and controls, then add rewards and run your first training exercise.
You’ll simulate Microduck using the Isaac Lab 3.0 release branch. In the next lesson, you’ll set up the robot’s motor model and see how a joint moves when you send it a command.
Choose Where to Run#
The Microduck BAM servo model requires Newton MJWarp, a physics solver, on an NVIDIA GPU.
Use the GPU workstation described in
Development Workflow.
These commands use Ubuntu, Python 3.12, Git with Git LFS, and uv.
In your terminal, check that the GPU and tools are available.
nvidia-smi
uv --version
git --version
Check Git LFS#
IsaacLabTutorial uses Git Large File Storage (Git LFS) for its assets. Check whether it is installed before cloning the project:
git lfs version
If the command prints a version, continue with the project setup. If Git
reports that lfs is not a Git command, follow the official
Git LFS installation instructions.
Set Up IsaacLabTutorial#
The Isaac Lab Tutorial repository
provides a starter scaffold and a completed Microduck reference. The commands
below pin both revisions. Make your lesson edits on the local
learning-path-microduck branch.
Clone the repository in your terminal:
git clone --no-checkout https://github.com/isaac-sim/IsaacLabTutorial.git cd IsaacLabTutorial git lfs install --local
Create your working branch at the pinned scaffold commit and tag the completed reference locally:
git switch --create learning-path-microduck 3d4f3d7836245caa49c5906bf79f40554504e604 git tag microduck-reference 917689a8876cfc154ab0216d5f378622ab9d1322
Run
git diff microduck-reference -- src/to compare your code with the completed reference as you work through the lessons.Download the assets, sync the dependencies, and list the available tasks:
git lfs pull uv sync --locked uv run isaaclab list_envs
You’ll register the Microduck tasks as you build them.
Work from the repository root when you run commands. In the lessons,
microduck/ and mdp/ refer to the directories shown here:
IsaacLabTutorial/
├── checkpoints/
│ └── microduck/ # Pretrained Microduck policies
├── scripts/ # Agents and evaluation tools
├── tests/ # Configuration checks
└── src/isaaclab_tutorial/tasks/velocity/
├── config/microduck/ # Robot, scene, controls, and task configurations
└── mdp/ # Actions, commands, observations, and rewards
How We’ll Add Code#
Work from the IsaacLabTutorial repository root.
Build incrementally. Each lesson names the file to create or append to. Keep the code from earlier lessons as the project grows: you’ll build the robot configuration, scene, controls, balance task, and walking task in that order.
Configure the robot. Lesson 2 uses the supplied BAM motor model to connect each joint-position action to its servo. You’ll check the joint order and motor settings before assembling the scene.
Run the measurement scripts. Lesson 4 uses
scripts/head_agent.pyfrom your checkout to measure head motion. In the balance lesson, you’ll run the suppliedscripts/evaluate.pyto measure a policy’s performance.Train or load checkpoints. Use your training run for playback and evaluation. The pretrained tabs provide an alternative when you want to reproduce a recorded comparison or skip a long training run. Git LFS downloads the pretrained policies into
checkpoints/microduck/during setup. Load each one with the task specified in the lesson.Record your runs. Record your commands, random seed (the starting value for the random number generator), framework version, number of environments, checkpoint, and configuration changes. Installation and the first compilation of GPU kernels can make the initial launch slower than later launches.
Check Your Understanding#
What exists in the shared tutorial project, and what will you add next?
Compare Your Answer
The project already has two SO-101 tasks, a directory for your Microduck configuration, and a lockfile that pins the dependencies. You’ll start by setting up Microduck, its scene, and its controls. Then you’ll teach it to balance and walk. Isaac Lab runs the simulation and manages the environment, and the RSL-RL library trains the policy with PPO.