ToddlerBot: build, install, simulate, calibrate and move the robot
ToddlerBot is an open-source humanoid robotics platform created by Haochen Shi and Stanford collaborators for locomotion, manipulation, and robot policy learning. The released hardware includes toddlerbot_2xc and toddlerbot_2xm configurations. Start with toddlerbot_2xc, the developers’ recommended default. Use one consistent configuration for the printed hardware, simulation model, motor mapping and robot controller.
The original project targeted a bill of materials below $6,000. This is a historical project estimate, not a current supplier quotation. Python 3.10+, MuJoCo, MJX and JAX are part of the software workflow. The physical robot requires more than a successful software installation.


Robot architecture
The controller receives joint positions and orientation measurements, estimates the robot state, calculates joint commands and transmits them to the servos. Sensor readings return to the controller in a feedback loop.
Parts and software
| Component | Purpose |
|---|---|
| 3D-printed mechanical parts | Legs, arms, waist, torso, head and actuator mounts |
| Dynamixel servos | Actuation; buy the exact models and counts in the revision BOM |
| 8-channel communication PCBs | Servo bus connections, according to the hardware layout |
| NVIDIA Jetson Orin NX 16 GB | Onboard control and perception computing |
| IMU | Torso orientation and motion estimation |
| Power supply and battery | Electrical power: match the approved wiring and voltage limits |
| Cameras and associated electronics | Perception for supported vision-based policies |
| Fasteners, inserts, cables and connectors | Mechanical assembly and serviceable cable routing |
| Linux development workstation | Python development, MuJoCo simulation, training |
| Software | Use |
|---|---|
| Ubuntu Linux | Development workstation |
| Git | Retrieve the project source |
| Conda / Miniforge | Isolate Python 3.10 dependencies |
| Python | Run policies and tests |
| MuJoCo | Visualize motions and evaluate policies |
| MJX / JAX | Accelerated reinforcement learning |
| PyTorch | Training and inference where required |
| JetPack | NVIDIA Jetson hardware software stack |
| Onshape | Review the official CAD assemblies |
| 3MF-capable slicer | Prepare the official 3D print plates |
| SSH | Access the Jetson from another computer |
Use the exact bill of materials and print files for toddlerbot_2xc. Do not interchange motor variants without revising actuator parameters, motor limits and the robot model.
Set up ToddlerBot on Ubuntu
Install development tools and a compatible Miniforge distribution. The commands below run on your Linux workstation, not on the hardware controller.
sudo apt update
sudo apt install -y git curl wget build-essential python3-dev python3-pipmkdir -p ~/projects
cd ~/projects
git clone https://github.com/hshi74/toddlerbot.git
cd toddlerbot
git status
git log -1 --onelineconda create -n toddlerbot python=3.10 -y
conda activate toddlerbot
python -m pip install -e ".[linux]"Check imports and tests. Some tests may require additional platform-specific components.
python --version
python -c "import mujoco; print(mujoco.__version__)"
python -c "import jax; print(jax.__version__)"
python -c "import toddlerbot; print('ToddlerBot import OK')"
pytest tests/First movement in simulation
Before connecting physical actuators, run the official 2XC reference motion in MuJoCo. This does not command the real robot.
conda activate toddlerbot
cd ~/projects/toddlerbot
python toddlerbot/policies/run_policy.py \
--policy replay \
--path motion/push_up_2xc.lz4 \
--vis viewInspect whether the model loads, the correct 2XC motion is selected and all limbs move without configuration errors.
find motion -maxdepth 2 -type f | sort3D printing and preparation
- Select toddlerbot_2xc and retrieve its matching official BOM and 3MF build plates.
- Import 3MF plates into the selected slicer and preserve the recommended orientations and material-specific settings.
- Print and label the mechanical parts by arm, leg, waist, torso and head.
- Inspect holes, motor housings, fastener alignment, print defects and cable passages before assembly.
- Print and fit a representative motor mount before printing all the structure when using a different printer.
Project documentation cites print-plate runs of roughly ten hours on a Bambu X1C; actual time depends on the plate and printing profile. Do not treat generic infill or temperature values as verified project settings.
Mechanical assembly
- Assemble the left arm and then the right arm using the exact servo orientations specified by the manual.
- Assemble mirrored left and right leg modules. Verify each axis, fastener and unrestricted travel before powering the system.
- Join the waist and pelvis, then attach the assembled limbs to the torso.
- Prepare the Jetson and route the wiring before enclosing the upper torso and head.
- Install the PCBs, battery and cable assembly with strain relief; verify no wire can reach a moving joint.
Follow the official illustrated assembly manual for motor horn positioning, screw specifications, individual photos and the precise order of subassemblies. All joints should be inspected with power disconnected.
Power, communication and sensor wiring
This diagram is not a pin-by-pin wiring diagram. The official manual identifies communication interfaces including root-0, root-2, root-3 and root-23. Use the hardware revision’s documented voltage, power distribution, connector orientation and routing. Measure polarity and check for shorts before connecting power. Never connect or disconnect servos under load.
Configure the NVIDIA Jetson
For the recommended Jetson Orin NX 16 GB, prepare the compatible carrier-board image and JetPack 6.1 or later where the project specifies that requirement. Make sure the host and Jetson source revisions match.
ssh USER@JETSON_IP_ADDRESScd ~/projects/toddlerbot
conda create -n toddlerbot python=3.10 -y
conda activate toddlerbot
python -m pip install -e ".[jetson]"Install JetPack-compatible NVIDIA PyTorch packages and configure the CH9344 USB-to-serial driver, Jetson.GPIO permissions and any realtime kernel used by the selected policy.
sudo groupadd -f -r gpio
sudo usermod -aG gpio "$USER"
sudo usermod -aG i2c "$USER"
sudo usermod -aG dialout "$USER"
sudo rebootgroups
uname -r
ls /dev/ttyUSB* /dev/ttyACM* 2>/dev/null
i2cdetect -lCalibrate joint zeros
Use the project’s printed calibration fixtures to align the reference poses. Knee hard stops and the opened parallel gripper are referenced by the official procedure when those mechanisms are fitted. The calibration program interacts with real servos: run only when the assembled robot is safely supported and the wiring is verified.
conda activate toddlerbot
cd ~/projects/toddlerbot
python toddlerbot/tools/calibrate_zero.py \
--robot toddlerbot_2xcpython toddlerbot/descriptions/add_configs.py \
--robot toddlerbot_2xcKeep copies of the calibrated parameters. Confirm servo ID, direction and joint response before trying to balance the robot.
First supported physical standing test
Confirm all servo identities, electrical safety, calibration offsets, a support stand, clear cables and an accessible power cut-off. This command moves the real machine; a free-standing first attempt is unsafe.
python toddlerbot/policies/run_policy.py \
--policy stand \
--robot toddlerbot_2xc \
--sim realIf the body requires fine pitch adjustment, the published calibration policy uses torso tilt information from the IMU.
python toddlerbot/policies/run_policy.py \
--policy calibrate \
--robot toddlerbot_2xc \
--sim realStopping a physical policy with Ctrl+C may disable torque and cause the robot to fall. Support it before ending a session.
Train a walking controller
Standing is not proof that the robot can walk. Confirm a compatible released checkpoint and its observations, joint ordering, model version, control frequency, IMU input and stop behavior before executing a gait on hardware.
cd ~/projects/toddlerbot
ls toddlerbot/policies
ls toddlerbot/locomotion
python toddlerbot/policies/run_policy.py --helpThe following is the documented training command pattern, not a complete runnable training job. Replace both placeholders with a real supported skill and its matching configuration.
python toddlerbot/locomotion/train_mjx.py \
--gin-file SKILL_NAME \
--env SKILL_NAMECheck reward functions, foot contacts, motor velocity and torque bounds, randomization assumptions and real-world policy compatibility before a walking test.
Create and visualize joint movements
ToddlerBot supports keyframe-based motion authoring and simulation replay. The following independent Python example plots an illustrative angle trajectory. It never controls a motor.
import numpy as np
import matplotlib.pyplot as plt
times = np.array([0, 1, 2, 3, 4])
angles = np.array([0, 15, 30, 10, 0])
t = np.linspace(0, 4, 200)
q = np.interp(t, times, angles)
plt.plot(t, q)
plt.xlabel("Time (s)")
plt.ylabel("Joint angle (deg)")
plt.title("Example joint trajectory")
plt.grid(True)
plt.show()A smooth-looking joint trajectory alone cannot guarantee collision avoidance, balance or physical safety. Export and replay only after checking the configured joint limits.
Diagnostics and troubleshooting
| Symptom | What to verify |
|---|---|
| Python environment fails | Conda activation, Python version and the project extras |
| MuJoCo motion not found | The matching motion path and robot model |
| Jetson does not detect servos | CH9344 driver, ports, cables and user permissions |
| Joint turns the wrong way | Motor ID, horn orientation, sign and zero offset |
| Robot pitches forward | Zero calibration, IMU orientation and mechanical backlash |
| Motor gets hot | Excess load, blocked joints and power conditions |
| Walking policy exits | Checkpoint compatibility, observation mappings and device setup |
| Robot collapses on stop | Torque shutdown and missing mechanical support |
conda activate toddlerbot
python --version
python -m pip check
python -c "import mujoco, jax; print('Imports OK')"
groups
lsusb
dmesg | grep -i -E "usb|tty|ch9344" | tail -30These read-only diagnostics do not verify voltage correctness or guarantee safe robot motion.
Build checklist
- Choose 2XC or 2XM and freeze the hardware revision.
- Acquire the verified BOM and 3MF print plates.
- Print and inspect all structural parts.
- Assemble and mechanically check the arm and leg modules.
- Install the Linux environment and replay a motion in MuJoCo.
- Configure the Jetson and the correct motor driver.
- Verify electrical connections, motor IDs and feedback.
- Calibrate all joint zeros.
- Perform a supported standing test with restraint.
- Validate a compatible walking policy in simulation before any supported physical walking test.
Original resources, rights and testing limits
Read the official BOM, PCB sourcing notes, mechanical assembly manual and software setup instructions before purchasing components. ToddlerBot is published with MIT terms for software and CC BY-NC-SA 4.0 for the design; check the current upstream license text for the exact release.
Revision-specific source material: ToddlerBot repository, hardware/software documentation and illustrated assembly manual.
This article explains how to prepare the robot and perform documented simulation, calibration and standing workflows. It does not claim that a physical ToddlerBot was built or tested here. Real walking needs an evaluated compatible policy and appropriate test equipment.
Complete practical guide: ToddlerBot
ToddlerBot combines printed modular hardware with a simulation and policy pipeline. The same actuator configuration must be used in the model, replay and physical runtime.
1. Files, parts and fabrication
- Select the released actuator configuration and matching print plates; sort parts by arms, legs, waist and torso.
- Assemble each arm and mirrored leg module using the actuator models and orientations in the BOM. Verify motion and wiring before attaching to the torso.
- Install the specified PCB and onboard computer, checking cable clearance and physical support. Keep each motor identity and calibration record.
2. Software installation and configuration
- Use Miniforge and the Linux workstation setup. Create the documented Python 3.10 environment and install the project Linux extra from the selected source checkout.
- Use the matching MuJoCo or MJX model and policy. Install the onboard runtime for the correct Jetson configuration separately.
- Confirm joint ordering, observations, control frequency and reference motion files before deploying any policy.
Commissioning diagram
- 1Reference motion
- 2MuJoCo / MJX model
- 3Policy replay
- 4Joint targets
- 5Verified hardware runtime
Mermaid diagram source
flowchart TD
N0["Reference motion"]
N1["MuJoCo / MJX model"]
N2["Policy replay"]
N3["Joint targets"]
N4["Verified hardware runtime"]
N0 --> N1
N1 --> N2
N2 --> N3
N3 --> N43. Power-on preparation and first movement
- Run the documented visualized replay before connecting hardware. Inspect contacts and all joint positions.
- Secure the physical robot, check each actuator's feedback, zero and direction in the documented calibration process.
- Test the supported neutral posture and stop procedure before any real locomotion attempt.
4. Programming exercise
From a compatible Linux checkout with the project's environment installed, inspect the released 2XC reference in MuJoCo. This example is a simulation replay.
conda activate toddlerbot
cd ~/toddlerbot
python toddlerbot/policies/run_policy.py --policy replay --path motion/push_up_2xc.lz4 --vis viewObserve the reference motion and verify the selected model matches the 2XC configuration. Do not use this command as a physical startup.
5. Progress to practical operation
- Replay a matching gait reference and compare joint limits and contacts in the simulator.
- Validate the control policy and observation mapping against a supported physical unit before standing or stepping.
- Use a verified locomotion controller for walking; fast gait and running require their own trained and evaluated policy.
6. Software and hardware diagnostics
- Replay reports model mismatch
- Select the matching actuator configuration and motion file.
- Physical joint error
- Check zero offsets and wiring rather than tuning replay targets.
- Policy fails to start
- Verify installed dependencies and checkpoint/model versions.
Technical basis: ToddlerBot hardware, MJX pipeline and policy replay instructions. Programming examples are identified as simulation, offline analysis or documented interface instructions. No physical commissioning test is claimed.
Print plates, PCB ordering and humanoid assembly
DIY research humanoid
The BOM and assembly manual describe the hardware; training a locomotion policy is a separate task.
From parts to first test 6 steps
Order the BOM by revision
Choose the matching actuator variants, PCB8CH board, Jetson and power components from the hardware list. Use the same revision for the printable plate layout.
Reference 2 ↓Prepare the print plates
Follow the plate order in the printing guide. Sort parts by robot region and inspect mounting holes before loading motors.
Reference 3 ↓Assemble arms and legs
Use the manual's symmetric arm assembly and mirrored leg instructions; do not interchange left and right joint orientations.
Reference 4 ↓Fit the waist, torso and head
Install the remaining structural modules and electronics in the manual's order. Keep wiring clear of moving joints.
Reference 4 ↓Provision the Jetson
Follow the project's installation and configuration procedures for the robot-side software. Confirm joint IDs, direction and feedback before running policies.
Reference 5 ↓Validate in simulation then on the robot
Use the matching robot description and controller in the repository; establish a supported neutral posture before starting locomotion.
Reference 5 ↓
Parts, files and official manuals 5 references
Research humanoid commissioning
Practical implementation notes for ToddlerBot. Use the exact hardware and software revision specified in the project documentation.
Tools and equipment
- 3D printer
- caliper
- hex drivers
- servo programming interface
- multimeter
- Jetson
- Linux workstation with simulation dependencies
Component illustration
- 1Leg modules
- 2Waist
- 3Torso PCB
- 4Arm and head modules
Control architecture
- 01MJX simulation
- 02Trained policy
- 03Jetson runtime
- 04Motor bus + sensors
Mechanical preparation and assembly
Sort the release print plates by body region. Assemble both arm modules, then mirrored legs while matching the actuator model and orientation at each position. Fit waist and torso only after checking joint travel and cable bend radius.
Electrical setup and calibration
Use the matching PCB and power wiring loom. Record each motor ID, joint name, direction, zero and range in the corresponding configuration. Keep the robot supported when testing the bus; verify that an IMU orientation change agrees with the model.
Software setup and programming
Install the project using its platform-specific Miniforge and installation instructions; do not run the installer as root. On the workstation use the MJX pipeline and matching robot model. On the Jetson use the same release and policy observations; verify the replay in simulation first.
First test and acceptance criteria
Check that the simulated joint ordering, observation dimensions and control frequency match the policy. A policy trained for a different actuator configuration is not suitable for physical deployment.
Programming and configuration example
This is the published simulation replay for the 2XC motion file, not the physical deployment mode. Confirm the checkout includes the matching motion file and use the Jetson-specific installation only on the robot.
git clone https://github.com/hshi74/toddlerbot.git
cd toddlerbot
# Linux workstation with Miniforge installed:
conda create --name toddlerbot python=3.10
conda activate toddlerbot
pip install -e ".[linux]"
# Visualize the 2XC push-up reference in MuJoCo:
python toddlerbot/policies/run_policy.py --policy replay --path motion/push_up_2xc.lz4 --vis viewTroubleshooting
If the model and real robot disagree after calibration, inspect actuator group wiring and each zero offset. Do not force a stand with mismatched XML or policy checkpoints.
Technical reference: project release documentation. The assembly references above provide the revision-specific drawings and BOM. Examples are editorial walkthroughs or documented commands; they have not been physically tested by TechniaHQRobot.
A research platform with more than one control task
The group’s 2025 work describes a robot for loco-manipulation: moving the whole body while interacting with objects. Its repository includes low-level control, RL training, diffusion-policy training and deployment tools. That is a broader set of research components than a CAD-only humanoid release.
The January 2026 Locomotion Beyond Feet work adds a multi-skill system combining reference motions, learned policies and a depth-based skill classifier. The repository describes creating reference motions, training separate skills, preparing depth data and assigning checkpoints before running the combined system.
Why version choice affects the hardware
ToddlerBot 2.0 was announced in August 2025. An assembly guide or parts list prepared for 1.0 may have different wiring, actuators or printing instructions. Start from the changelog and BOM for the intended revision, then cross-check the Onshape model and printable files. A downloaded code package is not a mechanical kit.
The project specifies Python 3.10 or newer for its main software, but the chosen policy pipeline has additional framework and compute dependencies. Commands from one published experiment are not evidence that every skill runs on a newly assembled machine.
The commercial-use restriction
The code and documentation use the MIT license. The mechanical design, including Onshape and printable assets, is distributed under CC BY-NC-SA 4.0. That noncommercial condition changes what a company may do with a derivative robot, even when its Python controller is permissively licensed.
What remains to validate on a real build
Before evaluating locomotion, check actuator calibration, battery and power delivery, emergency stop behavior and the documented motion limits. The academic videos establish reported research examples. This article does not claim to reproduce their outcomes.
Jetson setup, mirrored legs and design rights
Answers are based on published source material and project documentation. Their order does not represent search volume.
01Where can I get ToddlerBot STL or plate files?
The repository's hardware documentation links the 3D-printing chapter, sliced plates and the matching designs. Use one revision for prints and electronics.
Sources Official project source
02Why does the author recommend ordering the PCB first?
The hardware guide reports a typical lead time of about ten days, so builders can print and assemble in parallel while the boards are fabricated.
Sources Official project source
03Are both arms identical?
The manual says left and right arms are identical for the documented revision, while the legs are mirrored. Do not mirror every arm part automatically.
Sources Official project source
04When should I install the Jetson Orin?
The official sequence prepares Jetson software before inserting the module into the torso. Follow the setup guide before closing the frame.
Sources Official project source
05Can I sell modified ToddlerBot hardware under the MIT software license?
No blanket authorization follows from the software license. ToddlerBot CAD and STL design rights are separately CC BY-NC-SA, restricting commercial use.
Sources Official project source
06Does a simulator model establish stable walking on my build?
No. Actuator numbering, calibration, mechanical tolerances and battery voltage must match the intended robot before physical policy deployment.
Sources Official project source
ToddlerBot: parts cost, software updates and maintenance
This practical ownership section complements the original assembly and programming instructions. Public files do not guarantee that all components can still be purchased or that every build is supported.
| Item | Project record |
|---|---|
| Cost record / BOM target | Under US$6,000 (research project estimate; not a current quote) |
| Software licence | MIT (repository code and documentation) |
| Hardware licence | CC BY-NC-SA 4.0 (design files; noncommercial) |
| Simulation availability | MuJoCo/MJX and reinforcement-learning workflows |
| Build difficulty | Advanced |
How to obtain the robot or its parts
Use the ToddlerBot documentation and hardware release to identify whether an assembled product, kit or self-sourced parts are offered. Price the matching revision, not a photograph or an old bill of materials. Include actuators, controller, supply, wiring, tools, fabrication, shipping, tax and spare parts. A historical BOM target is not a current delivered quote.
- Project documentation
- Source repository and version history
- CAD / fabrication files
- Revision-specific workshop source
How the hardware and software work together
Mechanical path: Leg modules → Waist → Torso PCB → Arm and head modules.
- MJX simulation
- Trained policy
- Jetson runtime
- Motor bus + sensors
Feedback, fault detection and the approved stop function constrain the command path.
Install the project using its platform-specific Miniforge and installation instructions; do not run the installer as root. On the workstation use the MJX pipeline and matching robot model. On the Jetson use the same release and policy observations; verify the replay in simulation first.
Install, update and recover the software
Keep the exact hardware revision, repository commit, operating system, dependencies, controller firmware and calibration in a local build manifest. Read the project’s setup instructions before installing. Use an isolated environment and a separate checkout for upgrades; compare release notes, regenerate only the documented configuration, and first repeat a simulation or read-only test. Back up calibration and original firmware files where the project supports it. Restore only a documented compatible release if the new version fails.
Project-specific verification: Check that the simulated joint ordering, observation dimensions and control frequency match the policy. A policy trained for a different actuator configuration is not suitable for physical deployment.
Power, battery replacement and cycle life
Track onboard compute and motor demand separately when measuring usable battery energy.
Battery cycle life and robot service life are different. Equivalent full cycles (EFC) can be estimated as cumulative discharged energy (Wh) divided by initial usable pack energy (Wh). State of health (SOH) is measured usable capacity divided by baseline usable capacity × 100%, under comparable conditions. Example only: 1,800 Wh discharged from a 600 Wh reference pack equals 3 EFC; neither number is a specification for this robot. Ask for the manufacturer’s cycle rating, temperature limits, capacity-retention criterion and warranty. Do not use an arbitrary percentage as a replacement threshold.
Common problems, wear and service plan
| When | Inspection and evidence |
|---|---|
| Before operation | Compare leg and arm joint calibration, torso PCB connections and motor bus errors after a fall; use the matched policy checkpoint. |
| After a fault or impact | Use the matching PCB and power wiring loom. Record each motor ID, joint name, direction, zero and range in the corresponding configuration. Keep the robot supported when testing the bus; verify that an IMU orientation change agrees with the model. |
| After software or parts change | Record versions and replaced part serials; compare the same approved test with the earlier baseline. Stop on new errors or unexpected movement. |
| At manufacturer service intervals | Use the documented interval and authorized service procedures. No universal calendar or lubricant is assumed. |
| At end of service | Ask about spare-part availability, data removal, battery take-back and local electronics recycling. |
What is not established by the published files
The project documentation must provide any claimed rated service life, battery cycle endurance, duty limits, warranty and repair intervals for the exact hardware. Without a cited endurance test, report those values as not established, not zero and not an estimate. For a DIY build, keep a parts-replacement log and report conditions when measuring reliability.
Original documentation
- Official project source
- Stanford research project and 2.0 information
- Original 2025 paper
- 2026 Locomotion Beyond Feet paper
- Official project source
- Bill of materials and component variants
- 3D-printing resources and plate order
- Hardware assembly manual
Found a changed specification? Submit a correction with its source ↗