diff --git a/README.md b/README.md index 5446f6c..eaa9507 100644 --- a/README.md +++ b/README.md @@ -129,17 +129,22 @@ settings > Apps > Safari > Advanced > Feature Flags > Enable WebXR Related Featu ## Dexterous hands service -On Unitree H1_2's PC, execute command: +You can refer to Dexterous Hand Development to configure related environments and compile control programs. First, use [this URL](https://oss-global-cdn.unitree.com/static/0a8335f7498548d28412c31ea047d4be.zip) to download the dexterous hand control interface program and copy it to PC of Unitree H1_2. On Unitree H1_2's PC, execute command: ```bash +sudo apt install libboost-all-dev libspdlog-dev +# Build project +cd h1_inspire_service & mkdir build & cd build +cmake .. -DCMAKE_BUILD_TYPE=Release +make +# Terminal 1. Run h1 inspire hand service sudo ./inspire_hand -s /dev/ttyUSB0 +# Terminal 2. Run example +./h1_hand_example ``` -Open another terminal and execute the following command to test. If two hands open and close continuously, it indicates success. +If two hands open and close continuously, it indicates success. Once successful, close the `./h1_hand_example` program in Terminal 2. -```bash -./h1_hand_example -``` ## Image Server @@ -157,6 +162,8 @@ python image_client.py ## Start +> Warning : Before the program starts, all persons must maintain an adequate safety distance from the robot to avoid danger! + ```bash python unitree_human_robot.py ``` diff --git a/assets/H1_5/README.md b/assets/h1_2/README.md similarity index 99% rename from assets/H1_5/README.md rename to assets/h1_2/README.md index b9c139b..6e8f8c5 100644 --- a/assets/H1_5/README.md +++ b/assets/h1_2/README.md @@ -5,7 +5,7 @@ This package includes a streamlined robot description (URDF & MJCF) for the [Unitree H1](https://www.unitree.com/h1/), developed by [Unitree Robotics](https://www.unitree.com/).

- +

