Commit ·
02fb2e0
1
Parent(s): 06a46c5
update readme
Browse files
README.md
CHANGED
|
@@ -10,9 +10,37 @@ python scripts/bvh_to_robot_npz_dataset.py
|
|
| 10 |
--robot pnd_adam_sp \
|
| 11 |
--target_fps 30
|
| 12 |
```
|
| 13 |
-
The generated file is in <path_to_output_npz_file_folder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
## Step2:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
```bash
|
| 17 |
-
git clone
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
```
|
|
|
|
|
|
| 10 |
--robot pnd_adam_sp \
|
| 11 |
--target_fps 30
|
| 12 |
```
|
| 13 |
+
The generated file is in <path_to_output_npz_file_folder>.
|
| 14 |
+
|
| 15 |
+
The info in the generated motion data including:
|
| 16 |
+
|
| 17 |
+
"fps";
|
| 18 |
+
|
| 19 |
+
"root_pos";
|
| 20 |
+
|
| 21 |
+
"root_rot";
|
| 22 |
+
|
| 23 |
+
"dof_pos";
|
| 24 |
+
|
| 25 |
+
"dof_vel";
|
| 26 |
|
| 27 |
## Step2:
|
| 28 |
+
This step mainly do two things:
|
| 29 |
+
|
| 30 |
+
1.convert "dof_pos" and "dof_vel" in the motion data from step1 to "qpos" and "qvel"
|
| 31 |
+
|
| 32 |
+
2.interpolate the motion data to the target_fps
|
| 33 |
+
|
| 34 |
+
3.extend the motion data
|
| 35 |
+
|
| 36 |
```bash
|
| 37 |
+
git clone git@github.com:johnny09/loco-mujoco.git
|
| 38 |
+
cd loco-mujoco
|
| 39 |
+
python convert_custom_format_and_extend_new.py \
|
| 40 |
+
-b \
|
| 41 |
+
-i <path_to_input_motion_data_folder> \
|
| 42 |
+
-o <path_to_output_motion_data_folder> \
|
| 43 |
+
-of 50 \
|
| 44 |
+
--env PndAdamSp
|
| 45 |
```
|
| 46 |
+
|