Browse Source

Fixed for loop syntax error.

main
Alan G. Sanchez 2 years ago
parent
commit
dabf11b817
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/joint_state_printer.py

+ 1
- 1
src/joint_state_printer.py View File

@ -44,7 +44,7 @@ class JointStatePublisher():
# Use of forloop to parse the names of the requested joints list.
# The index() function returns the index at the first occurrence of
# the name of the requested joint in the self.joint_states.name list
for joint in joints
for joint in joints:
if joint == "wrist_extension":
index = self.joint_states.name.index('joint_arm_l0')
joint_positions.append(4*self.joint_states.position[index])

Loading…
Cancel
Save