NVIDIA has published a tutorial explaining how to equip the small Microduck robot, designed by Pollen Robotics, with obstacle avoidance, without modifying its already trained walking policy. The system relies on a distance sensor, a controller trained in simulation, and a joystick to choose the direction.
The principle is based on a separation between balance and navigation. The walking policy, which keeps the robot upright, remains fixed. A second policy, dedicated to navigation, receives measurements from a ToF (time-of-flight) sensor and adjusts the speed commands given to the joystick before passing them on to the walking policy. It operates at 50 Hz on the forward, lateral, and yaw commands.
A simulated sensor and obstacles
The modeled sensor is the VL53L5CX, which measures distances on an 8×8 point grid at 15 Hz. In the simulation, its field of view is 45° and its range is from 0.12 to 4 m. It is placed on the robot’s head, in a location close to that of the real robot. Real recordings were used to calibrate this placement and the ground readings. The training intentionally adds noise, delays, and missing measurements, including near the edges of the grid, to expose the policy to imperfect data.
The courses are built in NVIDIA Isaac Lab, an open-source framework for training policies in parallel GPU simulations. The obstacles combine simple shapes and objects in OpenUSD format from SimReady Central: a cardboard box, an office trash can, a bedside table, and cones. At each reset, the environment randomly selects a layout, changes the location and rotation of objects, and mixes clear corridors, barriers, and passages. The robot starts facing a goal, which the movement commands allow it to reach.
Training and evaluation
The navigation policy is trained using the PPO algorithm on 16,384 parallel environments for 1,500 iterations. This number can be reduced depending on GPU memory, but the tutorial notes that more iterations will then be needed to achieve comparable performance. According to the authors, a smaller training run was performed on an NVIDIA DGX Spark in about 6 hours, with 4,096 parallel environments and 3,000 PPO updates.
Once trained, the policy can be visualized in simulation, on obstacle layouts different from those used in training. It is then exported to ONNX format, a model exchange format, which must be kept with its associated data file.
Testing on a real Microduck
The deployment runs the navigation model on a laptop, which sends the adjusted commands to the walking policy embedded on the robot. The procedure begins with a 30-second dry run: the robot stands upright and motionless, sensor data is streamed, but no movement is sent. The proposed commands are observed when obstacles enter the sensor’s field of view.
Supervised navigation with the joystick then begins. The forward speed is capped by default at 0.15 m/s, with additional braking in the presence of a nearby obstacle and a stop when the input data is no longer up to date. The tutorial recommends starting in a clear area, checking the stop function, and then testing a course. It also advises evaluating the policy on scenes not present in training before any robot testing.
