main
Name Last commit message Last updated
microgoose-training-walkthrough-poster.jpg Add narrated 2-minute walking policy training walkthrough sub-readme · Drew Owens
microgoose-training-walkthrough.chapters.json Add narrated 2-minute walking policy training walkthrough sub-readme · Drew Owens
microgoose-training-walkthrough.mp4 Add narrated 2-minute walking policy training walkthrough sub-readme · Drew Owens
microgoose-training-walkthrough.srt Add narrated 2-minute walking policy training walkthrough sub-readme · Drew Owens
microgoose-training-walkthrough.video.json Add narrated 2-minute walking policy training walkthrough sub-readme · Drew Owens
microgoose-training-walkthrough.vtt Add narrated 2-minute walking policy training walkthrough sub-readme · Drew Owens
pipeline-overview.png Add narrated 2-minute walking policy training walkthrough sub-readme · Drew Owens
README.md Refresh walk sim2sim video, poster, walk strip, and CAD-vs-sim alignment image from corrected CAD; update side-view IoU… · Drew Owens

How the Microgoose Walking Policy Is Trained

Back to Microgoose Overview | Related: Project Build and Validation Timeline | Physical Test Plan

Download directly: microgoose-training-walkthrough.mp4 (1920x1080, 2m 08s), WebVTT captions, SRT captions, and chapters JSON.

This two-minute walkthrough traces how Microgoose's 50 Hz bipedal walking controller goes from parametric mechanical CAD and Dynamixel XL330-M288-T actuator identification to GPU-parallel PPO training, self-contained policy.onnx export, dual-engine (MuJoCo 4.0.1 + MIT/TRI Drake 1.58.0) verification, and pre-fabrication electrical and thermal stress checks. Every number in the video and tables below is tagged [simulated], [measured], [calculated], or [datasheet] directly from the repository's verification reports.

Six-chapter visual overview of the Microgoose walking policy training walkthrough Six-stage training and validation pipeline rendered from the real Microgoose CAD meshes, actuator fits, GPU training logs, and dual-engine rollouts.

Video Chapters and Evidence Index

Time Chapter Key Quantities (with Provenance) Primary Repo Evidence
00:00 1. The Robot: CAD & 15 XL330 Servos 284.0 mm standing height, 557.5 g CAD mass (550.2 g walk MJCF) [calculated]; 15x XL330-M288-T (0.52 N*m stall [datasheet]); 0 OCCT solid collisions across 2,145 pairs [calculated]; 200 Hz STM32G431 bus sync + 50 Hz Radxa Zero 3W (0.160 ms ONNX inference [measured]) microgoose-hero.glb, build_microgoose_cad.py, kinematics_mass_props.json, interference-report.json
00:19 2. Servo ID: XL330 BAM Actuator Model Rhoban BAM pendulum sweep (50 g, 100 g, 180 g loads): 3.443e-4 kg*m^2 armature, 0.024 N*m stiction, 0.00673 N*m*s/rad viscous damping, 0.255 deg (4.45 mrad) gear backlash, 2.0 ms UART delay, 5.0 V rail sag, and 0.036 deg held-out 100 g validation RMSE [simulated] fit_xl330.py, xl330_bam_params.json, xl330_electromech.py, bam_xl330_fit.png
00:36 3. Sim Model: CAD to MJCF, URDF & USD 60 MuJoCo STL meshes, 44 Drake Wavefront OBJ meshes, and Newton USD articulation; all 351,613 sim mesh vertices sit within 0.09 um of the hero GLB with 1.0000 (3/4) and 1.0000 (side) silhouette IoU [measured] build_mjcf.py, microgoose.xml, microgoose.urdf, cad_vs_sim_alignment.png
00:53 4. GPU PPO Training, DR & Rewards DR across +-20% mass, 0.40-1.30 friction, 0.11-0.69 deg backlash, 0-8 ms latency, 6.0-8.4 V 2S battery sag, and +-8.5 deg slopes [simulated]; 16,384 parallel geese in Isaac Lab 3.0 + Newton at 75,311 steps/s [measured]; 3.04M full-DR CUDA PPO steps in 13m 55s (0.232 GPU-h [measured]), 100% eval survival [simulated] isaaclab_microgoose/, train_ppo_cuda.py, training_metrics.json, isaaclab_newton_short_validation.json
01:17 5. ONNX Export & Dual-Engine Sim-to-Sim 234.6 KB opset-17 policy.onnx (1.43e-6 max PyTorch diff [measured]); 50 Hz CPU MuJoCo walk covers 1.55 m forward (+X) and 1.80 m straight-line in 10.0 s with +0.18 m/s push recovery at 4.0 s (87.06 / 100 Policy Arena, 32/32 survival [simulated]); MIT/TRI Drake 1.58.0 passes all 5 upright scenarios within 0.010 m/s [simulated] export_onnx.py, policy.onnx, sim2sim_report.json, arena_scorecard.json, sim2sim_cross_engine_report.json
01:43 6. Hardware Checks & Physical Bring-Up Peak walking torque 0.366 N*m (MuJoCo) / 0.467 N*m (Drake) [simulated] vs 0.52 N*m stall [datasheet]; 39.25 degC 10-min knee winding [simulated] vs 75.0 degC shutdown [datasheet]; 2.70 A walk mean vs 11.88 A uncapped get-up collapsing 5V_BUS to 2.47 V [simulated] without a 3.75 rad/s slew cap mechanical_validation_report.json, electrical_validation_report.json, PHYSICAL_TEST_PLAN.md

