Duck walk
Night of 6 to 7 Nov. A walking policy trained in simulation for our duck: Waveshare ST3215-HS 12 V servos, about 2.5 kg, the heavier Microduck head, and no foot switches (they are not fitted). Trained on one rented RTX 4090, 150 M steps in 20 minutes, starting from the open-source Open Duck Mini v2 training code.
1. The trained walk (version A)
Forward, turn, forward while turning, side-step, backward, stop. The keys shown are the ones the real-duck runtime uses.
2. How it learned
Same duck model, same "walk forward" command, five points in training. The untrained policy outputs almost nothing, so it holds the standing pose; by 10 M steps it shuffles, by 43 M it walks.
3. Results in the simulator
| Policy | Needs on the duck | Forward in 8 s | Falls |
|---|---|---|---|
| Stock open-source policy on our duck model | IMU + foot switches | 82 cm | no |
| run1, trained for our duck | IMU + foot switches | 107 cm | no |
| A: no foot switches (main) | servos + BNO055 IMU | 95 cm | no |
| B: blind (backup) | servos only | 74 cm, veers left about 40 cm | no |
4. Stress test of version A (10 s forward walk)
| Change from what it trained on | Result |
|---|---|
| Weight −20 % to +35 % | walks, 112–137 cm |
| Servos 50 % softer to 2× stiffer | walks, 103–123 cm |
| Servo damping ×0.5 to ×2 | walks, 90–100 cm |
| Extra control delay 20–40 ms | walks |
| Extra control delay 60 ms | falls after 6.7 s |
| Side shove 0.3 m/s every 2 s | walks |
| Side shove 0.6 m/s every 2 s | falls |
The datasheet estimates (weight, servo numbers) matter little. Delay is the real risk: the Radxa's loop must read the 14 servos and the IMU without adding more than about 40 ms. The policy itself takes 0.7 ms on the Radxa.
5. Status on the real duck
- The runtime is installed on the Radxa. The same code walks the simulated duck 96 cm.
- Waiting for: assembly, the BNO055 on header pins 27/28 (I2C4), the servo adapter on the Radxa's USB, and the joint sign test.
- Then, one step at a time: read-only check, IMU axis calibration, dry run, stand (hanging), walk (hanging), floor on a tether.
Everything above is simulation. Nothing has run on the real duck yet.