# 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 ```text manifest.json # Data format and GRAIL clip index assets/ # Shared STL and OBJ meshes clips/ ├── lafan/ │ └── /motion.csv # Robot trajectory └── grail/ └── // ├── 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 1. For GRAIL, select a clip by its `id` in the `clips` array in [manifest.json](manifest.json). The `motion`, `scene`, and `object_motion` paths are relative to the dataset root. For LaFAN1, load `motion.csv` directly from `clips/lafan//`. The manifest only lists GRAIL clips, so it does not specify the LaFAN1 frame rate. 2. For a GRAIL clip, load `scene.xml` in MuJoCo and initialize it from keyframe 0 with `mj_resetDataKeyframe(model, data, 0)`. Keep `assets/` in its original location relative to the clip directories so MuJoCo can resolve the mesh paths. 3. 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](https://github.com/ubisoft/ubisoft-laforge-animation-dataset) - The GRAIL trajectories and geometry were adapted for MuJoCo scenes. [Original NVIDIA GRAIL dataset](https://huggingface.co/datasets/nvidia/PhysicalAI-Robotics-Locomanipulation-GRAIL) --- license: other license_name: mixed-licenses license_link: LICENSE ---