Stage-by-Stage Technical Notes

1. CAD Assembly and 15-Servo Topology

Microgoose splits 15 Dynamixel XL330-M288-T actuators across two 5-DoF carbon-slate PETG-CF legs (hip_yaw, hip_roll, hip_pitch, knee_pitch, ankle_pitch on IDs 1..5 and 6..10), a 4-DoF counter-balancing S-neck and sensor cranium (neck_pitch, head_pitch, head_yaw, head_roll on IDs 11..14), and a 15th independent lower mandible (beak_pitch, ID 15). Inside the printed torso shell, an underslung 2S NP-F550 battery sled sits below the 70.0 x 70.0 mm microgoose-spine Molecule PCB (STM32G431CBT6 running 200 Hz 1 Mbps Sync Read/Write) and an upper Radxa Zero 3W mezzanine executing the 50 Hz ONNX walking policy (0.160 ms mean inference time [measured]).

2. XL330 BAM Actuator Identification

Small 288.4:1 spur-geared servos cannot be modeled as ideal torque sources. Using the Rhoban BAM multi-mass pendulum procedure (fit_xl330.py) across 50 g, 100 g, and 180 g loads on a 110 mm arm, the actuator model fits reflected rotor inertia (3.443e-4 kg*m^2 [simulated]), Coulomb stiction (0.024 N*m [simulated]), viscous damping (0.00673 N*m*s/rad [simulated]), gear backlash (0.255 deg [simulated]), 2.0 ms half-duplex UART transport lag, and coupled 5.0 V Spine bus droop (xl330_electromech.py), reaching 0.036 deg validation RMSE on the held-out 100 g multi-sine sweep [simulated]. The physical 3D-printed pendulum calibration rig ships on Bambu Plate 3 so bench hardware sweeps drop directly into the same fitter.

XL330-M288-T BAM pendulum identification and held-out 100 g validation error Fitted XL330-M288-T BAM model tracking 50 g and 180 g sweeps, held-out 100 g multi-sine validation (0.036 deg RMSE [simulated]), and 5.0 V Spine bus sag operating envelope.

3. CAD-Exact MJCF, URDF, and USD Generation

Rather than approximating links with boxes or cylinders, build_mjcf.py transforms the OpenCascade CAD solids at the reference joint pose (T_world(q_cad)^(-1)) into microgoose.xml (60 STL meshes for MuJoCo), microgoose.urdf (44 Wavefront OBJ+MTL meshes for MIT/TRI Drake), and microgoose_walk.usda (for Isaac Lab 3.0 and Newton). Every single one of the 351,579 simulation mesh vertices lies within 0.09 um of the published hero GLB [measured], achieving a 1.0000 silhouette IoU in the 3/4 view [measured]. Visual CAD meshes carry contype = conaffinity = 0, keeping contact physics fast and bit-exact on the dedicated sole colliders.

4. GPU-Parallel PPO Training, Domain Randomization, and Rewards

Training randomizes link mass (+-20%), ground friction (0.40 to 1.30), spur-gear backlash (0.11 to 0.69 deg), UART bus latency (0 to 8.0 ms), 2S battery open-circuit voltage (6.0 to 8.4 V with live LMR33640 droop), terrain slopes (-8.5 to +8.5 deg), IMU mount alignment (+-6.0 deg), and external planar torso pushes [simulated]. Rewards combine linear and angular velocity tracking, upright torso posture, and 30+ mm swing foot clearance against penalties on action rate, jerk, squared joint torque, foot slip, joint limits, and self-collision.

  • Native Isaac Lab 3.0 + Newton (MuJoCo-Warp) GPU Scale (rl/isaaclab_microgoose/): The IsaacContrib-Velocity-Flat-MicroGoose task ([1, 64] -> [1, 15] actor, 79-float privileged critic, 2x sagittal symmetry) steps 16,384 Microgoose robots in parallel on an RTX 4090 Laptop GPU at 75,311 environment steps/s [measured] (31.46M steps across 80 iterations in 417.7 s [measured], 88.37% full 20.0 s episode survival [simulated]).
  • Full-DR + Slope CUDA PPO Checkpoints (train_ppo_cuda.py, training_metrics.json): Across Stage 1 flat training (2.016M steps in 443.49 s [measured]) and Stage 2/3 full domain-randomization and +-8.5 deg slope fine-tuning (+1.024M steps in 391.44 s [measured]), cumulative GPU training totaled 3,040,000 steps in 13m 55s (0.232 GPU-hours [measured]), achieving 100.0% survival (12/12 deterministic rollouts, 0.039 m/s velocity MAE [simulated]).

