Skip to content

Commit 12d352a

Browse files
committed
Merge pull request #254 from Stefanos19/master
Workaround for CloseFingers on MicoHand.
2 parents 0496943 + 926ed08 commit 12d352a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/prpy/base/micohand.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,7 @@ def CloseHand(self, value=0.8, timeout=None):
127127
""" Close the hand.
128128
@param timeout blocking execution timeout
129129
"""
130-
if self.simulated:
131-
robot = self.manipulator.GetRobot()
132-
p = openravepy.KinBody.SaveParameters
133-
134-
with robot.CreateRobotStateSaver(p.ActiveDOF | p.ActiveManipulator):
135-
self.manipulator.SetActive()
136-
robot.task_manipulation.CloseFingers()
137-
138-
if timeout:
139-
robot.WaitForController(timeout)
140-
141-
return None
142-
else:
143-
return self.MoveHand(f1=value, f2=value, timeout=timeout)
130+
return self.MoveHand(f1=value, f2=value, timeout=timeout)
144131

145132
def CloseHandTight(self, value=1.2, timeout=None):
146133
""" Close the hand tightly.

0 commit comments

Comments
 (0)