39 from abs_hand_command
import AbsractHandCommand
44 Following Command design pattern, this class represents an abstract 45 command for hand classes of NEXTAGE OPEN. 47 NOTE: 1/31/2014 TODO: Only right hand is implemented for now. 51 GRIPPER_CLOSE =
'close' 53 GRIPPER_DANGER =
'danger' 56 super(GripperCommand, self).
__init__(hands, hand, dio_pins)
60 @see abs_hand_command.AbsractHandCommand._assign_dio_names 69 @see abs_hand_command.AbsractHandCommand.execute 75 if self._hands.HAND_L == self._hand:
78 elif self._hands.HAND_R == self._hand:
81 if self._hands.HAND_L == self._hand:
83 elif self._hands.HAND_R == self._hand:
86 if self._hands.HAND_L == self._hand:
88 elif self._hands.HAND_R == self._hand:
90 return self._hands._dio_writer(dout, mask)
def __init__(self, hands, hand, dio_pins)
def execute(self, operation)
def _assign_dio_names(self, dio_pins)