RTX 4090 CUDA PPO training reward, survival, velocity error, and policy entropy Cumulative 3.04M-step CUDA PPO training curves (13m 55s measured GPU wall-clock) across full domain randomization and +-8.5 deg slopes.

5. ONNX Export, Push Recovery, and Dual-Engine Sim-to-Sim

export_onnx.py folds running observation normalization ((obs - mean) / std, clipped to [-5, +5]) into a single 234.6 KB opset-17 policy.onnx ([1, 61] -> [1, 14]), matching PyTorch within 1.43e-6 max absolute difference across 1,000 test inputs [measured].

  • Zero-Shot CPU MuJoCo Rollout & Policy Arena (sim2sim_report.json, arena_scorecard.json): Over a 10.0 s (500-step) 50 Hz rollout commanded at 0.16 m/s, the policy covers 1.55 m forward (+X) and 1.80 m straight-line planar distance (30.3 mm left / 33.2 mm right swing clearance [simulated]), absorbs a +0.18 m/s lateral impulse at t = 4.0 s without falling (15.33 deg max tilt [simulated]), and scores 87.06 / 100 with 32/32 survival across the Policy Arena benchmark [simulated].
  • Second-Engine Cross-Check (MuJoCo 4.0.1 vs MIT/TRI Drake 1.58.0) (sim2sim_cross_engine_report.json): Executing the identical policy.onnx in Drake's Featherstone MultibodyPlant with discrete SAP convex contact passes 500/500 steps across all five upright scenarios (stand, 0.16 m/s forward walk at +1.55 m MuJoCo vs +1.83 m Drake, walk + yaw turn, 3-impulse push recovery up to 0.26 m/s, and +8.0 deg uphill ramp), matching mean forward speed within 0.010 m/s [simulated].

Dual-engine MuJoCo 4.0.1 vs MIT/TRI Drake 1.58.0 cross-validation Cross-engine verification of policy.onnx across MuJoCo 4.0.1 and MIT/TRI Drake 1.58.0, including upright gaits, +8.0 deg ramp climbing, and stand-up current-limit diagnostics.

6. What Simulation Tells the Hardware (and What Still Needs a Real Robot)

Coupling dual-engine joint trajectories into scikit-fem 3D tetrahedral FEA (mechanical_validation_report.json), 400 kHz ngspice-42 switching transients (electrical_validation_report.json), and adom-fields electro-thermal copper solves verified steady-walk margins and caught three real design traps before ordering or printing hardware:

  1. Torque and 10-Minute Thermal Headroom (PASS): Peak walking torque reaches 0.366 N*m in MuJoCo and 0.467 N*m in Drake [simulated], staying below the 0.52 N*m XL330 stall rating [datasheet]. Across a continuous 10.0-minute (600 s) simulated walk at 25 degC ambient, the hottest stator coil (left_knee_pitch) stabilizes at 39.25 degC [simulated], leaving 35.75 degC margin [calculated] below the 75.0 degC thermal shutdown [datasheet].
  2. Stand-Up Bus Foldback Trap (CAUGHT): Steady walking draws 2.70 A mean (4.36 A peak [simulated]), holding the 4.0 A LMR33640DDDAR 5V_BUS rail at 4.89 V min in ngspice-42 [simulated]. However, an uncapped simultaneous 15-servo stand-up demands 11.88 A [simulated], folding 5V_BUS down to 2.47 V [simulated] and browning out compute. Rev A enforces a <= 3.75 rad/s firmware slew cap with active INA226 current guard; Rev B isolates 5V_SBC onto a dedicated 2 A buck and splits the legs across dual 6 A servo bucks.
  3. Prone-Fall Neck Stress & Beak Stop Stall (CAUGHT): 3D FEA showed a 108.4 N stiff-servo prone beak strike drives upright-printed PLA S-neck root stress to 102.8 MPa [calculated] (SF_XY = 0.41x), prompting an IMU fall-detection limp mode (0.15x kp) and a split-flat PETG-CF neck with a TPU 95A bumper. Similarly, clamping beak_pitch q_target >= 0.03 rad eliminates a 1.01 A RMS closed-stop stall [simulated].

What still requires physical hardware (PHYSICAL_TEST_PLAN.md): FDM interlayer bond strength and bearing press-fit creep, batch-to-batch XL330 breakaway stiction and H-bridge dead-time spread, 1 Mbps half-duplex USART3 reflections under real motor spikes, NP-F550 spring-contact bounce on foot impacts, VL53L5CX floor glare on glossy tile, and wire-bundle fatigue across thousands of strides.