Skip to content

Commit 2edc8fd

Browse files
committed
Modify wrist joint name in arm example
1 parent eed0898 commit 2edc8fd

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

example/g1/high_level/g1_arm7_sdk_dds_example.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ enum JointIndex {
3939
kLeftShoulderRoll,
4040
kLeftShoulderYaw,
4141
kLeftElbow,
42-
kLeftWistRoll,
43-
kLeftWistPitch,
44-
kLeftWistYaw,
42+
kLeftWristRoll,
43+
kLeftWristPitch,
44+
kLeftWristYaw,
4545
// Right arm
4646
kRightShoulderPitch,
4747
kRightShoulderRoll,
4848
kRightShoulderYaw,
4949
kRightElbow,
50-
kRightWistRoll,
51-
kRightWistPitch,
52-
kRightWistYaw,
50+
kRightWristRoll,
51+
kRightWristPitch,
52+
kRightWristYaw,
5353

5454
kNotUsedJoint,
5555
kNotUsedJoint1,
@@ -92,12 +92,12 @@ int main(int argc, char const *argv[]) {
9292
std::array<JointIndex, 17> arm_joints = {
9393
JointIndex::kLeftShoulderPitch, JointIndex::kLeftShoulderRoll,
9494
JointIndex::kLeftShoulderYaw, JointIndex::kLeftElbow,
95-
JointIndex::kLeftWistRoll, JointIndex::kLeftWistPitch,
96-
JointIndex::kLeftWistYaw,
95+
JointIndex::kLeftWristRoll, JointIndex::kLeftWristPitch,
96+
JointIndex::kLeftWristYaw,
9797
JointIndex::kRightShoulderPitch, JointIndex::kRightShoulderRoll,
9898
JointIndex::kRightShoulderYaw, JointIndex::kRightElbow,
99-
JointIndex::kRightWistRoll, JointIndex::kRightWistPitch,
100-
JointIndex::kRightWistYaw,
99+
JointIndex::kRightWristRoll, JointIndex::kRightWristPitch,
100+
JointIndex::kRightWristYaw,
101101
JointIndex::kWaistYaw,
102102
JointIndex::kWaistRoll,
103103
JointIndex::kWaistPitch};

example/h1/high_level/h1_2_arm_sdk_dds_example.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ enum JointIndex {
3636
kLeftShoulderRoll = 14,
3737
kLeftShoulderYaw = 15,
3838
kLeftElbow = 16,
39-
kLeftWistRoll = 17,
40-
kLeftWistPitch = 18,
41-
kLeftWistYaw = 19,
39+
kLeftWristRoll = 17,
40+
kLeftWristPitch = 18,
41+
kLeftWristYaw = 19,
4242
// Right arm
4343
kRightShoulderPitch = 20,
4444
kRightShoulderRoll = 21,
4545
kRightShoulderYaw = 22,
4646
kRightElbow = 23,
47-
kRightWistRoll = 24,
48-
kRightWistPitch = 25,
49-
kRightWistYaw = 26,
47+
kRightWristRoll = 24,
48+
kRightWristPitch = 25,
49+
kRightWristYaw = 26,
5050

5151
kNotUsedJoint = 27,
5252
kNotUsedJoint1 = 28,
@@ -91,10 +91,10 @@ int main(int argc, char const *argv[]) {
9191
std::array<JointIndex, 15> arm_joints = {
9292
JointIndex::kLeftShoulderPitch, JointIndex::kLeftShoulderRoll,
9393
JointIndex::kLeftShoulderYaw, JointIndex::kLeftElbow,
94-
JointIndex::kLeftWistRoll, JointIndex::kLeftWistPitch, JointIndex::kLeftWistYaw,
94+
JointIndex::kLeftWristRoll, JointIndex::kLeftWristPitch, JointIndex::kLeftWristYaw,
9595
JointIndex::kRightShoulderPitch, JointIndex::kRightShoulderRoll,
9696
JointIndex::kRightShoulderYaw, JointIndex::kRightElbow,
97-
JointIndex::kRightWistRoll, JointIndex::kRightWistPitch, JointIndex::kRightWistYaw,
97+
JointIndex::kRightWristRoll, JointIndex::kRightWristPitch, JointIndex::kRightWristYaw,
9898
JointIndex::kWaistYaw};
9999

100100
float weight = 0.f;

0 commit comments

Comments
 (0)