Unitree Italy distribution chain

Prices Find the right robot Financing
About us Book a call
Unitree G1 EDU, a platform for motion imitation from video

Development · Motion imitation

Unitree G1 motion imitation in MuJoCo: from a video to the robot

In short: the open pipeline for Unitree G1 motion imitation in MuJoCo has four stages: human pose from video with GVHMR, retargeting onto the G1 with GMR, reinforcement learning with mjlab or unitree_rl_mjlab, deployment on a G1 EDU in debug mode. You need an Ubuntu PC with an NVIDIA GPU and time for tuning. The video provides the movement, not the skill.

The open pipeline for Unitree G1 motion imitation in MuJoCo starts from a video clip and ends with a policy that moves the robot's joints. It is not an off-the-shelf product: it is a chain of open source tools, each with a precise input format. The result depends on the quality of the filmed movement.

Unitree G1 motion imitation in MuJoCo: the four stages

The most linear chain uses three separate projects for pose, retargeting and training, then the Unitree SDK for the robot. VideoMimic, the UC Berkeley work presented at CoRL 2025, merges the first two stages and also reconstructs the environment, but it remains a research project. For a lab that wants to control every step, the component-based route is better.

StageToolInputOutput
1. PoseGVHMRMonocular videoSMPL-X in camera space and world trajectory
2. RetargetingGMRSMPL-X, AMASS, BVH, FBXG1 joint trajectory
3. RLmjlab / unitree_rl_mjlabMotion CSV or NPZONNX policy
4. Deploymentunitree_sdk2 + unitree_mujocoONNX policyLow-level commands on the G1

The G1 is 1,320 mm tall and weighs about 35 kg in the base version, 35 kg or more in the EDU versions. It has 23 degrees of freedom in the base version; the EDU versions reach 43 with the hands. Retargeting therefore has to decide what to do with the fingers when the video does not show them.

Stage 1: estimating the human pose from video

GVHMR (SIGGRAPH Asia 2024) extracts human motion from a monocular video and returns the SMPL-X parameters in camera space and the global trajectory in the world. The method estimates the pose in a "gravity-view" system, built from the gravity direction and the camera direction, and this reduces the error accumulation typical of autoregressive methods. On the project page the authors report 280 ms for a 1,430-frame video on an RTX 4090, excluding preprocessing (2D tracking, features, relative camera rotation).

The practical limit is all in the preprocessing: 2D tracking, features, relative camera rotation. If the camera moves, the scale is ambiguous and the feet slide, and the retargeting inherits the error. This is why VideoMimic reconstructs the person and the environment together: contact with stairs and chairs becomes part of the problem, not a detail to correct later. The repository is MIT licensed and the real2sim pipeline explicitly accepts the g1 robot.

Stage 2: retargeting from the human body to the G1

GMR (ICRA 2026, MIT licence) solves the opposite problem: it brings a human trajectory into the robot's generalized coordinates. It supports SMPL-X and AMASS, BVH LAFAN1 and Nokov, FBX OptiTrack and PICO streaming. For the G1 it covers the 29 DoF and the 43 DoF configuration with hands. The solver uses mink and MuJoCo, limits motor speed and displays the result in a MuJoCo window.

The stated speed is 35-45 FPS on an Intel i9-13900K and 60-70 FPS on a Threadripper 7960X, so retargeting runs on the CPU without a GPU. GMR also integrates GVHMR: the command scripts/gvhmr_to_robot.py --gvhmr_pred_file hmr4d_results.pt --robot unitree_g1 reads the file produced by GVHMR and generates the robot motion. The authors warn that a single configuration does not work well on all movements: some clips need manual checks.

Stage 3: reinforcement learning in MuJoCo with mjlab

mjlab (Apache 2.0) combines the Isaac Lab manager-based API with MuJoCo Warp. Training requires an NVIDIA GPU; on macOS you can only evaluate a policy. The Mjlab-Tracking-Flat-Unitree-G1 task trains the G1 to follow a reference motion; in the examples 4,096 parallel environments are launched, and the official guide describes the CSV-NPZ conversion and the WandB registry.

A practical detail: the NPZ contains positions and quaternions indexed by body number, and MuJoCo and PhysX assign different indices. If you convert the motion with an Isaac Lab script and load it into mjlab, the targets end up on the wrong bodies and training does not converge. Use mjlab.scripts.csv_to_npz.

If you want the version maintained by Unitree, use unitree_rl_mjlab: the same tracking tasks for the G1 at 29 and 23 DoF, plus locomotion tasks for Go2, A2, R1 and H1-2; the repository also lists As2 and H2 among the supported robots. The project derives from mjlab, whole_body_tracking and rsl_rl, and exports policy.onnx during training. The theoretical basis is BeyondMimic: a compact motion tracking formulation, with shared hyperparameters, that on the same setup covers aerial wheels, spinning kicks and sprints.

