Training a G1 Motion-Tracking Policy#
Isaac-Motion-Tracking-G1 trains the official 29-DoF Unitree G1, without dexterous hands,
to follow a reference motion using RSL-RL PPO and Newton’s MuJoCo Warp solver.
Each run trains on one clip. The policy runs at 50 Hz, with physics and implicit PD at 200 Hz.
Prerequisites#
Follow the Isaac Lab installation for Newton, then install the RSL-RL and video-recording dependencies from the repository root:
uv sync --extra rsl-rl --extra video
The first run downloads and caches the official G1 USD and the selected reference motion. Internet access is required until those assets are cached.
The Command Builder also lists Isaac-Motion-Tracking-G1.
Select Train or Play and rsl_rl to generate the base command.
Reference motions#
Six 50 Hz clips are available in the same asset-server directory:
Motion |
File |
|---|---|
Spin kick |
|
Walk |
|
Run |
|
Cartwheel |
|
Speed vault |
|
CR7 celebration (default) |
|
Train#
Train the default CR7 clip:
uv run isaaclab train --rl_library rsl_rl --task Isaac-Motion-Tracking-G1 --num_envs 4096
The default budget is 30,000 PPO iterations, with 24 control steps per environment per iteration
and a checkpoint every 500 iterations. Checkpoints and the saved environment/agent configurations
are written under logs/rsl_rl/g1_motion_tracking/<run>/.
To train another clip, set env.commands.motion.motion_file to its full URL or a local NPZ path.
Use a separate experiment name to keep its checkpoints together:
MOTION_FILE="https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/6.2/Isaac/IsaacLab/Motions/G1/v1/g1_walk.npz"
uv run isaaclab train --rl_library rsl_rl --task Isaac-Motion-Tracking-G1 \
--experiment_name g1_motion_tracking_walk \
env.commands.motion.motion_file="${MOTION_FILE}"
The actor uses reference joint positions/velocities, relative torso orientation, angular velocity, joint feedback, and previous actions. The critic additionally receives privileged position and linear-velocity observations. Adaptive sampling increases the probability of starting near failed parts of the reference. Clip completion truncates the episode through the normal reset path.
For reward weights, termination thresholds, and domain randomization, see
source/isaaclab_tasks/isaaclab_tasks/core/motion_tracking/motion_tracking_env_cfg.py.
The G1 asset, motor gains, and tracked links are configured in config/g1/env_cfg.py in that directory.
Play and record#
Play the pretrained CR7 policy with the Newton GL viewer:
uv run isaaclab play --rl_library rsl_rl --task Isaac-Motion-Tracking-G1 \
--num_envs 1 --checkpoint pretrained --viz newton_gl
For a local checkpoint, replace pretrained with its path. For a clip other than CR7, set
env.commands.motion.motion_file to the same clip used during training.
The checkpoint path alone does not select its reference motion.
Playback disables observation noise, but retains reference-phase sampling, reset perturbations,
and interval pushes. Episodes restart after a tracking failure or clip completion.
Record 500 control steps (10 seconds) without opening a viewer:
uv run isaaclab play --rl_library rsl_rl --task Isaac-Motion-Tracking-G1 \
--num_envs 1 --checkpoint pretrained --video --video_length 500
The recording is saved under the checkpoint’s run directory in videos/play/ and may contain
multiple episodes. See Recording Videos for camera and output options.
Deployment#
This guide covers the Isaac Lab simulation task. Robot-side deployment is maintained separately in g1_deploy. Its deployment contract and hardware validation are separate from the simulation workflow described here.