File size: 7,960 Bytes
8d2c039
 
 
 
d146ebe
8d2c039
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1f701a
 
 
 
 
 
 
8d2c039
 
d146ebe
8d2c039
3698e74
8d2c039
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453c39d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d2c039
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a314b91
8d2c039
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
---
license: other
license_name: multi-license-see-card
license_link: LICENSE
pretty_name: "Kine2Go: Kinematic dataset for the Unitree Go2 robot with diverse gaits and motions"
size_categories:
  - n<1K
task_categories:
  - robotics
  - reinforcement-learning
tags:
  - kine2go
  - quadruped
  - unitree-go2
  - motion-retargeting
  - imitation-learning
  - kinematic-dataset
  - mocap
  - genesis-simulator
  - ppo
  - gait
configs:
  - config_name: default
    data_files:
      - split: full
        path: data/*/traj_*/traj.mp4
      - split: review_sample
        path: review_sample/data/*/traj_*/traj.mp4
---

# Kine2Go: Kinematic dataset for the Unitree Go2 robot with diverse gaits and motions

A kinematic motion dataset for the Unitree Go2 quadruped robot. Forty reference clips (dog, horse, and synthetic robot motions) are retargeted to the Go2 morphology and paired with a per-clip imitation-learning policy (PPO) and 20 perturbed rollouts with rendered video. Designed to support training and regularization of behavioral foundation models for legged locomotion (Meta Motivo style), with secondary applicability to single-clip behavioral cloning and motion-retargeting evaluation.

Paper and pipeline-code links are omitted during anonymous review.

## At a glance

| | |
|---|---|
| Robot | Unitree Go2 (12 actuated joints) |
| Simulator | Genesis |
| Clips | 40 |
| Rollouts per clip | 20 |
| Total rollouts | 800 |
| Reference state dim | 61 (float32) |
| Control / sim FPS | 60 Hz |

## Quick start

```python
import sys; sys.path.insert(0, "scripts")
from load_clip import Clip, list_clips

for name in list_clips("."):
    print(name)

clip   = Clip(".", "ai4_dog_canter")
motion = clip.motion          # np.ndarray (T, 61) float32
config = clip.config          # env / obs / reward / command / policy configs
meta   = clip.metadata        # source, license, fps, n_frames, ...
frames = clip.rollout(0)      # list of per-step dicts (requires torch)
policy = clip.policy_path     # path to the trained PPO checkpoint
```

Validate a downloaded copy:

```bash
python scripts/verify_schema.py
```

## Reviewer sample

A lightweight reviewer sample is available under `review_sample/`. It contains two representative clips from each source morphology and two rollout directories per clip (`traj_0000` and `traj_0001`), preserving the same raw file formats as the full dataset while reducing download size.

The sample includes:

| Source morphology | Clips |
|---|---|
| AI4Animation natural dog mocap | `ai4_dog_canter`, `ai4_dog_right_turn` |
| AI4Animation synthetic motions | `ai4_dog_synth_circle_walk`, `ai4_dog_synth_half_flip_jump` |
| cassi/Solo8 robot motions | `solo8_jump_forward_a`, `solo8_crawl_fast` |
| Vienna Horse Data Collection | `vhdc_horse1_s1_trot_01`, `vhdc_horse1_s1_walk_01` |

Download only the reviewer sample:

```python
from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="kine2go-review/kine2go",
    repo_type="dataset",
    allow_patterns="review_sample/**",
)
```

## Per-clip layout

```
<clip_name>/
├── motion.npy           # (T, 61) float32 reference trajectory
├── config.json          # env / obs / reward / command / policy configs
├── cfgs.pkl             # same configs, pickle (for tooling)
├── clip.json            # per-clip metadata (source, license, n_frames, ...)
├── traj_NNNN/           # 20 perturbed PPO rollouts (NNNN = 0000..0019)
│   ├── init_state.pkl
│   ├── traj.pkl         # list of per-step frame dicts
│   └── traj.mp4         # rendered video
└── logs/
    └── model.pt         # final PPO checkpoint
```

## Subsets and licensing

Multi-license dataset. Each `clip.json` carries the authoritative per-clip license. Full license texts are in `LICENSES/`.

| Subset | Clip prefix | Clips | Rollouts | License |
|---|---|---|---|---|
| AI4Animation - natural dog mocap | `ai4_dog_*` (excl. `synth`) | 15 | 300 | CC BY-NC 4.0 |
| AI4Animation - synthetic via SIGGRAPH 2018 controller | `ai4_dog_synth_*` | 7 | 140 | CC BY-NC 4.0 |
| Vienna Horse Data Collection (Horse 1, two sessions) | `vhdc_horse1_*` | 12 | 240 | CC BY-SA 4.0 |
| cassi - Solo8 robot motions | `solo8_*` | 6 | 120 | BSD-3-Clause |

