vector-g1-sidestep / README.md
ml303's picture
Publish three synthetic G1 sidestep clips and replay tools
c3849de verified
|
Raw History Blame Contribute Delete
5.05 kB
metadata
pretty_name: VECTOR Unitree G1 Synthetic Sidestep
tags:
  - robotics
  - timeseries
  - motion-trajectory
  - unitree-g1
configs:
  - config_name: clips
    default: true
    data_files:
      - split: train
        path: clips.csv

VECTOR Unitree G1 Synthetic Sidestep

Three synthetic humanoid motion clips with a replay, generation settings, and per-clip kinematic checks. Each clip represents the same 29-joint Unitree G1 taking one left side step while the right foot is planned to remain planted. The variants change step width or left-foot swing time.

This is the distribution home for VECTOR motion datasets. It packages the files previously maintained in a separate GitHub repository. The source files, checks, and model notice are preserved here from migration snapshot 50159f0fcd88c3c3a7bf5a4faddc08dcdfe2dfe1. This repository deliberately does not assign a license to the synthetic trajectories because the original distribution did not state one. The Unitree model notice is included in UNITREE-LICENSE.txt.

Kinematic replay of the baseline 12 cm left sidestep

Dataset contents

The clips viewer configuration opens clips.csv, an index for the three downloadable .npz trajectories. The file values in that table are repository-relative paths.

Clip Step width Left-foot swing time Duration Frames at 50 Hz
Baseline 12 cm 0.80 s 2.20 s 111
Wider step 18 cm 1.20 s 2.60 s 131
Faster step 12 cm 0.60 s 2.00 s 101

Schema

Each NPZ file contains time_s, joint_names, and joint_pos_rad. It also contains world-frame pelvis and torso positions and orientations in pelvis_pos_m, torso_pos_m, pelvis_quat_wxyz, and torso_quat_wxyz.

The coordinate axes are forward +X, left +Y, and up +Z. Positions use metres, joint positions use radians, and quaternions use WXYZ order. foot_contact_planned has left and right columns and represents the planned contact state used when generating these synthetic trajectories.

import numpy as np

with np.load("clips/sidestep_left_001.npz", allow_pickle=False) as clip:
    print(clip["joint_pos_rad"].shape)  # (111, 29)
    print(clip["foot_contact_planned"].sum(axis=0))  # [72, 111] frames

Kinematic checks

VECTOR generated the trajectories using inverse kinematics and replayed the saved poses in MuJoCo 4.0.1. Across all 343 frames, every recorded joint value remained within its G1 model limit. In the reference geometry, the right foot remains within the planned stance and the left foot clears the floor during its swing.

foot_contact_planned is a generation label. Measured contact forces, dynamic balance, learning performance, and physical-robot trials are not included. At a 1 mm geometric proximity threshold, a foot in swing can still be near the floor. The three clips have 8, 14, and 6 such left-foot swing frames respectively. See inspection.json for the exact frame records and inspect_clips.py for the calculation.

Reproduce the replay and checks

The original process used Python 3.12, MuJoCo 4.0.1, NumPy 2.5.5, GLFW 2.11.0, and the Unitree G1 model from MuJoCo Menagerie at commit eea4c7431b63da8278b0ff31638e0b0e941cec0e. A desktop with an OpenGL window is required for replay.

runtime=$(mktemp -d)
python3.12 -m venv "$runtime/venv"
. "$runtime/venv/bin/activate"
python -m pip install "mujoco==4.0.1" "numpy==2.5.5" "glfw==2.11.0"

git clone --filter=blob:none --sparse --no-checkout https://github.com/google-deepmind/mujoco_menagerie.git "$runtime/menagerie"
git -C "$runtime/menagerie" sparse-checkout set unitree_g1
git -C "$runtime/menagerie" checkout --detach eea4c7431b63da8278b0ff31638e0b0e941cec0e
scene="$runtime/menagerie/unitree_g1/scene.xml"

python replay.py clips/sidestep_left_001.npz --scene "$scene"
python inspect_clips.py --scene "$scene"

To generate the three trajectories again in a separate folder:

python generate.py --scene "$scene" --output "$runtime/regenerated"

Citation

@dataset{vector_g1_synthetic_sidestep,
  title = {VECTOR Unitree G1 Synthetic Sidestep},
  author = {Lee, Seokhee},
  year = {2026},
  note = {Three synthetic G1 reference trajectories with kinematic inspection records}
}