Adding Obstacle Avoidance to Microduck
This workflow outlines the process of integrating local obstacle avoidance into the Microduck robot by training a dedicated navigation controller. This controller modifies operator velocity commands before they are processed by a fixed walking policy. The implementation utilizes NVIDIA Isaac Lab for extensive simulation and Newton for physics modeling and time-of-flight (ToF) sensing.
Simulation and Training Setup
To set up the training for the navigation controller, a Linux system equipped with a compatible NVIDIA GPU, Git with Git LFS, and the uv package manager is required. The walking policy, which maintains balance, is exported once and loaded during navigation training to keep its weights fixed. The training environment combines primitive geometries with SimReady OpenUSD assets, such as cardboard boxes, office bins, and bedside cabinets. Each episode reset samples and shuffles these assets to create varied obstacle courses. Goals are positioned ahead of the Microduck, and movement commands direct it towards these goals while the navigation policy adjusts commands to navigate around obstacles.
Training Across Parallel Environments
The training process employs Proximal Policy Optimization (PPO) across a substantial number of parallel environments. The recommended configuration utilizes 16,384 environments over 1,500 iterations. A smaller-scale run on NVIDIA DGX Spark was also reported, completing in approximately six hours with 4,096 environments for 3,000 PPO updates. The number of environments is adjustable to accommodate the available GPU memory, with fewer environments potentially requiring more training iterations to achieve similar policy performance.
Sensor Modeling and Deployment
Newton simulates a VL53L5CX-style ToF sensor, which operates on an 8×8 grid at 15 Hz, with a 45° field of view and a range of 0.12 to 4 meters. The simulation incorporates noise, delays, and missing measurements to replicate real-world conditions. The navigation actor processes ToF history and body state at a frequency of 50 Hz, while the fixed walking policy translates the adjusted velocity commands into joint actions.
Playback and Evaluation
During playback and evaluation, the system saves TorchScript and ONNX exports of the trained model. The tutorial provides deployment tools that enable the navigation ONNX model to run on a laptop, forwarding adjusted gamepad commands to the robot. A dry-run mode allows for streaming sensor data without executing movement commands, while supervised navigation can be initiated using a provided script. Practical limitations are outlined, including a default forward speed cap of 0.15 m/s, a close-obstacle braking mechanism, and a protocol for beginning tests in a clear area with supervised control.
Exploring Additional Microduck Tasks
The tutorial also highlights various other Microduck task families available in Isaac Lab, encouraging further experimentation with different locomotion skills and behaviors.
Original source: Hugging Face Blog