Skip to content

Commit a7c68d6

Browse files
author
Ian McMahon
committed
Merge pull request #70 from RethinkRobotics/joint_states_fix
Fix Limb interf to ignore extra left/right states
2 parents 70b9ca3 + 7f4f28f commit a7c68d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/baxter_interface/limb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def __init__(self, limb):
126126

127127
def _on_joint_states(self, msg):
128128
for idx, name in enumerate(msg.name):
129-
if self.name in name:
129+
if name in self._joint_names[self.name]:
130130
self._joint_angle[name] = msg.position[idx]
131131
self._joint_velocity[name] = msg.velocity[idx]
132132
self._joint_effort[name] = msg.effort[idx]

0 commit comments

Comments
 (0)