Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Humanoid Robotics 2026: Balance, Walking & RL in MuJoCo
Rating: 2.8 out of 5(2 ratings)
18 students

Humanoid Robotics 2026: Balance, Walking & RL in MuJoCo

Build humanoid balance and walking control for a Unitree H1-2 in MuJoCo: torque control, ZMP, push recovery and RL.
Last updated 11/2026
English
English

What you'll learn

  • Build a balance controller for a 67 kg Unitree H1-2 humanoid in MuJoCo, from torque control and gravity compensation to a measured ankle strategy.
  • Estimate centre of mass and centre of pressure from model and sensor data, and use them to keep a humanoid standing against a measured push disturbance.
  • Make a humanoid walk: LIPM trajectories, foot placement, swing-leg inverse kinematics and a whole-body QP that turns those trajectories into joint torques.
  • Run and read a reinforcement learning locomotion policy, compare it against your classical stack, and take both to ROS 2 and Gazebo in a full capstone.

Course content

10 sections • 89 lectures • 8h 51m total length
  • Introduction6:14

    Code and exercise for this section: Resources tab, s01_first_contact.zip.

  • 1.2 │ Wheels Get a Support Polygon. You Get a Shoe5:49
  • 1.3 │ Centre of Mass, Centre of Pressure, and the 0.0264 m² You Get5:55
  • 1.4 │ The Linear Inverted Pendulum, and the 0.308 s You Have to React6:09
  • 1.5 │ MuJoCo in Ten Minutes: Install, Load H1-2, Step the Sim5:45
  • 1.6 │ Reading the State: qpos, qvel, and the Free-Flyer Base6:17
  • 1.7 │ What This Course Builds, Section by Section5:31
  • 1.8 │ Course Handoff and Assets4:45

Requirements

  • Python and basic linear algebra. No robot and no prior humanoid experience needed: everything runs in MuJoCo on a normal laptop, and the robot model is free.

Description

This course contains the use of artificial intelligence.


A humanoid robot has a support polygon the size of a shoe. That is the whole problem.

A wheeled robot can stop and stand still. A humanoid standing still is running a controller, and if that controller stops, it falls.

This course builds that controller from the ground up using the Unitree H1-2 humanoid in MuJoCo, entirely in simulation. You do not need physical hardware, and this is not a slide deck about robots someone else built.

We start by breaking it.

Hold every joint at its exact angle, let go, and the robot collapses from 1.03 m to 0.415 m in six seconds.

That measured failure drives everything that follows: why position control cannot balance a humanoid, what torque control actually gives you, and why gravity compensation alone does not solve the problem.

What You Will Build

You will progressively build the humanoid balancing and locomotion stack:

  • Estimate center of mass from the robot model and state

  • Estimate center of pressure from ankle force/torque sensors

  • Derive and implement the ankle strategy, then push-test it to find where it fails

  • Build an upper-body momentum strategy suited to the H1-2

  • Implement capture-point stepping and determine reachable foot placements

  • Generate walking trajectories using the Linear Inverted Pendulum Model

  • Solve swing-leg inverse kinematics

  • Build a whole-body quadratic program that converts motion objectives into joint torques

  • Run Unitree's pre-trained reinforcement-learning locomotion policy

  • Break down its 47-dimensional observation vector term by term

  • Compare a learned locomotion policy against the classical controller you built yourself

  • Extend the system to terrain, arms, and hands

  • Integrate the system with ROS 2 and Gazebo

  • Finish with a capstone where the humanoid walks, balances, and carries

Learn From What Fails

Every number shown in the course comes from an experiment.

When something does not work, we study why instead of hiding it. That includes gravity compensation that made the robot perform worse and a textbook hip strategy that this particular humanoid cannot execute in the conventional way.

You receive the scripts used to produce the experiments and figures, so you can rerun them, modify them, and test the results yourself.

What You Need

Required: Python, basic linear algebra, and a laptop.

Not required: a humanoid robot, ROS experience, or previous humanoid robotics experience.

Who this course is for:

  • Robotics engineers and ML practitioners who can code in Python and want humanoid balance and locomotion built from measured results, not slide-deck theory.