Skip to content

Commit 74b4c57

Browse files
author
David Butterworth
committed
Fix call to GetActiveManipulator()
1 parent d9836f3 commit 74b4c57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prpy/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ def GetForwardKinematics(robot, q, manipulator=None):
10381038
serial chain) as a 4x4 matrix.
10391039
"""
10401040
if manipulator == None:
1041-
manipulator = GetActiveManipulator()
1041+
manipulator = robot.GetActiveManipulator()
10421042

10431043
T_ee = None
10441044

@@ -1048,7 +1048,7 @@ def GetForwardKinematics(robot, q, manipulator=None):
10481048

10491049
with robot_saver:
10501050
robot.SetActiveDOFValues(q)
1051-
T_ee = robot.manipulator.GetEndEffectorTransform()
1051+
T_ee = manipulator.GetEndEffectorTransform()
10521052
# Robot state is restored
10531053

10541054
return T_ee

0 commit comments

Comments
 (0)