Public Member Functions | |
def | __init__ |
def | execute |
def | turn_handlight |
Static Public Attributes | |
HANDLIGHT_OFF = False | |
HANDLIGHT_ON = True | |
Private Member Functions | |
def | _assign_dio_names |
Private Attributes | |
_DIO_LHAND | |
_DIO_RHAND |
Following Command design pattern, this class represents commands for turning hand lights.
Definition at line 40 of file handlight_command.py.
def nextage_ros_bridge.command.handlight_command.HandlightCommand.__init__ | ( | self, | |
hands, | |||
hand, | |||
dio_pins | |||
) |
Definition at line 50 of file handlight_command.py.
def nextage_ros_bridge.command.handlight_command.HandlightCommand._assign_dio_names | ( | self, | |
dio_pins | |||
) | [private] |
@see abs_hand_command.AbsractHandCommand._assign_dio_names
Definition at line 53 of file handlight_command.py.
def nextage_ros_bridge.command.handlight_command.HandlightCommand.execute | ( | self, | |
operation | |||
) |
@see abs_hand_command.AbsractHandCommand.execute @param operation: param type: - 'True': Turn the light on. - 'False': Turn the light off. @rtype: bool @return: True if digital out was writable to the register. False otherwise.
Definition at line 60 of file handlight_command.py.
def nextage_ros_bridge.command.handlight_command.HandlightCommand.turn_handlight | ( | self, | |
hand = None , |
|||
on = True |
|||
) |
@param hand: Both hands if None. @type on: bool @param on: Despite its type, it's handled as str in this method. @rtype: bool @return: True if the lights turned. False otherwise.
Definition at line 89 of file handlight_command.py.
Definition at line 55 of file handlight_command.py.
Definition at line 55 of file handlight_command.py.
Definition at line 48 of file handlight_command.py.
Definition at line 47 of file handlight_command.py.