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
| Name | Last updated |
|---|---|
| bin | |
| goosectl | |
| tests | |
| pyproject.toml | |
| README.md |
Microgoose Onboard Runtime (goosectl)
goosectl is the 50 Hz (20.0 ms) Linux multi-daemon control stack running on the Microgoose Radxa Zero 3W (RK3566). It splits hardware bus I/O and neural policy execution into two Unix-domain-socket daemons modeled after robotctl:
goosectl.spine_daemon(200 Hz,/tmp/microgoose-spine.sock): Communicates with theSTM32G431CBT6Spine MCU overJ4(1 Mbpsor2 MbpsCOBS/CRC-16USART2link, or runs the built-in--simdampedXL330-M288-Tphysics plant), publishingRobotState(15 joint positions/velocities/loads mapped acrossJ1Left LegDXL IDs 1..5,J2Right LegDXL IDs 6..10, andJ3Neck/HeadDXL IDs 11..14plus BeakDXL ID 15, torso and head IMU attitude/gyro/projected_gravity,J58x8VL53L5CXground distances,PA0VBAT, andINA2260.30 mOhm5V_BUScurrent/watts) and dispatching 15-DoF joint targets.goosectl.policy_daemon(50 Hz,/tmp/microgoose-policy.sock): Assembles the61-dimensionalfloat32observation vector fromdesign/mechanical-interface.json, evaluates the61 -> 14ONNX walking policy viaonnxruntime(readingaction_scale_radandaction_clipfrom ONNX metadata when present), drives the independent 15th-DoF expressive beak state machine, and enforces attitude and electrical safety limits.
Safety Architecture
- Stand-only startup ramp: On daemon startup (and whenever
goosectl standruns), the controller executes a1.5 s5th-order minimum-jerk trajectory from the measured posture todefaultRad. Neural walking is blocked until the stand ramp completes and a validated61 -> 14ONNX model is loaded. - Zero-drop ONNX hot-load:
goosectl policy load <path.onnx>validates input/output shapes (61 -> 14) and runs a warmup pass before swapping the activeInferenceSessionunder lock without dropping XL330 servo torque. - Independent 15th-DoF beak (
J3,dxlId = 15):goosectl honkdriveshonk,chatter,open, andclosetrajectories within[0, 38]deg (defaultRad = 0.05 rad) without perturbing the 14 locomotion joints (indices 0..13). - Safety supervisor and auto-rollback: Trips immediately when
|roll| > 0.75 rad,|pitch| > 0.75 rad,VBAT < 6.10 V, or5V_BUScurrent exceeds4.20 Acontinuously for more than100 ms. Attitude trips execute a120 msdamped crouch rollback before latching torque-safeESTOP; electrical trips cut servo torque immediately.
CLI Reference
Every command prints OK: or ERROR: with an actionable Hint: line (stripping ANSI codes automatically when piped), or structured JSON when --json is passed.
# Start 200 Hz spine_daemon and 50 Hz policy_daemon against the simulated plant
./runtime/bin/goosectl daemon start --sim
# Start against the physical STM32G431CB Spine UART (J4) on Radxa Zero 3W
./runtime/bin/goosectl daemon start --port /dev/ttyS3 --baud 1000000
# Check daemon health and inspect live telemetry
./runtime/bin/goosectl health
./runtime/bin/goosectl status
./runtime/bin/goosectl stand
# Hot-load a 61 -> 14 ONNX policy and start walking at 0.15 m/s
./runtime/bin/goosectl policy load rl/checkpoints/policy.onnx
./runtime/bin/goosectl policy reset
./runtime/bin/goosectl walk --vx 0.15 --vy 0 --wz 0
# Trigger the 15th-DoF beak while walking and capture 10 live 50 Hz ticks
./runtime/bin/goosectl honk --style honk
./runtime/bin/goosectl monitor --ticks 10 --json
# Latch emergency stop and shut down daemons
./runtime/bin/goosectl estop
./runtime/bin/goosectl daemon stop
Automated HIL Verification
Run the end-to-end hardware-in-the-loop test suite (PTY UART COBS/CRC-16 loopback, J1/J2/J3 DXL ID verification, stand ramp, ONNX hot-load, walk, honk, injected 50-degree tilt auto-rollback, > 4.2 A overcurrent trip, < 6.1 V undervoltage trip, and estop), which writes runtime/tests/hil_verification_report.json:
python3 runtime/tests/test_goosectl_stack.py