Browse Source

changed joint names.

noetic
Alan G. Sanchez 2 years ago
parent
commit
09e4195787
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      example_5.md

+ 2
- 2
example_5.md View File

@ -63,7 +63,7 @@ class JointStatePublisher():
"""
joint_positions = []
for joint in joints:
if joint == "wrist_extension":
if joint == "wrist_extension":
index = self.joint_states.name.index('joint_arm_l0')
joint_positions.append(4*self.joint_states.position[index])
continue
@ -78,7 +78,7 @@ if __name__ == '__main__':
rospy.init_node('joint_state_printer', anonymous=True)
JSP = JointStatePublisher()
rospy.sleep(.1)
joints = ["joint_lift", "joint_arm_l0", "joint_arm_l1", "joint_arm_l2", "joint_arm_13", "joint_wrist_yaw"]
joints = ["joint_lift", "wrist_extension", "joint_wrist_yaw"]
#joints = ["joint_head_pan","joint_head_tilt", joint_gripper_finger_left", "joint_gripper_finger_right"]
JSP.print_states(joints)
rospy.spin()

Loading…
Cancel
Save