Unitree H1 have 51 DOFs: diff --git a/assets/H1_5/h1_5.urdf b/assets/h1_2/h1_2.urdf similarity index 95% rename from assets/H1_5/h1_5.urdf rename to assets/h1_2/h1_2.urdf index 789729c..c3ea576 100644 --- a/assets/H1_5/h1_5.urdf +++ b/assets/h1_2/h1_2.urdf @@ -1,4 +1,4 @@ - + @@ -22,7 +22,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -75,7 +75,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -133,7 +133,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -191,7 +191,7 @@ - + @@ -222,7 +222,7 @@ - + @@ -251,7 +251,7 @@ - + @@ -280,7 +280,7 @@ - + @@ -309,7 +309,7 @@ - + @@ -338,7 +338,7 @@ - + @@ -367,7 +367,7 @@ - + @@ -398,7 +398,7 @@ - + @@ -429,7 +429,7 @@ - + @@ -458,7 +458,7 @@ - + @@ -487,7 +487,7 @@ - + @@ -503,7 +503,7 @@ - + @@ -516,7 +516,7 @@ - + @@ -532,7 +532,7 @@ - + @@ -546,7 +546,7 @@ - + @@ -561,7 +561,7 @@ - + @@ -575,7 +575,7 @@ - + @@ -590,7 +590,7 @@ - + @@ -603,7 +603,7 @@ - + @@ -619,7 +619,7 @@ - + @@ -634,7 +634,7 @@ - + @@ -650,7 +650,7 @@ - + @@ -663,7 +663,7 @@ - + @@ -693,7 +693,7 @@ - + @@ -709,7 +709,7 @@ - + @@ -722,7 +722,7 @@ - + @@ -738,7 +738,7 @@ - + @@ -752,7 +752,7 @@ - + @@ -767,7 +767,7 @@ - + @@ -781,7 +781,7 @@ - + @@ -796,7 +796,7 @@ - + @@ -809,7 +809,7 @@ - + @@ -825,7 +825,7 @@ - + @@ -835,7 +835,7 @@ - + @@ -872,7 +872,7 @@ - + @@ -894,7 +894,7 @@ - + @@ -923,7 +923,7 @@ - + @@ -952,7 +952,7 @@ - + @@ -982,7 +982,7 @@ - + @@ -1012,7 +1012,7 @@ - + @@ -1041,7 +1041,7 @@ - + @@ -1071,7 +1071,7 @@ - + @@ -1100,7 +1100,7 @@ - + @@ -1130,7 +1130,7 @@ - + @@ -1159,7 +1159,7 @@ - + @@ -1189,7 +1189,7 @@ - + @@ -1218,7 +1218,7 @@ - + @@ -1255,7 +1255,7 @@ - + @@ -1277,7 +1277,7 @@ - + @@ -1306,7 +1306,7 @@ - + @@ -1335,7 +1335,7 @@ - + @@ -1365,7 +1365,7 @@ - + @@ -1395,7 +1395,7 @@ - + @@ -1424,7 +1424,7 @@ - + @@ -1454,7 +1454,7 @@ - + @@ -1483,7 +1483,7 @@ - + @@ -1513,7 +1513,7 @@ - + @@ -1542,7 +1542,7 @@ - + @@ -1572,7 +1572,7 @@ - + @@ -1601,7 +1601,7 @@ - + diff --git a/assets/H1_5/h1_5.xml b/assets/h1_2/h1_2.xml similarity index 83% rename from assets/H1_5/h1_5.xml rename to assets/h1_2/h1_2.xml index d946402..00ee6b0 100644 --- a/assets/H1_5/h1_5.xml +++ b/assets/h1_2/h1_2.xml @@ -1,4 +1,4 @@ - + @@ -60,37 +60,37 @@ - + - + - + - + - + - + - + @@ -101,32 +101,32 @@ - + - + - + - + - + - + @@ -137,65 +137,65 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -204,48 +204,48 @@ - + - + - + - + - + - + - + - + @@ -259,58 +259,58 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -319,48 +319,48 @@ - + - + - + - + - + - + - + - + @@ -378,57 +378,57 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/h1_2/h1_2_simplified.urdf b/assets/h1_2/h1_2_simplified.urdf new file mode 100644 index 0000000..9129dcc --- /dev/null +++ b/assets/h1_2/h1_2_simplified.urdf @@ -0,0 +1,1369 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/H1_5/meshes/L_hand_base_link.STL b/assets/h1_2/meshes/L_hand_base_link.STL similarity index 100% rename from assets/H1_5/meshes/L_hand_base_link.STL rename to assets/h1_2/meshes/L_hand_base_link.STL diff --git a/assets/H1_5/meshes/L_index_intermediate.STL b/assets/h1_2/meshes/L_index_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/L_index_intermediate.STL rename to assets/h1_2/meshes/L_index_intermediate.STL diff --git a/assets/H1_5/meshes/L_index_proximal.STL b/assets/h1_2/meshes/L_index_proximal.STL similarity index 100% rename from assets/H1_5/meshes/L_index_proximal.STL rename to assets/h1_2/meshes/L_index_proximal.STL diff --git a/assets/H1_5/meshes/L_middle_intermediate.STL b/assets/h1_2/meshes/L_middle_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/L_middle_intermediate.STL rename to assets/h1_2/meshes/L_middle_intermediate.STL diff --git a/assets/H1_5/meshes/L_middle_proximal.STL b/assets/h1_2/meshes/L_middle_proximal.STL similarity index 100% rename from assets/H1_5/meshes/L_middle_proximal.STL rename to assets/h1_2/meshes/L_middle_proximal.STL diff --git a/assets/H1_5/meshes/L_pinky_intermediate.STL b/assets/h1_2/meshes/L_pinky_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/L_pinky_intermediate.STL rename to assets/h1_2/meshes/L_pinky_intermediate.STL diff --git a/assets/H1_5/meshes/L_pinky_proximal.STL b/assets/h1_2/meshes/L_pinky_proximal.STL similarity index 100% rename from assets/H1_5/meshes/L_pinky_proximal.STL rename to assets/h1_2/meshes/L_pinky_proximal.STL diff --git a/assets/H1_5/meshes/L_ring_intermediate.STL b/assets/h1_2/meshes/L_ring_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/L_ring_intermediate.STL rename to assets/h1_2/meshes/L_ring_intermediate.STL diff --git a/assets/H1_5/meshes/L_ring_proximal.STL b/assets/h1_2/meshes/L_ring_proximal.STL similarity index 100% rename from assets/H1_5/meshes/L_ring_proximal.STL rename to assets/h1_2/meshes/L_ring_proximal.STL diff --git a/assets/H1_5/meshes/L_thumb_distal.STL b/assets/h1_2/meshes/L_thumb_distal.STL similarity index 100% rename from assets/H1_5/meshes/L_thumb_distal.STL rename to assets/h1_2/meshes/L_thumb_distal.STL diff --git a/assets/H1_5/meshes/L_thumb_intermediate.STL b/assets/h1_2/meshes/L_thumb_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/L_thumb_intermediate.STL rename to assets/h1_2/meshes/L_thumb_intermediate.STL diff --git a/assets/H1_5/meshes/L_thumb_proximal.STL b/assets/h1_2/meshes/L_thumb_proximal.STL similarity index 100% rename from assets/H1_5/meshes/L_thumb_proximal.STL rename to assets/h1_2/meshes/L_thumb_proximal.STL diff --git a/assets/H1_5/meshes/L_thumb_proximal_base.STL b/assets/h1_2/meshes/L_thumb_proximal_base.STL similarity index 100% rename from assets/H1_5/meshes/L_thumb_proximal_base.STL rename to assets/h1_2/meshes/L_thumb_proximal_base.STL diff --git a/assets/H1_5/meshes/R_hand_base_link.STL b/assets/h1_2/meshes/R_hand_base_link.STL similarity index 100% rename from assets/H1_5/meshes/R_hand_base_link.STL rename to assets/h1_2/meshes/R_hand_base_link.STL diff --git a/assets/H1_5/meshes/R_index_intermediate.STL b/assets/h1_2/meshes/R_index_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/R_index_intermediate.STL rename to assets/h1_2/meshes/R_index_intermediate.STL diff --git a/assets/H1_5/meshes/R_index_proximal.STL b/assets/h1_2/meshes/R_index_proximal.STL similarity index 100% rename from assets/H1_5/meshes/R_index_proximal.STL rename to assets/h1_2/meshes/R_index_proximal.STL diff --git a/assets/H1_5/meshes/R_middle_intermediate.STL b/assets/h1_2/meshes/R_middle_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/R_middle_intermediate.STL rename to assets/h1_2/meshes/R_middle_intermediate.STL diff --git a/assets/H1_5/meshes/R_middle_proximal.STL b/assets/h1_2/meshes/R_middle_proximal.STL similarity index 100% rename from assets/H1_5/meshes/R_middle_proximal.STL rename to assets/h1_2/meshes/R_middle_proximal.STL diff --git a/assets/H1_5/meshes/R_pinky_intermediate.STL b/assets/h1_2/meshes/R_pinky_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/R_pinky_intermediate.STL rename to assets/h1_2/meshes/R_pinky_intermediate.STL diff --git a/assets/H1_5/meshes/R_pinky_proximal.STL b/assets/h1_2/meshes/R_pinky_proximal.STL similarity index 100% rename from assets/H1_5/meshes/R_pinky_proximal.STL rename to assets/h1_2/meshes/R_pinky_proximal.STL diff --git a/assets/H1_5/meshes/R_ring_intermediate.STL b/assets/h1_2/meshes/R_ring_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/R_ring_intermediate.STL rename to assets/h1_2/meshes/R_ring_intermediate.STL diff --git a/assets/H1_5/meshes/R_ring_proximal.STL b/assets/h1_2/meshes/R_ring_proximal.STL similarity index 100% rename from assets/H1_5/meshes/R_ring_proximal.STL rename to assets/h1_2/meshes/R_ring_proximal.STL diff --git a/assets/H1_5/meshes/R_thumb_distal.STL b/assets/h1_2/meshes/R_thumb_distal.STL similarity index 100% rename from assets/H1_5/meshes/R_thumb_distal.STL rename to assets/h1_2/meshes/R_thumb_distal.STL diff --git a/assets/H1_5/meshes/R_thumb_intermediate.STL b/assets/h1_2/meshes/R_thumb_intermediate.STL similarity index 100% rename from assets/H1_5/meshes/R_thumb_intermediate.STL rename to assets/h1_2/meshes/R_thumb_intermediate.STL diff --git a/assets/H1_5/meshes/R_thumb_proximal.STL b/assets/h1_2/meshes/R_thumb_proximal.STL similarity index 100% rename from assets/H1_5/meshes/R_thumb_proximal.STL rename to assets/h1_2/meshes/R_thumb_proximal.STL diff --git a/assets/H1_5/meshes/R_thumb_proximal_base.STL b/assets/h1_2/meshes/R_thumb_proximal_base.STL similarity index 100% rename from assets/H1_5/meshes/R_thumb_proximal_base.STL rename to assets/h1_2/meshes/R_thumb_proximal_base.STL diff --git a/assets/H1_5/meshes/left_ankle_A_link.STL b/assets/h1_2/meshes/left_ankle_A_link.STL similarity index 100% rename from assets/H1_5/meshes/left_ankle_A_link.STL rename to assets/h1_2/meshes/left_ankle_A_link.STL diff --git a/assets/H1_5/meshes/left_ankle_A_rod_link.STL b/assets/h1_2/meshes/left_ankle_A_rod_link.STL similarity index 100% rename from assets/H1_5/meshes/left_ankle_A_rod_link.STL rename to assets/h1_2/meshes/left_ankle_A_rod_link.STL diff --git a/assets/H1_5/meshes/left_ankle_B_link.STL b/assets/h1_2/meshes/left_ankle_B_link.STL similarity index 100% rename from assets/H1_5/meshes/left_ankle_B_link.STL rename to assets/h1_2/meshes/left_ankle_B_link.STL diff --git a/assets/H1_5/meshes/left_ankle_B_rod_link.STL b/assets/h1_2/meshes/left_ankle_B_rod_link.STL similarity index 100% rename from assets/H1_5/meshes/left_ankle_B_rod_link.STL rename to assets/h1_2/meshes/left_ankle_B_rod_link.STL diff --git a/assets/H1_5/meshes/left_ankle_pitch_link.STL b/assets/h1_2/meshes/left_ankle_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/left_ankle_pitch_link.STL rename to assets/h1_2/meshes/left_ankle_pitch_link.STL diff --git a/assets/H1_5/meshes/left_ankle_roll_link.STL b/assets/h1_2/meshes/left_ankle_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/left_ankle_roll_link.STL rename to assets/h1_2/meshes/left_ankle_roll_link.STL diff --git a/assets/H1_5/meshes/left_elbow_pitch_link.STL b/assets/h1_2/meshes/left_elbow_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/left_elbow_pitch_link.STL rename to assets/h1_2/meshes/left_elbow_pitch_link.STL diff --git a/assets/H1_5/meshes/left_elbow_roll_link.STL b/assets/h1_2/meshes/left_elbow_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/left_elbow_roll_link.STL rename to assets/h1_2/meshes/left_elbow_roll_link.STL diff --git a/assets/H1_5/meshes/left_hand_link.STL b/assets/h1_2/meshes/left_hand_link.STL similarity index 100% rename from assets/H1_5/meshes/left_hand_link.STL rename to assets/h1_2/meshes/left_hand_link.STL diff --git a/assets/H1_5/meshes/left_hip_pitch_link.STL b/assets/h1_2/meshes/left_hip_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/left_hip_pitch_link.STL rename to assets/h1_2/meshes/left_hip_pitch_link.STL diff --git a/assets/H1_5/meshes/left_hip_roll_link.STL b/assets/h1_2/meshes/left_hip_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/left_hip_roll_link.STL rename to assets/h1_2/meshes/left_hip_roll_link.STL diff --git a/assets/H1_5/meshes/left_hip_yaw_link.STL b/assets/h1_2/meshes/left_hip_yaw_link.STL similarity index 100% rename from assets/H1_5/meshes/left_hip_yaw_link.STL rename to assets/h1_2/meshes/left_hip_yaw_link.STL diff --git a/assets/H1_5/meshes/left_knee_link.STL b/assets/h1_2/meshes/left_knee_link.STL similarity index 100% rename from assets/H1_5/meshes/left_knee_link.STL rename to assets/h1_2/meshes/left_knee_link.STL diff --git a/assets/H1_5/meshes/left_shoulder_pitch_link.STL b/assets/h1_2/meshes/left_shoulder_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/left_shoulder_pitch_link.STL rename to assets/h1_2/meshes/left_shoulder_pitch_link.STL diff --git a/assets/H1_5/meshes/left_shoulder_roll_link.STL b/assets/h1_2/meshes/left_shoulder_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/left_shoulder_roll_link.STL rename to assets/h1_2/meshes/left_shoulder_roll_link.STL diff --git a/assets/H1_5/meshes/left_shoulder_yaw_link.STL b/assets/h1_2/meshes/left_shoulder_yaw_link.STL similarity index 100% rename from assets/H1_5/meshes/left_shoulder_yaw_link.STL rename to assets/h1_2/meshes/left_shoulder_yaw_link.STL diff --git a/assets/H1_5/meshes/left_wrist_pitch_link.STL b/assets/h1_2/meshes/left_wrist_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/left_wrist_pitch_link.STL rename to assets/h1_2/meshes/left_wrist_pitch_link.STL diff --git a/assets/H1_5/meshes/link11_L.STL b/assets/h1_2/meshes/link11_L.STL similarity index 100% rename from assets/H1_5/meshes/link11_L.STL rename to assets/h1_2/meshes/link11_L.STL diff --git a/assets/H1_5/meshes/link11_R.STL b/assets/h1_2/meshes/link11_R.STL similarity index 100% rename from assets/H1_5/meshes/link11_R.STL rename to assets/h1_2/meshes/link11_R.STL diff --git a/assets/H1_5/meshes/link12_L.STL b/assets/h1_2/meshes/link12_L.STL similarity index 100% rename from assets/H1_5/meshes/link12_L.STL rename to assets/h1_2/meshes/link12_L.STL diff --git a/assets/H1_5/meshes/link12_R.STL b/assets/h1_2/meshes/link12_R.STL similarity index 100% rename from assets/H1_5/meshes/link12_R.STL rename to assets/h1_2/meshes/link12_R.STL diff --git a/assets/H1_5/meshes/link13_L.STL b/assets/h1_2/meshes/link13_L.STL similarity index 100% rename from assets/H1_5/meshes/link13_L.STL rename to assets/h1_2/meshes/link13_L.STL diff --git a/assets/H1_5/meshes/link13_R.STL b/assets/h1_2/meshes/link13_R.STL similarity index 100% rename from assets/H1_5/meshes/link13_R.STL rename to assets/h1_2/meshes/link13_R.STL diff --git a/assets/H1_5/meshes/link14_L.STL b/assets/h1_2/meshes/link14_L.STL similarity index 100% rename from assets/H1_5/meshes/link14_L.STL rename to assets/h1_2/meshes/link14_L.STL diff --git a/assets/H1_5/meshes/link14_R.STL b/assets/h1_2/meshes/link14_R.STL similarity index 100% rename from assets/H1_5/meshes/link14_R.STL rename to assets/h1_2/meshes/link14_R.STL diff --git a/assets/H1_5/meshes/link15_L.STL b/assets/h1_2/meshes/link15_L.STL similarity index 100% rename from assets/H1_5/meshes/link15_L.STL rename to assets/h1_2/meshes/link15_L.STL diff --git a/assets/H1_5/meshes/link15_R.STL b/assets/h1_2/meshes/link15_R.STL similarity index 100% rename from assets/H1_5/meshes/link15_R.STL rename to assets/h1_2/meshes/link15_R.STL diff --git a/assets/H1_5/meshes/link16_L.STL b/assets/h1_2/meshes/link16_L.STL similarity index 100% rename from assets/H1_5/meshes/link16_L.STL rename to assets/h1_2/meshes/link16_L.STL diff --git a/assets/H1_5/meshes/link16_R.STL b/assets/h1_2/meshes/link16_R.STL similarity index 100% rename from assets/H1_5/meshes/link16_R.STL rename to assets/h1_2/meshes/link16_R.STL diff --git a/assets/H1_5/meshes/link17_L.STL b/assets/h1_2/meshes/link17_L.STL similarity index 100% rename from assets/H1_5/meshes/link17_L.STL rename to assets/h1_2/meshes/link17_L.STL diff --git a/assets/H1_5/meshes/link17_R.STL b/assets/h1_2/meshes/link17_R.STL similarity index 100% rename from assets/H1_5/meshes/link17_R.STL rename to assets/h1_2/meshes/link17_R.STL diff --git a/assets/H1_5/meshes/link18_L.STL b/assets/h1_2/meshes/link18_L.STL similarity index 100% rename from assets/H1_5/meshes/link18_L.STL rename to assets/h1_2/meshes/link18_L.STL diff --git a/assets/H1_5/meshes/link18_R.STL b/assets/h1_2/meshes/link18_R.STL similarity index 100% rename from assets/H1_5/meshes/link18_R.STL rename to assets/h1_2/meshes/link18_R.STL diff --git a/assets/H1_5/meshes/link19_L.STL b/assets/h1_2/meshes/link19_L.STL similarity index 100% rename from assets/H1_5/meshes/link19_L.STL rename to assets/h1_2/meshes/link19_L.STL diff --git a/assets/H1_5/meshes/link19_R.STL b/assets/h1_2/meshes/link19_R.STL similarity index 100% rename from assets/H1_5/meshes/link19_R.STL rename to assets/h1_2/meshes/link19_R.STL diff --git a/assets/H1_5/meshes/link20_L.STL b/assets/h1_2/meshes/link20_L.STL similarity index 100% rename from assets/H1_5/meshes/link20_L.STL rename to assets/h1_2/meshes/link20_L.STL diff --git a/assets/H1_5/meshes/link20_R.STL b/assets/h1_2/meshes/link20_R.STL similarity index 100% rename from assets/H1_5/meshes/link20_R.STL rename to assets/h1_2/meshes/link20_R.STL diff --git a/assets/H1_5/meshes/link21_L.STL b/assets/h1_2/meshes/link21_L.STL similarity index 100% rename from assets/H1_5/meshes/link21_L.STL rename to assets/h1_2/meshes/link21_L.STL diff --git a/assets/H1_5/meshes/link21_R.STL b/assets/h1_2/meshes/link21_R.STL similarity index 100% rename from assets/H1_5/meshes/link21_R.STL rename to assets/h1_2/meshes/link21_R.STL diff --git a/assets/H1_5/meshes/link22_L.STL b/assets/h1_2/meshes/link22_L.STL similarity index 100% rename from assets/H1_5/meshes/link22_L.STL rename to assets/h1_2/meshes/link22_L.STL diff --git a/assets/H1_5/meshes/link22_R.STL b/assets/h1_2/meshes/link22_R.STL similarity index 100% rename from assets/H1_5/meshes/link22_R.STL rename to assets/h1_2/meshes/link22_R.STL diff --git a/assets/H1_5/meshes/logo_link.STL b/assets/h1_2/meshes/logo_link.STL similarity index 100% rename from assets/H1_5/meshes/logo_link.STL rename to assets/h1_2/meshes/logo_link.STL diff --git a/assets/H1_5/meshes/pelvis.STL b/assets/h1_2/meshes/pelvis.STL similarity index 100% rename from assets/H1_5/meshes/pelvis.STL rename to assets/h1_2/meshes/pelvis.STL diff --git a/assets/H1_5/meshes/right_ankle_A_link.STL b/assets/h1_2/meshes/right_ankle_A_link.STL similarity index 100% rename from assets/H1_5/meshes/right_ankle_A_link.STL rename to assets/h1_2/meshes/right_ankle_A_link.STL diff --git a/assets/H1_5/meshes/right_ankle_A_rod_link.STL b/assets/h1_2/meshes/right_ankle_A_rod_link.STL similarity index 100% rename from assets/H1_5/meshes/right_ankle_A_rod_link.STL rename to assets/h1_2/meshes/right_ankle_A_rod_link.STL diff --git a/assets/H1_5/meshes/right_ankle_B_link.STL b/assets/h1_2/meshes/right_ankle_B_link.STL similarity index 100% rename from assets/H1_5/meshes/right_ankle_B_link.STL rename to assets/h1_2/meshes/right_ankle_B_link.STL diff --git a/assets/H1_5/meshes/right_ankle_B_rod_link.STL b/assets/h1_2/meshes/right_ankle_B_rod_link.STL similarity index 100% rename from assets/H1_5/meshes/right_ankle_B_rod_link.STL rename to assets/h1_2/meshes/right_ankle_B_rod_link.STL diff --git a/assets/H1_5/meshes/right_ankle_link.STL b/assets/h1_2/meshes/right_ankle_link.STL similarity index 100% rename from assets/H1_5/meshes/right_ankle_link.STL rename to assets/h1_2/meshes/right_ankle_link.STL diff --git a/assets/H1_5/meshes/right_ankle_pitch_link.STL b/assets/h1_2/meshes/right_ankle_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/right_ankle_pitch_link.STL rename to assets/h1_2/meshes/right_ankle_pitch_link.STL diff --git a/assets/H1_5/meshes/right_ankle_roll_link.STL b/assets/h1_2/meshes/right_ankle_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/right_ankle_roll_link.STL rename to assets/h1_2/meshes/right_ankle_roll_link.STL diff --git a/assets/H1_5/meshes/right_elbow_pitch_link.STL b/assets/h1_2/meshes/right_elbow_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/right_elbow_pitch_link.STL rename to assets/h1_2/meshes/right_elbow_pitch_link.STL diff --git a/assets/H1_5/meshes/right_elbow_roll_link.STL b/assets/h1_2/meshes/right_elbow_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/right_elbow_roll_link.STL rename to assets/h1_2/meshes/right_elbow_roll_link.STL diff --git a/assets/H1_5/meshes/right_hand_link.STL b/assets/h1_2/meshes/right_hand_link.STL similarity index 100% rename from assets/H1_5/meshes/right_hand_link.STL rename to assets/h1_2/meshes/right_hand_link.STL diff --git a/assets/H1_5/meshes/right_hip_pitch_link.STL b/assets/h1_2/meshes/right_hip_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/right_hip_pitch_link.STL rename to assets/h1_2/meshes/right_hip_pitch_link.STL diff --git a/assets/H1_5/meshes/right_hip_roll_link.STL b/assets/h1_2/meshes/right_hip_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/right_hip_roll_link.STL rename to assets/h1_2/meshes/right_hip_roll_link.STL diff --git a/assets/H1_5/meshes/right_hip_yaw_link.STL b/assets/h1_2/meshes/right_hip_yaw_link.STL similarity index 100% rename from assets/H1_5/meshes/right_hip_yaw_link.STL rename to assets/h1_2/meshes/right_hip_yaw_link.STL diff --git a/assets/H1_5/meshes/right_knee_link.STL b/assets/h1_2/meshes/right_knee_link.STL similarity index 100% rename from assets/H1_5/meshes/right_knee_link.STL rename to assets/h1_2/meshes/right_knee_link.STL diff --git a/assets/H1_5/meshes/right_pitch_link.STL b/assets/h1_2/meshes/right_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/right_pitch_link.STL rename to assets/h1_2/meshes/right_pitch_link.STL diff --git a/assets/H1_5/meshes/right_shoulder_pitch_link.STL b/assets/h1_2/meshes/right_shoulder_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/right_shoulder_pitch_link.STL rename to assets/h1_2/meshes/right_shoulder_pitch_link.STL diff --git a/assets/H1_5/meshes/right_shoulder_roll_link.STL b/assets/h1_2/meshes/right_shoulder_roll_link.STL similarity index 100% rename from assets/H1_5/meshes/right_shoulder_roll_link.STL rename to assets/h1_2/meshes/right_shoulder_roll_link.STL diff --git a/assets/H1_5/meshes/right_shoulder_yaw_link.STL b/assets/h1_2/meshes/right_shoulder_yaw_link.STL similarity index 100% rename from assets/H1_5/meshes/right_shoulder_yaw_link.STL rename to assets/h1_2/meshes/right_shoulder_yaw_link.STL diff --git a/assets/H1_5/meshes/right_wrist_pitch_link.STL b/assets/h1_2/meshes/right_wrist_pitch_link.STL similarity index 100% rename from assets/H1_5/meshes/right_wrist_pitch_link.STL rename to assets/h1_2/meshes/right_wrist_pitch_link.STL diff --git a/assets/H1_5/meshes/torso_link.STL b/assets/h1_2/meshes/torso_link.STL similarity index 100% rename from assets/H1_5/meshes/torso_link.STL rename to assets/h1_2/meshes/torso_link.STL diff --git a/assets/H1_5/meshes/wrist_yaw_link.STL b/assets/h1_2/meshes/wrist_yaw_link.STL similarity index 100% rename from assets/H1_5/meshes/wrist_yaw_link.STL rename to assets/h1_2/meshes/wrist_yaw_link.STL diff --git a/assets/H1_5/scene.xml b/assets/h1_2/scene.xml similarity index 95% rename from assets/H1_5/scene.xml rename to assets/h1_2/scene.xml index fad346e..c2375fe 100644 --- a/assets/H1_5/scene.xml +++ b/assets/h1_2/scene.xml @@ -1,5 +1,5 @@ - + diff --git a/teleop/robot_control/robot_arm_ik.py b/teleop/robot_control/robot_arm_ik.py index 4488797..bfd4c6f 100644 --- a/teleop/robot_control/robot_arm_ik.py +++ b/teleop/robot_control/robot_arm_ik.py @@ -17,7 +17,7 @@ class Arm_IK: def __init__(self): np.set_printoptions(precision=5, suppress=True, linewidth=200) - self.robot = pin.RobotWrapper.BuildFromURDF('../assets/H1_5/h1_5.urdf', '../assets/H1_5') + self.robot = pin.RobotWrapper.BuildFromURDF('../assets/h1_2/h1_2.urdf', '../assets/h1_2') self.mixed_jointsToLockIDs = ["left_hip_yaw_joint", "left_hip_pitch_joint",