Microduck, NVIDIA’s small walking robot, can already keep itself balanced with its walking policy—but that’s not enough to steer around obstacles in a real environment. This workflow tackles the problem by layering a new obstacle avoidance controller on top of the existing walking policy, using time-of-flight (ToF) sensing and a simulation-to-real (sim2real) training loop. The walking policy stays frozen; only the new controller is trained to nudge velocity commands away from obstacles.
NVIDIA Isaac Lab provides the simulation environment, running thousands of parallel physics instances on GPU. Newton simulates both the robot’s physics and its ToF depth sensor, letting you train and test in varied, realistic scenes before deploying to hardware. The process covers simulation, evaluation, and export for real-robot deployment.
Setting up the workflow
You’ll need a Linux machine with a supported NVIDIA GPU, Git (with LFS), the uv package manager, and a configured Microduck robot. The tutorial’s code lives on the exp/microduck branch of Isaac Lab. Installation is straightforward:
git lfs install
git clone --branch exp/microduck https://github.com/isaac-sim/IsaacLab.git
cd IsaacLab
uv sync --frozen
After setup, list Microduck environments and presets:
uv run isaaclab list_envs --keyword MicroDuck --show_presets
You’ll also need to download and export the pre-trained walking policy checkpoint before training obstacle avoidance:
uv run isaaclab play \
--task IsaacContrib-Velocity-Rough-MicroDuck \
--rl_library rsl_rl --checkpoint pretrained \
--num_envs 1 --visualizer none \
--video newton_gl --video_length 1 \
presets=backlash




