Add puppet dataset files
Browse files- puppet_full_fast.mp4 +3 -0
- report.md +80 -0
puppet_full_fast.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1d801f70a792ee39f489bda21b03a5f4f71a6a2377e03693de20204228d8c84
|
| 3 |
+
size 346258
|
report.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
File dữ liệu đầu vào:
|
| 2 |
+
|
| 3 |
+
```text
|
| 4 |
+
../data.csv
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
Thống kê đã kiểm tra:
|
| 8 |
+
|
| 9 |
+
```text
|
| 10 |
+
Số frame: 3977
|
| 11 |
+
Số cột: 284
|
| 12 |
+
Số cột teleop joint: 27
|
| 13 |
+
Thời gian bắt đầu: 0.120286 s
|
| 14 |
+
Thời gian kết thúc: 83.270855 s
|
| 15 |
+
Tổng thời lượng: 83.150569 s
|
| 16 |
+
Median dt: 0.020887 s
|
| 17 |
+
FPS xấp xỉ: 47.8769
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
CSV có các nhóm dữ liệu quan trọng:
|
| 21 |
+
|
| 22 |
+
- `time`: timestamp của mỗi frame.
|
| 23 |
+
- `ts_teleop_pelvis:position_0/1/2`: vị trí pelvis/root.
|
| 24 |
+
- `ts_teleop_pelvis:quaternion_0/1/2/3`: hướng pelvis/root.
|
| 25 |
+
- `ts_teleop_*_joint:joint_angular_position`: góc joint để puppet robot.
|
| 26 |
+
|
| 27 |
+
Mapping thân trên:
|
| 28 |
+
|
| 29 |
+
```text
|
| 30 |
+
waist_yaw_joint -> ts_teleop_waist_yaw_joint:joint_angular_position
|
| 31 |
+
left_shoulder_pitch_joint -> ts_teleop_left_shoulder_pitch_joint:joint_angular_position
|
| 32 |
+
left_shoulder_roll_joint -> ts_teleop_left_shoulder_roll_joint:joint_angular_position
|
| 33 |
+
left_shoulder_yaw_joint -> ts_teleop_left_shoulder_yaw_joint:joint_angular_position
|
| 34 |
+
left_elbow_pitch_joint -> ts_teleop_left_elbow_pitch_joint:joint_angular_position
|
| 35 |
+
left_wrist_yaw_joint -> ts_teleop_left_wrist_yaw_joint:joint_angular_position
|
| 36 |
+
left_wrist_roll_joint -> ts_teleop_left_wrist_roll_joint:joint_angular_position
|
| 37 |
+
left_wrist_pitch_joint -> ts_teleop_left_wrist_pitch_joint:joint_angular_position
|
| 38 |
+
right_shoulder_pitch_joint -> ts_teleop_right_shoulder_pitch_joint:joint_angular_position
|
| 39 |
+
right_shoulder_roll_joint -> ts_teleop_right_shoulder_roll_joint:joint_angular_position
|
| 40 |
+
right_shoulder_yaw_joint -> ts_teleop_right_shoulder_yaw_joint:joint_angular_position
|
| 41 |
+
right_elbow_pitch_joint -> ts_teleop_right_elbow_pitch_joint:joint_angular_position
|
| 42 |
+
right_wrist_yaw_joint -> ts_teleop_right_wrist_yaw_joint:joint_angular_position
|
| 43 |
+
right_wrist_roll_joint -> ts_teleop_right_wrist_roll_joint:joint_angular_position
|
| 44 |
+
right_wrist_pitch_joint -> ts_teleop_right_wrist_pitch_joint:joint_angular_position
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
Mặc định, root pose của robot lấy từ pelvis trong CSV:
|
| 48 |
+
|
| 49 |
+
```text
|
| 50 |
+
ts_teleop_pelvis:position_0
|
| 51 |
+
ts_teleop_pelvis:position_1
|
| 52 |
+
ts_teleop_pelvis:position_2
|
| 53 |
+
ts_teleop_pelvis:quaternion_0
|
| 54 |
+
ts_teleop_pelvis:quaternion_1
|
| 55 |
+
ts_teleop_pelvis:quaternion_2
|
| 56 |
+
ts_teleop_pelvis:quaternion_3
|
| 57 |
+
```
|
| 58 |
+
1. Lấy root position mỗi frame.
|
| 59 |
+
2. Trừ offset XY của frame đầu tiên để robot bắt đầu gần gốc tọa độ.
|
| 60 |
+
3. Giữ trục Z theo data để robot có độ cao pelvis thật.
|
| 61 |
+
4. Normalize quaternion để tránh lỗi orientation.
|
| 62 |
+
5. Nếu quaternion có `w < 0`, đổi dấu cả quaternion để biểu diễn nhất quán.
|
| 63 |
+
|
| 64 |
+
Xử Lý Joint Limit
|
| 65 |
+
|
| 66 |
+
Một số joint thân trên trong CSV có thể vượt joint limit của model full, đặc biệt:
|
| 67 |
+
|
| 68 |
+
- shoulder roll
|
| 69 |
+
- elbow pitch
|
| 70 |
+
|
| 71 |
+
Để đảm bảo MuJoCo nhận pose hợp lệ, mỗi giá trị joint được clamp:
|
| 72 |
+
|
| 73 |
+
```python
|
| 74 |
+
value = np.clip(raw_value, lower, upper)
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
Trong đó `lower` và `upper` lấy trực tiếp từ `model.jnt_range`.
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|