Stage 4: from the simulator to the real G1

Deployment goes through unitree_sdk2 and a C++ program that loads the ONNX policy and publishes on rt/lowcmd. You first test in unitree_mujoco, then on the suspended robot. In the Unitree repository the PC network is 192.168.123.222 with netmask 255.255.255.0; the robot must be powered on in zero-torque mode and put into debug mode with L2+R2, otherwise the built-in motion controller and the policy compete for the motors. The network and debug procedure is the same as described in the guide to programming the G1.

The gap between simulation and reality is not closed by a better video. ASAP (RSS 2025) starts from motion tracking policies trained in simulation and adds a residual action model, trained with data collected on the robot, to compensate for the difference in dynamics. The work is evaluated on the G1 and reports a lower tracking error than system identification and domain randomization. In practice: expect a second tuning phase on the robot, not a direct transfer.

The physical model matters too. The G1 in MuJoCo Menagerie is a simplified MJCF, derived from the public unitree_ros file, with a BSD-3-Clause licence. The MJX model has been transferred to real hardware in MuJoCo Playground: it is a good starting point, but the actuators and gains must be checked on your own unit.

Limits: what a video does not solve

  • Forces and contacts. Video gives kinematics, not torques, friction or contact forces. Manipulation and grasps remain outside a motion tracking only pipeline.
  • Scale and camera. A video with a moving camera or without metric references produces ambiguous trajectories; retargeting cannot invent the scale.
  • One clip, one skill. mjlab's tracking task trains on one reference motion. For more skills you need a multi-clip dataset and training that combines them.
  • Retargeting quality. GMR states that some movements turn out badly with the default configuration: they must be reviewed in MuJoCo before training.
  • Safety. The policy is not a safety function: it does not replace protective devices. First tests with the robot suspended, a clear area and a person on the remote.

What it costs to start

You need a G1 EDU: the Unitree spec sheet provides for custom software development only on this version. At list price the G1 family runs from €19,809.32 to €90,829.38, excl. VAT. The G1 Edu Standard (G1-U1), with 23 DoF and a Jetson Orin NX compute module, costs €38,004.54. The differences between U1, U2 and the versions with hands are in the guide to which G1 version to choose; the full range is on the Unitree G1 page.

Abra Robotics supplies the Unitree range in the United Kingdom, Ireland and internationally, with support in English and, as a separate service, training and development on the SDK. For labs starting from scratch, the guide ROS 2 on Unitree robots covers networking and the first topic; for the research context there is the Universities and Research page.

Frequently asked questions

What does motion imitation let the Unitree G1 do?

It learns to reproduce a human movement recorded on video. The policy commands the robot's joints; it does not recognise objects or decide the task.

Is one video enough to train the G1?

It is enough for a single skill, not for general behaviour. Retargeting, simulation training and tests on the robot are still needed.

Do you need a Unitree G1 EDU for this pipeline?

Yes, loading your own policy requires the SDK and a development computer, which are only provided on EDU versions. The Unitree spec sheet does not provide for custom software development on the base G1.

How much does a Unitree G1 cost for this work?

At list price the G1 family runs from €19,809.32 to €90,829.38, excl. VAT. The pipeline needs an EDU version: the G1 Edu Standard (G1-U1) costs €38,004.54.

Where does the policy run?

On an Ubuntu PC connected to the G1 via Ethernet: a C++ program loads the ONNX policy and sends commands with unitree_sdk2. You first test in unitree_mujoco and then on the suspended robot, in debug mode.

Sources

  1. Unitree, official G1 spec sheet (DoF, weight, height, software development only on EDU)
  2. Unitree, unitree_rl_mjlab (G1 tasks, motion conversion, deployment and debug mode)
  3. mujocolab, mjlab and the Motion Imitation guide
  4. Yanjie Ze et al., GMR: General Motion Retargeting (README, supported robots, CPU benchmark)
  5. Shen et al., GVHMR: World-Grounded Human Motion Recovery via Gravity-View Coordinates, SIGGRAPH Asia 2024
  6. Allshire, Choi et al., VideoMimic: Visual Imitation Enables Contextual Humanoid Control, CoRL 2025; code on GitHub
  7. Liao et al., BeyondMimic: From Motion Tracking to Versatile Humanoid Control via Guided Diffusion, arXiv:2508.08241
  8. He et al., ASAP: Aligning Simulation and Real-World Physics for Learning Agile Humanoid Whole-Body Skills, arXiv:2502.01143
  9. Google DeepMind, Unitree G1 Description (MJCF), MuJoCo Menagerie

Need a G1 EDU for the pipeline?

We configure the G1 EDU with the right compute dock and, as a separate service, training on the SDK, MuJoCo and ROS 2.

G1 EDU configurationsSoftware services