Ted (Gooseby)

A small open-source 3D-printed biped with 10 servos, a MuJoCo twin and an RL walking policy. Walks in sim, real robot coming together

The printed Ted on my desk, with his CAD model on the screen behind

Overview

Ted is a small two-legged robot you can 3D print, wire up and teach to walk. He's about 28 cm tall, weighs about 1 kg, has 10 hobby servos, a Raspberry Pi Zero 2 W for a brain and a little 8×8 depth sensor for eyes. He's named after Ted Mosby from How I Met Your Mother.

This one is still being built. Ted walks in simulation, all the parts are printed, and the real robot is waiting on its last 4 servos. I'll keep updating this page as he comes together.

Ted walking in the MuJoCo twin with the trained policy.

Where Ted is today

StepStatus
Design every part in code (build123d)✅ Done
Check every screw, cable and board against real part sizes✅ Done
Build a physics twin in MuJoCo✅ Done
Train a walking policy in the twin✅ Walks forward, backward and turns without falling
Print the legs and torso✅ Done (the black face panel is still to print)
Wire the electronics🔧 Next
Assemble⏳ Waiting on the last 4 servos
Walk for real⏳ After that

Highlights

  • A MuJoCo twin built straight from the CAD, with real part masses (about 1062 g) and Open Duck Mini's measured servo values
  • Walking policy trained with PPO on MJX: 4096 Teds at once, 150 million steps in 81 minutes on one RTX 2080 Ti

The robot

PartWhat
Servos10× Feetech STS3215 (7.4 V), 5 per leg: hip yaw, hip roll, hip pitch, knee, ankle pitch
BrainRaspberry Pi Zero 2 W + Waveshare bus servo adapter
BalanceAdafruit BNO085 IMU
EyesVL53L7CX 8×8 time-of-flight depth sensor, about 60° × 60° out to 3.5 m
Power2S Li-ion pack, 7.4 V, about 3000 mAh, roughly 1 hour of walking

The leg layout is copied from Open Duck Mini: same servos, same five joints per leg. Copying the proven leg saved weeks, so I only designed the parts I wanted to be different.

Inside the torso: battery between the hip servos, boards on the deck above

You can spin the whole robot around, explode it into parts and see the wires in the 3D viewer.

Teaching it to walk

Ted learns to walk in the twin first. Crashing a thousand virtual robots costs nothing, crashing the real one breaks parts.

The policy doesn't learn walking from nothing. A library of "textbook" steps is computed first, one for each forward speed and turn rate, and the policy is rewarded for loosely following it while it keeps its balance and obeys the joystick. It only sees what the real robot will see: the gyro, gravity direction, joystick, joint angles and speeds, its last three actions and a gait clock.

Every episode randomises floor friction, part masses, servo strength, sensor noise and delays, and shoves Ted around, so the policy doesn't rely on the twin being perfect.

There's no ankle roll, so a flat foot can't tilt sideways. To get his weight over one foot, Ted has to tip his whole body over that hip, the way a penguin waddles. That's why the early policies rocked their heads ±21°.

RoundWhat changedResult
1Open Duck's recipe, with its randomisation bugs fixedWalks, but rocks ±21° and walks a bit slow
2Scored speed more strictlySpeed fixed, but turning broke
3Hybrid gait table, speed scored over a whole strideTurns again, rock ±10°
4Penalised the head swaying sidewaysBest: rock ±6.5°, head sway 40 mm

The round 4 policy walks forward at 0.105 m/s when asked for 0.10, backs up at 0.074 m/s and turns at 0.83 rad/s. Its biggest tilt is 11°, and it never falls on the test route.

Everything is open source (MIT): the CAD, print files, wiring plan, twin and the trained policy are all in the repo. Build one, change it, share it.

Huge thanks to Open Duck Mini by Antoine Pirrone, whose servos, leg layout and training code Ted started from.

Related projects and writings