[ ROBOROOTS KINEMATICS // HUMANOID MOTION ]

Training Robots To Breakdance

From teleoperation to dynamic embodiment: the physics, kinematics, and data pipelines behind humanoid motion.

RoboRoots Editorial & Engineering GuildPublished Oct 202612 Min Read
  • Rigid-Body Dynamics
  • Quaternions
  • ZMP
  • Motion Retargeting
  • Unitree G1
  • Breakdance
Anime-style Unitree G1 humanoid robot holding a one-handed breakdance air freeze, legs split and kicked high, with cyan shockwave rings radiating from its planted hand.
Pose Locked
Fig 1: The one-handed air freeze. Every pound of the robot balances on a single wrist actuator.

Before an autonomous bipedal humanoid balances on a single palm during an air-flare, lands a dynamic jump, or retrieves tools across an unstructured workspace, it must cross the reality gap. What looks effortless for a human dancer means solving hard physics problems: coordinating dozens of non-linear actuators, predicting how momentum is conserved, counteracting gravity, and absorbing high-frequency ground impacts.

At RoboRoots, our Physical AI curriculum bridges this exact divide. We take students from foundational tabletop teleoperation up to reinforcement learning policies running on full bipedal humanoids.

01 //The Heritage of Motion: Keyframes vs. Physics

In traditional computer animation, motion is a visual trick. An animator sets keyframe poses at discrete time steps and software interpolates the transforms of the parent-child bone hierarchy. If an animated dancer's foot clips ten centimeters into a concrete floor during a backward sweep, the renderer doesn't care. Keyframes assume zero mass, zero inertia, and zero contact dynamics.

When that same trajectory is commanded to a physical robot, it fails. A motor cannot teleport to an angle; it must exert torque generated by current through its coils. If a trajectory pushes an actuator past its saturation limit, or ignores the inertia of an accelerating limb, motors overheat, gears strip, and the center of mass drops.

3D Animation
  1. Interpolate keyframes
  2. Visual mesh only
Embodied Robotics
  1. Rigid-body dynamics
  2. Actuator torques τ
  3. Ground reaction forces

To control physical machines, animation must yield to the equations of multi-body dynamics:

M(q)q̈ + C(q, q̇)q̇ + g(q) = τ + Jc(q)Tλ
q, q̇, q̈
Generalized joint positions, velocities, and accelerations.
M(q)
The mass and inertia matrix resisting acceleration.
C(q, q̇)
Coriolis and centrifugal forces generated by rotating limbs.
g(q)
The gravitational torque vector acting continuously on every link.
τ
The active motor torque commanded by our control policy.
Jcᵀλ
Contact forces λ (ground friction and normal force) mapped back into joint space through the contact Jacobian.

02 //Biology to Actuation: Vectors, Matrices & Quaternions

The human body is a compliant skeleton bound by tendons and antagonistic muscle pairs that naturally absorb shock and store elastic energy. Humanoids like the Unitree G1 approximate this biology with rigid kinematic linkages driven by high-torque quasi-direct-drive (QDD) servomotors.

Human Biology vs. Robotic Embodiment
Biological linkageMechanical equivalent
Rigid bones (femur / humerus)CNC aluminum & carbon-fiber extrusions
Synovial joints & cartilageDeep-groove ball bearings & bushings
Agonist / antagonist musclesQDD brushless outrunners + planetary gearboxes
Proprioceptive nerve endings14- to 18-bit magnetic absolute encoders
Vestibular balance system6-axis inertial measurement unit (IMU)

Orientations along these chains can't rely on Euler angles because of gimbal lock, where two rotation axes align and a degree of freedom vanishes. Instead, every link is computed with 4×4 homogeneous transformation matrices and unit quaternions q = (w, x, y, z):

Tii−1 =R(q)p0T1

Forward kinematics chains every motor angle from the pelvis out through the knees and ankles to get the exact Cartesian position of each footpad relative to the ground. Explore the G1's degrees of freedom below.

Interactive Anatomy // Unitree G1

Select a DoF

Select degree of freedom

Locked joint[01] WAIST_YAWTorso swivel
Range (rad)-2.62 / +2.62
Peak torque88 N·mM107 QDD
Max velocity32 rad/s

03 //Dynamic Balance: The Inverted Pendulum

A humanoid standing, walking, or dancing is fundamentally an inverted pendulum. Under gravity, any drift of the center of mass (CoM) outside the support polygon creates an accelerating tipping moment.

CENTER OF MASSdisturbance vPIVOTZMPSUPPORT POLYGON
Fig 2: The humanoid as an inverted pendulum. Balance holds while the ZMP stays inside the support polygon.
  • The support polygon: With both feet planted, the convex hull bounded by the foot perimeters. In an air freeze, it shrinks to a single palm.
  • The Zero-Moment Point (ZMP): The point on the floor where the net horizontal tipping moment equals zero.
  • The balance condition: While the ZMP stays inside the support polygon, the robot stays up. The moment a high kick or windmill swings it outside, the robot falls unless the controller repositions a foot or throws an arm counter-sweep.

04 //Capturing High-Action Dynamics

To teach a robot complex behaviors, researchers gather high-fidelity human demonstrations. Collecting whole-body data for high-action maneuvers comes with real hardware trade-offs:

Teleoperation & Motion Acquisition Platforms

Meta Quest 3

  • 4x inside-out SLAM cameras
  • Hand tracking
  • Best for tabletop bimanual teleop and cost-effective classrooms

Pico 4 Enterprise / Ultra

  • Lightweight tracker pucks
  • Stereo color passthrough
  • Best for Unitree SDK teleop and whole-body locomotion

Apple Vision Pro

  • 12 low-latency cameras + LiDAR
  • Sub-millimeter hand tracking
  • Best for dual-arm dexterity

XR headsets excel at upper-body manipulation, but teleoperating breakdancing in real time isn't feasible. An operator can't safely throw an air-flare while coupled over Wi-Fi to a 35 kg metal robot, given 5–20 ms network latency, sensor occlusion, and the obvious safety risk.

The solution: video-to-robot motion retargeting

  1. 01

    Pose recovery. Vision models like SMPL-X and GVHMR read 60–120 FPS footage of B-boys and recover 3D skeletal joints through space.

  2. 02

    Kinematic retargeting. Tools like General Motion Retargeting (GMR) map the dancer’s joint coordinates onto the G1’s URDF joint limits.

  3. 03

    RL balance policies. In massively parallel simulators (Isaac Gym, MuJoCo), an agent is rewarded for tracking the dancer’s trajectory and penalized for jitter, torque saturation, and falls.

The trained policy, as explored in open-source work like amznhacker/Unitree-G1-Research and supat-roong/g1-dance, is compiled into lightweight tensors that keep the robot balanced through dynamic floor work.

05 //Community Learning in the SimLab

SimLab Pipeline
  1. Video mocap extraction
  2. Joint array JSON
  3. Browser viewport
  • The collectible card engine: Learners unlock trading cards, from Common Kinematics to Legendary breakdance routines, and equip curated behaviors and DoF configurations into the 3D sandbox.
  • In-browser trajectory loading: The SimLab plays back converted mocap .json files directly. That depends on clean formatting, correct axes (Z-up to WebGL Y-up), and joint indexing, all of which students inspect and refine in the browser.
  • Student-driven iteration: The motions in our sandbox are live works in progress from our hackathon cohorts. Diagnosing limb clipping, pelvic drop offsets, and motor overshoot is how participants connect computer science to physical reality.
  • RR-01
    CommonCommon Kinematics
  • RR-04
    RareRare Contact Solver
  • RR-09
    LegendaryLegendary Air-Flare Freeze

Put the freeze in your own hands

Test, refine, and contribute your own motion capture trajectories.

Launch RoboRoots SimLab Sandbox