by Drew Owens
Open-source 15-DoF XL330 biped goose robot with Spine molecule PCB, 3D-printed chassis, and Isaac Lab to MuJoCo sim-to-real RL stack
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-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.
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/): TheIsaacContrib-Velocity-Flat-MicroGoosetask ([1, 64] -> [1, 15]actor,79-float privileged critic,2xsagittal symmetry) steps16,384Microgoose robots in parallel on an RTX 4090 Laptop GPU at75,311environment steps/s[measured](31.46Msteps across80iterations in417.7 s[measured],88.37%full20.0 sepisode survival[simulated]). - Full-DR + Slope CUDA PPO Checkpoints (train_ppo_cuda.py, training_metrics.json): Across Stage 1 flat training (
2.016Msteps in443.49 s[measured]) and Stage 2/3 full domain-randomization and+-8.5 degslope fine-tuning (+1.024Msteps in391.44 s[measured]), cumulative GPU training totaled3,040,000steps in13m 55s(0.232GPU-hours[measured]), achieving100.0%survival (12/12deterministic rollouts,0.039 m/svelocity MAE[simulated]).
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 Hzrollout commanded at0.16 m/s, the policy covers1.55 mforward (+X) and1.80 mstraight-line planar distance (30.3 mmleft /33.2 mmright swing clearance[simulated]), absorbs a+0.18 m/slateral impulse att = 4.0 swithout falling (15.33 degmax tilt[simulated]), and scores87.06 / 100with32/32survival across the Policy Arena benchmark[simulated]. - Second-Engine Cross-Check (
MuJoCo 4.0.1vsMIT/TRI Drake 1.58.0) (sim2sim_cross_engine_report.json): Executing the identicalpolicy.onnxin Drake's FeatherstoneMultibodyPlantwith discrete SAP convex contact passes500/500steps across all five upright scenarios (stand,0.16 m/sforward walk at+1.55 mMuJoCo vs+1.83 mDrake, walk + yaw turn, 3-impulse push recovery up to0.26 m/s, and+8.0 deguphill ramp), matching mean forward speed within0.010 m/s[simulated].
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:
- Torque and 10-Minute Thermal Headroom (
PASS): Peak walking torque reaches0.366 N*min MuJoCo and0.467 N*min Drake[simulated], staying below the0.52 N*mXL330stall rating[datasheet]. Across a continuous10.0-minute (600 s) simulated walk at25 degCambient, the hottest stator coil (left_knee_pitch) stabilizes at39.25 degC[simulated], leaving35.75 degCmargin[calculated]below the75.0 degCthermal shutdown[datasheet]. - Stand-Up Bus Foldback Trap (
CAUGHT): Steady walking draws2.70 Amean (4.36 Apeak[simulated]), holding the4.0 ALMR33640DDDAR5V_BUSrail at4.89 Vmin inngspice-42[simulated]. However, an uncapped simultaneous 15-servo stand-up demands11.88 A[simulated], folding5V_BUSdown to2.47 V[simulated]and browning out compute.Rev Aenforces a<= 3.75 rad/sfirmware slew cap with activeINA226current guard;Rev Bisolates5V_SBConto a dedicated2 Abuck and splits the legs across dual6 Aservo bucks. - Prone-Fall Neck Stress & Beak Stop Stall (
CAUGHT): 3D FEA showed a108.4 Nstiff-servo prone beak strike drives upright-printed PLA S-neck root stress to102.8 MPa[calculated](SF_XY = 0.41x), prompting an IMU fall-detection limp mode (0.15xkp) and a split-flatPETG-CFneck with aTPU 95Abumper. Similarly, clampingbeak_pitchq_target >= 0.03 radeliminates a1.01 ARMS 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.