Download scripts/viz/g1.py from Tinghong-Ye22/code-HFD: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/Tinghong-Ye22/code-HFD/resolve/main/scripts/viz/g1.py
- Command line
-
hf download hf://Tinghong-Ye22/code-HFD/scripts/viz/g1.py
-
curl -L -o g1.py https://huggingface.co/Tinghong-Ye22/code-HFD/resolve/main/scripts/viz/g1.py
2.8 kB
| # Hand joint mapping (14 joints) | |
| HAND_JOINT_NAMES = [ | |
| "left_hand_thumb_0_joint", | |
| "left_hand_thumb_1_joint", | |
| "left_hand_thumb_2_joint", | |
| "left_hand_index_0_joint", | |
| "left_hand_index_1_joint", | |
| "left_hand_middle_0_joint", | |
| "left_hand_middle_1_joint", | |
| "right_hand_thumb_0_joint", | |
| "right_hand_thumb_1_joint", | |
| "right_hand_thumb_2_joint", | |
| "right_hand_index_0_joint", | |
| "right_hand_index_1_joint", | |
| "right_hand_middle_0_joint", | |
| "right_hand_middle_1_joint", | |
| ] | |
| # Arm joint mapping (14 joints) | |
| ARM_JOINT_NAMES = [ | |
| "left_shoulder_pitch_joint", | |
| "left_shoulder_roll_joint", | |
| "left_shoulder_yaw_joint", | |
| "left_elbow_joint", | |
| "left_wrist_roll_joint", | |
| "left_wrist_pitch_joint", | |
| "left_wrist_yaw_joint", | |
| "right_shoulder_pitch_joint", | |
| "right_shoulder_roll_joint", | |
| "right_shoulder_yaw_joint", | |
| "right_elbow_joint", | |
| "right_wrist_roll_joint", | |
| "right_wrist_pitch_joint", | |
| "right_wrist_yaw_joint", | |
| ] | |
| # Leg joint mapping (15 joints) | |
| LEG_JOINT_NAMES = [ | |
| "left_hip_pitch_joint", | |
| "left_hip_roll_joint", | |
| "left_hip_yaw_joint", | |
| "left_knee_joint", | |
| "left_ankle_pitch_joint", | |
| "left_ankle_roll_joint", | |
| "right_hip_pitch_joint", | |
| "right_hip_roll_joint", | |
| "right_hip_yaw_joint", | |
| "right_knee_joint", | |
| "right_ankle_pitch_joint", | |
| "right_ankle_roll_joint", | |
| # Waist joints | |
| "waist_yaw_joint", | |
| "waist_roll_joint", | |
| "waist_pitch_joint", | |
| ] | |
| LOCKED_MIXED = [ | |
| "left_hip_pitch_joint", | |
| "left_hip_roll_joint", | |
| "left_hip_yaw_joint", | |
| "left_knee_joint", | |
| "left_ankle_pitch_joint", | |
| "left_ankle_roll_joint", | |
| "right_hip_pitch_joint", | |
| "right_hip_roll_joint", | |
| "right_hip_yaw_joint", | |
| "right_knee_joint", | |
| "right_ankle_pitch_joint", | |
| "right_ankle_roll_joint", | |
| "waist_yaw_joint", | |
| "waist_roll_joint", | |
| "waist_pitch_joint", | |
| "left_hand_thumb_0_joint", | |
| "left_hand_thumb_1_joint", | |
| "left_hand_thumb_2_joint", | |
| "left_hand_middle_0_joint", | |
| "left_hand_middle_1_joint", | |
| "left_hand_index_0_joint", | |
| "left_hand_index_1_joint", | |
| "right_hand_thumb_0_joint", | |
| "right_hand_thumb_1_joint", | |
| "right_hand_thumb_2_joint", | |
| "right_hand_index_0_joint", | |
| "right_hand_index_1_joint", | |
| "right_hand_middle_0_joint", | |
| "right_hand_middle_1_joint", | |
| ] | |
| LOCKED_FINGERS_ONLY = [ | |
| "left_hand_thumb_0_joint", | |
| "left_hand_thumb_1_joint", | |
| "left_hand_thumb_2_joint", | |
| "left_hand_middle_0_joint", | |
| "left_hand_middle_1_joint", | |
| "left_hand_index_0_joint", | |
| "left_hand_index_1_joint", | |
| "right_hand_thumb_0_joint", | |
| "right_hand_thumb_1_joint", | |
| "right_hand_thumb_2_joint", | |
| "right_hand_index_0_joint", | |
| "right_hand_index_1_joint", | |
| "right_hand_middle_0_joint", | |
| "right_hand_middle_1_joint", | |
| ] | |