Back to Projects
Robotics & Reinforcement Learning

Juan: Sim-to-Real RL Walking for a Bipedal Robot

August 2026 - Present

About This Project

A 43 cm, 8-servo bipedal robot that I designed in Onshape and built from scratch as a solo project in Columbia's Robotics Studio. Its walking policy is trained with PPO in MuJoCo and runs on the robot's Raspberry Pi 4: the real robot walks at about 0.2 m/s, turns and recovers from shoves. Camera perception and person following are tested in simulation and on a laptop.

Project Details

Juan is a bipedal robot I designed, built and taught to walk on my own, as my project for Columbia's Robotics Studio. The robot - 43 cm tall, with 8 servos (4 joints per leg), designed in Onshape and built from scratch. - A Raspberry Pi 4 runs the walking policy on board at 50 Hz, using NumPy only. Training - PPO (Stable-Baselines3, PyTorch) in the MuJoCo simulator: 3.3 billion simulated steps, about 2 years of simulated time, across 194 training runs on one laptop CPU. - An asymmetric actor-critic that is mirror-symmetric, so the left and right legs learn the same gait. - A 4-stage curriculum and domain randomization, so the policy copes with a robot that differs from the simulated one. - Training was warm-started from a simpler biped when training from scratch stalled. Closing the gap between simulator and robot The simulated servos did not behave like the real ones, so I fitted the servo model to logs recorded on the real robot. Replaying those logs in the simulator, the joint error fell from 7.2° to 4.7° RMS. Results - On the real robot: walks at about 0.2 m/s, turns and recovers from shoves. - In the simulator, across 72 randomized robots: falls in 1.4% of walking runs, and in 15% of runs with random shoves. Camera perception and person following (tested in simulation and on a laptop, not yet on the robot) - Perception with OpenCV: YuNet for faces, MobileFaceNet for facial expressions, NanoDet-Plus for people. - Person following: the best of 13 policies kept the person in view 98% of the time, against 91%. The code, the robot's parts list and the training notes are in the GitHub repository.

Technologies

PythonPyTorchStable-Baselines3PPOMuJoCoReinforcement LearningNumPyRaspberry PiOnshapeOpenCVComputer Vision

Project Info

Category

Robotics & Reinforcement Learning

Timeframe

August 2026 - Present