---
title: "Microduck Obstacle Avoidance: A Sim2Real Workflow with Isaac Lab and Newton"
description: "Microduck’s walking policy keeps the robot balanced but does not steer around obstacles. This tutorial adds a separate avoidance controller trained with NVIDIA Isaac Lab and Newton, using a simulated time-of-flight sensor modeled after the VL53L5CX. The controller adjusts gamepad velocity commands before passing them to the frozen walking policy. Training runs PPO across 16,384 parallel environments for 1,500 iterations, with varied obstacle layouts built from SimReady assets. The resulting policy is exported to ONNX and deployed on a real Microduck via a laptop that streams adjusted commands to the robot."
---

# Microduck Obstacle Avoidance: A Sim2Real Workflow with Isaac Lab and Newton

[Hugging Face](https://yomu.fyi/company/hugging-face) · Oluwaseun Doherty, Oyindamola Omotuyi, Richard · Nov 24, 2026

**Type:** Tutorial

## Summary

Microduck’s walking policy keeps the robot balanced but does not steer around obstacles. This tutorial adds a separate avoidance controller trained with NVIDIA Isaac Lab and Newton, using a simulated time-of-flight sensor modeled after the VL53L5CX. The controller adjusts gamepad velocity commands before passing them to the frozen walking policy. Training runs PPO across 16,384 parallel environments for 1,500 iterations, with varied obstacle layouts built from SimReady assets. The resulting policy is exported to ONNX and deployed on a real Microduck via a laptop that streams adjusted commands to the robot.

## Context

Microduck’s existing walking policy keeps the robot balanced but does not steer around obstacles. This tutorial extends that work by adding a local obstacle-avoidance controller that uses time-of-flight sensing, trained in simulation with NVIDIA Isaac Lab and Newton, then deployed on the real robot.

## Approach / What changed

Train a separate navigation policy using PPO across 16,384 parallel Isaac Lab environments, with a simulated ToF sensor (modeled after the VL53L5CX) that provides an 8×8 depth grid at 15 Hz. The policy adjusts gamepad velocity commands before passing them to a frozen walking policy. Training runs for 1,500 iterations; the resulting policy is exported to ONNX and deployed via a laptop that sends adjusted commands to the real Microduck.

## Takeaways

- The obstacle-avoidance controller is trained separately from the walking policy, which remains frozen. This modular approach lets the robot learn to steer without retraining its balance behavior.
- The simulated ToF sensor (8×8 grid, 45° FOV, 0.12–4 m range) adds noise, delays, and missing measurements during training to mimic real-sensor imperfections and improve policy robustness.
- Training uses 16,384 parallel environments for 1,500 PPO iterations. A smaller configuration (4,096 environments, 3,000 updates) was also demonstrated on an NVIDIA DGX Spark, completing in about 6 hours.

## FAQ

### What inputs does the navigation policy use?

The navigation policy receives a history of ToF depth measurements (8×8 grid at 15 Hz), plus body and controller state available on the real robot. The critic uses additional simulation state during training but is not needed for deployment.

### How is sensor noise modeled in training?

The simulated ToF sensor adds noise, delays, missing measurements (especially near grid edges), and randomizes mount pitch and height. This exposes the policy to imperfect data similar to what the real sensor provides.

### What safety limits are applied during real-robot deployment?

Forward speed is capped at 0.15 m/s by default. The deployment also includes a close-obstacle brake and stale-input stopping. The operator holds the gamepad stick forward to request movement; releasing the stick stops the robot.

**Tags:** [Isaac Lab](https://yomu.fyi/topic/isaac-lab), [Microduck](https://yomu.fyi/topic/microduck), [Obstacle Avoidance](https://yomu.fyi/topic/obstacle-avoidance), [Sim2Real](https://yomu.fyi/topic/sim2real)

- Source: [Hugging Face](https://huggingface.co/blog/nvidia/microduck-obstacle-avoidance)
- Source URL: https://huggingface.co/blog/nvidia/microduck-obstacle-avoidance
- Ingested by Yomu: 2026-11-24T18:01:11.648Z

[Read original post](https://huggingface.co/blog/nvidia/microduck-obstacle-avoidance)
