Skip to main content
V2 "Kanzagroth" · 12 servos Dated experiment

DAgger Neural Walking, Completed Body Prototype STLs, and Unified Environment Bridge

Training a 5-command neural gait policy via DAgger in simulation, replaying through Body Control and the native P4 executor, releasing the 12 completed body prototype STLs, and unifying MetaHuman's Environment Bridge.

Dated workbench entry from . See where the robot stands today →

On this page (3 sections)
  1. DAgger imitation learning on the 650 g Blender assembly
  2. Body prototype complete: 12 final face, servo-cover, and power STLs
  3. Unifying the Environment Bridge and autonomy context training

With the physical V2 body prototype complete, this week’s focus shifted to training a command-responsive neural walking policy on the exported Blender geometry, benchmarking the transfer gap between direct physics simulation and the full Body Control + native P4 executor pipeline, packaging the final 12 exterior/power STL exports, and consolidating MetaHuman OS onto a single Environment Bridge.

October 30 simulation comparison: initial vs selected forward walking trials (16 seconds each) after 360,000 DAgger imitation updates.

DAgger imitation learning on the 650 g Blender assembly#

The simulation imports the 650 g Blender assembly, articulated 35 / 20 / 28 / 38 / 55 mm four-bar linkages, and boot collision meshes. Rather than predicting raw coupled servo angles (which caused 100/100 geometric linkage rejections in an early direct-joint experiment), the neural policy outputs standing-relative Cartesian foot offsets, which the native inverse-kinematics solver converts into valid twelve-joint targets.

Using DAgger (Dataset Aggregation) across 360,000 updates—rolling out the learner, labeling the states it actually visits with the teacher demonstration’s next action, and annealing teacher intervention to zero—produced our first unified neural gait policy (walk_nominal_v1) covering five commands: forward, two reverse speeds, left turn, and right turn.

Direct simulation vs Body Control + native P4 executor replay#

On November 1, we replayed the selected 360k checkpoint across 16-second trials comparing direct simulation against the full Body Control WebSocket + native P4 executor loop:

CommandTarget velocityDirect simulationBody Control + P4 executor
Forward+80.0 mm/s+27.82 mm/s+22.45 mm/s
Reverse−20.0 mm/s−22.20 mm/s−20.55 mm/s
Slower reverse−15.0 mm/s−18.28 mm/s−13.48 mm/s
Left turn+0.120 rad/s+0.128 rad/s+0.021 rad/s
Right turn−0.120 rad/s−0.148 rad/s−0.113 rad/s

Neither path fell or rejected a target, but running through the real command/executor transport exposed a sharp drop in left-turn authority (+0.128 → +0.021 rad/s) and a ~19% drop in forward speed (+27.82 → +22.45 mm/s). Tracing the adapter uncovered two concrete causes—fractional command rounding (truncating −18.75% to −19%) and checkpoint evaluation state carryover—both of which are now fixed as we run a 55,000-update connected DAgger continuation directly through Body Control.

Training experimentOutcomeEngineering takeaway
Higher-quality forward teacher (60 s trial)16.40 → 20.96 mm/sTeacher trajectory quality directly lifts learner speed
5-command DAgger aggregationForward, 2× reverse, left/right turnSingle policy handles full planar command set without falling
Warm-started SAC after imitationDegraded gait even at reduced LRUntrained SAC critic perturbs the imitation actor before value estimates converge
Early PPO velocity rewardHigh reward with near-zero travelRewarded standing still; replaced with coupled linear/yaw tracking + bounded swing credit

Download the 5-command comparison JSON and see the gait development guide for the broader locomotion roadmap.

Body prototype complete: 12 final face, servo-cover, and power STLs#

The 650 g mechanical body prototype is now wrapped up, with 12 updated October 27–29 STL exports covering the recessed display bezel, split face panels, lower MG90S servo bracket, and combined underside battery and power cradle:

Render of the twelve exported STL parts for Ainekio's face, servo covers, and underside battery/power packaging.
November 1 STL export set: LCD carrier, recessed bezel, front panel, chin halves, cheek fangs, side guards, MG90S lower housing, charger retainer, and combined battery floor/cradle.
SubassemblyExported STL files (Oct 27–29)Role in the 650 g prototype
Display & front endBlack LCD carrier, recessed bezel, compact front-end panelMount and frame the 1.9-inch ST7789 display
Exterior face & guardsLeft/right chin, cheek fangs, left/right side guardsMulti-part angular mask and shoulder protection
Servo housingMG90S lower housingRevised lower servo cover clearance
Power packagingRear charger retainer; combined battery floor + power-module cradlePackage the 2S LiPo, Mini560 buck converter, and HiLetgo USB-C charger beneath the chassis

Unifying the Environment Bridge and autonomy context training#

Diagram showing MetaHuman OS connecting through a single Environment Bridge to Body Control and the ESP32-P4.
Local, SSH, and Cloudflare body connections now share one Environment Bridge between MetaHuman OS and Body Control.

On the companion host, I folded the separate local and remote bridge paths into a single Environment Bridge that handles local bench links, SSH tunnels, and Cloudflare connections identically while handing Freestyle motion requests straight to Body Control. Fourth-wire servo fault and recovery notices now update the robot’s health state quietly instead of interrupting conversation with unprompted chatter, llama.cpp cancels in-flight token generation immediately when a turn is superseded, and the Intent training set (1,803 training / 485 evaluation / 46 regression examples) gained fresh autonomy scenarios spanning ongoing tasks, room activity, and internal desires.

DAgger Neural Walking, Completed Body Prototype STLs, and Unified Environment Bridge
https://ainek.io/posts/2026-11-01-neural-walking/
Author
Ainekio
Published at
2026-11-01
License
CC BY-NC-SA 4.0