From dabf11b817083a1c550fb195251df046cc1cd5c4 Mon Sep 17 00:00:00 2001 From: "Alan G. Sanchez" Date: Fri, 26 Aug 2022 15:13:30 -0700 Subject: [PATCH] Fixed for loop syntax error. --- src/joint_state_printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joint_state_printer.py b/src/joint_state_printer.py index ea28f99..0c55d86 100755 --- a/src/joint_state_printer.py +++ b/src/joint_state_printer.py @@ -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])