Download README.md from TerrainHumanoids/TerrainExampleDataset: direct link, hf CLI and curl.
- Browser
- Download file 3.09 kB
-
https://huggingface.co/datasets/TerrainHumanoids/TerrainExampleDataset/resolve/main/README.md
- Command line
-
hf download hf://datasets/TerrainHumanoids/TerrainExampleDataset/README.md
-
curl -L -o README.md https://huggingface.co/datasets/TerrainHumanoids/TerrainExampleDataset/resolve/main/README.md
Terrain Example Dataset
This dataset shows how to organize Unitree G1 reference trajectories and MuJoCo scenes for use in wbc-mjlab. It contains four trajectories from LaFAN1 and 21 adapted GRAIL clips with matching scenes.
Directory layout
manifest.json # Data format and GRAIL clip index
assets/ # Shared STL and OBJ meshes
clips/
├── lafan/
│ └── <clip>/motion.csv # Robot trajectory
└── grail/
└── <category>/<clip>/
├── motion.csv # Robot trajectory
├── object.csv # Per-frame object poses
├── scene.xml # MuJoCo scene with the robot and object
└── record.json # Clip metadata
| Source | Contents | Clips |
|---|---|---|
| LaFAN1 | dance1_subject1, fallAndGetUp1_subject1, fight1_subject2, walk1_subject1 |
4 |
| GRAIL | Curbs (curb), slopes (slope), and sitting on chairs (sitting) |
9 |
| GRAIL | Stairs (stair_p1–stair_p4) |
12 |
Data format
The manifest describes format version 2. Positions are in meters, and Z is the up axis. Each CSV row represents one frame. The files have no header row.
| File | Column order |
|---|---|
motion.csv |
Root pose x, y, z, qx, qy, qz, qw, followed by 29 joint positions in the manifest's joint_names order |
object.csv |
Object pose x, y, z, qx, qy, qz, qw |
CSV quaternions use xyzw order. MJCF uses wxyz order. Reorder the components when passing an orientation from a CSV file to MuJoCo.
In GRAIL clips, the robot and object trajectories are aligned by row index. All GRAIL clips in this dataset run at 25 Hz and have static scene objects. Each record.json stores the frame rate, frame count, MJCF object body name, and export settings, including collision mesh details.
Using the dataset in wbc-mjlab
- For GRAIL, select a clip by its
idin theclipsarray in manifest.json. Themotion,scene, andobject_motionpaths are relative to the dataset root. For LaFAN1, loadmotion.csvdirectly fromclips/lafan/<clip>/. The manifest only lists GRAIL clips, so it does not specify the LaFAN1 frame rate. - For a GRAIL clip, load
scene.xmlin MuJoCo and initialize it from keyframe 0 withmj_resetDataKeyframe(model, data, 0). Keepassets/in its original location relative to the clip directories so MuJoCo can resolve the mesh paths. - When loading the reference trajectory, use the clip's frame rate and map the joint columns to the robot's joints by name using
joint_names.
Sources
- The LaFAN1 trajectories are provided as Unitree G1 CSV files. Original Ubisoft La Forge dataset
- The GRAIL trajectories and geometry were adapted for MuJoCo scenes. Original NVIDIA GRAIL dataset