Microduck Obstacle Avoidance: A Sim2Real Workflow with Isaac Lab and Newton NVIDIA published a tutorial on Hugging Face detailing a sim-to-real workflow that adds local obstacle avoidance to the Pollen Robotics Microduck quadruped while keeping its existing walking policy weights fixed. The workflow trains a separate avoidance controller in NVIDIA Isaac Lab using time-of-flight (ToF) depth sensing simulated by Newton's raycaster, then adjusts gamepad velocity commands before passing them to the walking policy. The tutorial covers building varied obstacle courses from SimReady OpenUSD assets, training, evaluation, export, and deployment to the physical robot. Updated • 1.75M • 1.77k https://huggingface.co/datasets/nvidia/simready-assets Microduck Obstacle Avoidance: A Sim2Real Workflow with Isaac Lab and Newton Enterprise + Article https://huggingface.co/blog TL;DR Add local obstacle avoidance to Microduck https://pollen-robotics.com/microduck/ while keeping its walking policy fixed. Build varied courses with reusable SimReady https://www.nvidia.com/en-us/glossary/simready/ assets, model ToF sensing with Newton’s raycaster, and train a controller in Isaac Lab https://developer.nvidia.com/isaac/lab to adjust gamepad velocity commands around obstacles. This tutorial covers simulation training, evaluation, export, and real-robot deployment. Introduction A walking policy can keep Microduck balanced, but it does not tell the robot how to steer around an obstacle in its path. In this workflow, we reuse the walking policy from our first Microduck tutorial https://huggingface.co/blog/nvidia/microduck-isaac-lab-sim-to-real and keep its weights fixed. This follow-up trains a separate avoidance controller using time-of-flight ToF sensing. You choose a direction with a gamepad; the controller adjusts the velocity command before passing it to the walking policy. NVIDIA Isaac Lab https://isaac-sim.github.io/IsaacLab/main/index.html is an open-source framework for training policies across thousands of GPU-parallel simulations and it provides the robot-learning environment. Newton https://github.com/newton-physics/newton simulates physics and the sensor’s depth measurements. We will cover the control architecture, train on varied obstacle layouts, evaluate the resulting policies, and prepare the interface for hardware testing. 1. Set Microduck obstacle avoidance in Isaac Lab For simulation and training, prepare: - A Linux system with a compatible NVIDIA GPU and driver. See the Isaac Lab installation guide https://isaac-sim.github.io/IsaacLab/main/source/setup/installation/index.html for platform requirements. - Git with Git LFS, and the uv package manager. For physical-robot testing, prepare: - A configured Microduck. Load the same backlash walking-policy export used by the navigation task. - A supported ToF sensor with its configuration recorded. - A paired gamepad and a level test area with obstacles. Quick install Install uv https://docs.astral.sh/uv/getting-started/installation/ if it is not already installed. Then clone the exp/microduck branch of the Isaac Lab repository and install its dependencies: git lfs install git clone --branch exp/microduck https://github.com/isaac-sim/IsaacLab.git cd IsaacLab uv sync --frozen Once setup is complete, list the available Microduck environments and presets: uv run isaaclab list envs --keyword MicroDuck --show presets Download the walking policy Download and export the upstream backlash walking checkpoint https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/6.2/Isaac/IsaacLab/PretrainedCheckpoints/rsl rl/IsaacContrib-Velocity-Rough-MicroDuck backlash newtonmjwarp none rsl rl.pt once before training. The obstacle avoidance task loads the exported walking policy automatically. 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 2. Build the obstacle course The environment combines simple primitives with OpenUSD https://www.nvidia.com/en-us/glossary/openusd/ assets available through SimReady Central https://huggingface.co/spaces/nvidia/simready-central on Hugging Face. We use a cardboard box https://huggingface.co/datasets/nvidia/simready-assets/tree/main/box cardboard a01 , office bin https://huggingface.co/datasets/nvidia/simready-assets/tree/main/trashCan office black a03 , bedside cabinet https://huggingface.co/datasets/nvidia/simready-assets/tree/main/table bedside b01 alongside cones. From the IsaacLab repository root, download the pinned box, bin and cabinet packages into assets/simready. uvx --from huggingface-hub hf download nvidia/simready-assets \ --repo-type dataset \ --revision 9d4556bfe80868c1d27a7a7ba1c2774e63e8cedd \ --include "box cardboard a01/ " \ --include "trashCan office black a03/ " \ --include "table bedside b01/ " \ --local-dir ./assets/simready At each episode reset, the environment code automatically samples a layout, shuffles the props, and varies their placement and rotation. Most courses scatter obstacles ahead of the duck, with a smaller mix of clear paths, barriers and passages. The code also mirrors layouts and mixes aligned and staggered rows. Goals start ahead of the duck. Movement commands guide it toward the goal while the policy adjusts them around obstacles. Figure 1. Varied obstacle-course layouts with SimReady assets and primitive geometry. 3. Understand how ToF sensing guides the walking policy The IsaacContrib-ObstacleAvoidance-Flat-MicroDuck task separates obstacle avoidance from balance. A navigation policy uses ToF sensing to adjust forward, lateral, and yaw commands at 50 Hz. The frozen walking policy then converts those commands into joint actions, allowing the robot to learn obstacle avoidance without retraining its walking behavior. During training, the navigation policy’s actor receives ToF history and body and controller state available on the real robot. Its critic has access to additional simulation state to guide learning, but is not needed for deployment. Rewards encourage progress toward the goal, safe arrivals, and movement around obstacles. Following a movement command earns credit only when the robot makes progress with sufficient clearance; risky approaches reduce that credit. Penalties discourage fast approaches, abrupt command changes, collisions, and falls. The obstacle-avoidance task lives in isaaclab tasks.contrib.microduck obstacle https://github.com/isaac-sim/IsaacLab/tree/exp/microduck/source/isaaclab tasks/isaaclab tasks/contrib/microduck obstacle . Its configuration is in obstacle avoidance env cfg.py https://github.com/isaac-sim/IsaacLab/blob/exp/microduck/source/isaaclab tasks/isaaclab tasks/contrib/microduck obstacle/obstacle avoidance env cfg.py , ToF sensing is in sensors.py https://github.com/isaac-sim/IsaacLab/blob/exp/microduck/source/isaaclab tasks/isaaclab tasks/contrib/microduck obstacle/sensors.py , and actions, commands, observations and rewards are organized under mdp/ https://github.com/isaac-sim/IsaacLab/tree/exp/microduck/source/isaaclab tasks/isaaclab tasks/contrib/microduck obstacle/mdp . Model the ToF sensor MicroDuckToFCamera extends Newton’s LegacyMultiMeshRayCasterCamera to model the VL53L5CX—a compact time-of-flight ToF sensor on the microduck that measures distance across an 8×8 grid at 15Hz. The simulated sensor has a 45° field of view and a 0.12–4 m range. It follows the duck’s head, with placement similar to the sensor on the real duck. Real recordings informed the sensor placement and floor readings in simulation. Training adds noise, delays and missing measurements—including near the grid’s edges—to expose the policy to imperfect data. The excerpt below shows selected sensor settings already included in the task configuration. You do not need to edit or run this code separately. Selected settings; mount and raycast targets omitted. head tof = MicroDuckToFCameraCfg prim path=MICRODUCK HEAD BODY PATH, update period=1.0 / 15.0, pattern cfg=patterns.PinholeCameraPatternCfg focal length=1.0, width=8, height=8, horizontal aperture= TOF APERTURE, vertical aperture= TOF APERTURE, , randomization=ToFRandomizationCfg mount pitch degrees= -10.0, 10.0 , mount height m= -0.02, 0.02 , floor validity midpoint offset m= 0.0, 0.13 , near floor edge impairment probability=0.5, , data types= "distance to image plane", "distance to camera" , max distance=TOF MAX RANGE, depth clipping behavior="zero", 4. Train the Microduck policy across parallel environments Train the navigation policy with PPO across 16,384 parallel environments for 1,500 training iterations. Its actor, critic, normalizers, and optimizer start fresh. The task configuration loads the fixed walking checkpoint, robot model, and obstacle assets. The 16,384 environments shown here are configurable, not a minimum requirement. Lower --num envs to fit your GPU’s available memory. With fewer environments collecting experience in parallel, reaching comparable policy performance may require more training iterations and longer training time. We also trained this policy on NVIDIA DGX Spark in approximately 6 hours using 4,096 parallel environments for 3,000 PPO updates, demonstrating a smaller-scale configuration for the same workflow. Run this command to train the policy: uv run isaaclab train \ --task IsaacContrib-ObstacleAvoidance-Flat-MicroDuck \ --rl library rsl rl \ --num envs 16384 \ --max iterations 1500 \ --seed 42 \ --device cuda:0 \ --visualizer none \ presets=backlash Figure 2. Parallel MicroDuck obstacle-avoidance simulation 5. Inspect behavior and export the policy to ONNX Playback uses the same props, primitives, frozen walker and sensor randomization as training, with a different seed for new obstacle arrangements. Navigation checkpoints are saved under logs/rsl rl/microduck obstacle avoidance tof flat backlash/