## Schema

### `motion.npy` (reference trajectory)

Shape `(T, 61)` float32. Per-frame layout:

| Slice | Field | Description |
|---|---|---|
| `[0:18]`  | `dofs_position` | 6 floating-base DOFs + 12 joint DOFs |
| `[18:36]` | `dofs_velocity` | matching DOF order |
| `[36:48]` | `feet_pos` | 4 feet × xyz, world frame |
| `[48:51]` | `base_pos` | world-frame xyz |
| `[51:55]` | `base_quat` | scalar-first quaternion (w, x, y, z) |
| `[55:58]` | `base_lin_vel` | linear velocity |
| `[58:61]` | `base_ang_vel` | angular velocity |

### `traj_NNNN/traj.pkl` (rollouts)

A `list` (one entry per simulator step). Each entry is a `dict[str, torch.Tensor]` with the following keys:

| Key | Shape | dtype | Description |
|---|---|---|---|
| `dof_pos` | (1, 12) | float32 | joint angles |
| `dof_vel` | (1, 12) | float32 | joint velocities |
| `base_quat` | (1, 4) | float32 | base orientation, scalar-first quaternion |
| `base_ang_vel` | (1, 3) | float32 | base angular velocity |
| `actions` | (1, 12) | float32 | PPO policy output |
| `frame` | (1,) | int32 | episode-relative simulator step counter |
| `links_pos` | (17, 3) | float32 | world-frame xyz per link |
| `links_rot` | (17, 6) | float32 | 6-d continuous rotation per link |

### Conventions

- Z-up coordinates (X forward, Y left, Z up).
- Linear units: meters; angular units: radians; quaternions are scalar-first.
- Joint order: `FR_hip, FR_thigh, FR_calf, FL_hip, FL_thigh, FL_calf, RR_hip, RR_thigh, RR_calf, RL_hip, RL_thigh, RL_calf`.
- Feet order (in `motion.npy[36:48]`): `FL_foot, RL_foot, FR_foot, RR_foot`.

The full machine-readable schema is in `metadata.json`.

## Collection and preprocessing

Source motions were retargeted to the Go2 12-DOF morphology and used to train per-clip imitation policies in the Genesis simulator:

- **AI4Animation - natural** (Zhang et al., SIGGRAPH 2018): dog mocap data.
- **AI4Animation - synthetic**: a custom trajectory collector was injected into the AI4Animation SIGGRAPH 2018 controller to drive the trained model along authored paths (circle, ellipse, figure-eight, square, strafes, and a half-flipping jump).
- **Vienna Horse Data Collection**: biomechanical horse kinematics across two measurement sessions × {walk, trot} × 3 repetitions.
- **cassi - Solo8** (Li et al., ICRA 2023): six trajectories from cassi's Solo8 motion bank (slow/fast crawl, scoot, walk, two jump variants).

Each retargeted reference was used to train a PPO policy (`rsl_rl_lib`) in Genesis with hyperparameters captured in `config.json`. After training, 20 perturbed rollouts were recorded per clip.

## Citations

Please cite the Kine2Go paper when referencing this dataset. Final citation metadata will be added after review. Also cite the upstream sources for whichever subsets you use.

```bibtex
% AI4Animation - applies to ai4_dog_* and ai4_dog_synth_*
@article{zhang2018modeadaptive,
  title   = {Mode-Adaptive Neural Networks for Quadruped Motion Control},
  author  = {Zhang, He and Starke, Sebastian and Komura, Taku and Saito, Jun},
  journal = {ACM Transactions on Graphics},
  year    = {2018}
}

% Vienna Horse Data Collection - applies to vhdc_horse1_*
@misc{vhdc,
  title = {Vienna Horse Data Collection (VHDC)},
  url   = {https://horse.cs.uni-bonn.de/vhdc-home.html}
}

% cassi - applies to solo8_*
@inproceedings{li2023versatile,
  title     = {Versatile Skill Control via Self-supervised Adversarial Imitation of Unlabeled Mixed Motions},
  author    = {Li, Chenhao and Blaes, Sebastian and Kolev, Pavel and Vlastelica, Marin and Frey, Jonas and Martius, Georg},
  booktitle = {IEEE International Conference on Robotics and Automation (ICRA)},
  year      = {2023}
}
```