42 Following Command design pattern, this class represents an abstract 43 command for hand classes of NEXTAGE OPEN. 49 @type hands: nextage_ros_bridge.base_hands.BaseHands 51 @param hand: Side of hand. Variables that are defined in 52 nextage_ros_bridge.base_hands.BaseHands can be used 55 @param dio_pins: List of DIO pins that are used in each HandCommand 56 class. The order is important; it needs be defined 65 Needs overriddedn, otherwise expcetion occurs. 68 @param operation: name of the operation. 70 @return: True if dout was writtable to the register. False otherwise. 72 @raise exception: RuntimeError 74 msg =
'AbsractHandCommand.execute() not extended.' 76 raise NotImplementedError(msg)
80 It's recommended in the derived classes to re-assign DIO names to 81 better represent the specific purposes of each DIO pin in there. 82 Since doing so isn' mandatory, this method doesn't emit error even when 85 @param dio_pins: List of DIO pins that are used in each HandCommand 86 class. The order is important; it needs be defined
def __init__(self, hands, hand, dio_pins)
def _assign_dio_names(self, dio_pins)
def execute(self, operation)