Skip to content
Theme
OnDevice Tools

AIAI Tools & Apps

Microduck obstacle avoidance tutorial uses Isaac Lab and Newton

NVIDIA's Hugging Face Blog post lays out a simulation-to-real workflow for a small robot, keeping its walking controller fixed while a separate policy learns to steer around obstacles.

Small duck-shaped robot navigating a simulated obstacle course with cones and boxes

Key takeaways

  • NVIDIA's tutorial keeps Microduck's walking controller fixed and trains a separate avoidance controller.
  • Isaac Lab provides parallel simulation, while Newton models physics and depth sensing.
  • Training uses time-of-flight data, varied obstacle courses and rewards for safe progress.
  • The workflow includes export to ONNX and deployment tools for a real Microduck.
In this article
  1. What the workflow does
  2. Building varied obstacle courses
  3. Sensing, rewards and training scale
  4. Export, playback and real-robot testing
  5. Why it matters

What the workflow does

According to a Hugging Face Blog post by NVIDIA, published on 24 November 2026, Microduck obstacle avoidance is handled by a separate controller that changes movement commands before a fixed walking policy acts. The post describes a simulation-to-real workflow for a small robot. It aims to add local steering around objects without retraining the robot's balance behaviour.

The walking controller from an earlier Microduck tutorial is reused with its weights held constant. A new avoidance controller receives direction input from a gamepad and adjusts the velocity command. That adjusted command is then passed to the walking controller, which turns it into joint actions.

The setup notes list the required hardware and software. They ask for a Linux computer, a supported NVIDIA GPU and driver, version-control software with large-file support, a package manager named uv, a prepared Microduck, a compatible time-of-flight sensor, a gamepad and an obstacle area.

NVIDIA Isaac Lab supplies the robot-learning environment, and Newton handles physics and depth measurements. The post presents the method as a tutorial covering training, evaluation, export and hardware testing. It does not present independent benchmark results.

Building varied obstacle courses

The simulated courses mix simple shapes with reusable three-dimensional scene assets in OpenUSD format from SimReady Central, hosted on Hugging Face. The post names a cardboard box, an office bin, a bedside cabinet and cones. These props are downloaded into an assets folder before training.

At the start of each episode, the environment samples a layout and changes prop placement and rotation. Most courses place obstacles ahead of the robot, while some offer open routes, blocked sections or narrow gaps. The code can flip courses and combine straight or offset rows. Goals are placed ahead, and movement commands guide the robot toward them while the avoidance policy adjusts the route.

The task is named IsaacContrib-ObstacleAvoidance-Flat-MicroDuck. It separates obstacle avoidance from balance. The navigation policy changes forward, lateral and yaw commands at 50 Hz. The fixed walking controller then turns those commands into joint movements.

Sensing, rewards and training scale

Time-of-flight sensing is central to the controller. The simulated sensor is based on the VL53L5CX, a compact time-of-flight device on Microduck. It measures distance across an eight by eight grid at 15 Hz. The model has a 45° field of view and a range from 0.12 to four metres. It follows the robot's head, with placement similar to the real sensor.

The simulated sensor position and floor readings were shaped by real recordings. During training, the sensor data is disturbed with noise, lag and gaps, especially near grid edges. This is meant to make the policy deal with imperfect data.

The reward setup values goal progress, safe arrivals and detours around objects. Credit for following a movement command depends on progress with enough clearance. Risky approaches reduce that credit. The system penalises rapid approaches, sudden command shifts, contact and falls.

The post reports a PPO run using 16,384 parallel environments and 1,500 iterations. PPO is the policy-training method named in the post. The learning components begin from scratch. The task setup includes the frozen walking checkpoint, the robot model and the course assets. A smaller test on an NVIDIA DGX Spark used 4,096 environments and 3,000 PPO updates, taking about six hours.

Export, playback and real-robot testing

Illustration: robot, update, AI, pin and the labels Isaac Lab, Microduck, Newton

After training, playback keeps the same props, basic shapes, frozen walker and sensor randomisation. A different seed creates new obstacle arrangements. The post says playback can open the Newton viewer and capture 20 seconds of simulation. A headless option, meaning recording without a visible viewer, is also available.

Checkpoints are saved under a logs folder. The user selects a model file from the run and points the playback command to it. The exported folder receives TorchScript and ONNX models. The ONNX data file needs to stay with the model.

For hardware tests, a laptop runs the navigation model and forwards revised gamepad commands to the robot's walking controller. The walking policy from navigation training must match the one on the robot. The post points to a policy-loading guide from Pollen and a deployment README for the next steps.

Why it matters

The workflow shows a modular way to add obstacle avoidance to a walking robot. By keeping the walking policy fixed, developers can focus on steering and sensing. The use of reusable assets and randomised courses is intended to test a range of layouts.

The post also shows that the same workflow can run at different scales. The large configuration uses many parallel environments, while the smaller DGX Spark run uses fewer environments and more updates. Readers should treat the post as a tutorial, not as an independent performance claim. The post points to the Isaac Lab installation guide for platform requirements.

Sources

  1. Microduck Obstacle Avoidance: A Sim2Real Workflow with Isaac Lab and NewtonHugging Face Blog

Tags

Spotted a mistake? See our corrections policy. Read how News by OnDevice works in our editorial policy.