|
Methods defined here:
- __init__(self, cmd, data=None)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
- parse(seq)
- Parses a string into an `Action` object.
:param seq: a string in the form `<cmd>:<data>` where `<data>` is optional. `<cmd>` must be an int,
`<data>` must be a float.
:returns: an `Action` object.
- to(cmd, data=None)
- Turn a command and some data into a string.
:param cmd: an integer defining the action.
:param data: a float containing the payload.
:returns: a the message as a string.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- FORKLIFT_CARRY = 64
- FORKLIFT_HEIGHT_POWER = 512
- FORKLIFT_PICKUP = 32
- FORKLIFT_ROTATE_POWER = 1024
- SPEED = 256
- SPEED_DOWN = 16
- SPEED_UP = 8
- STEER = 128
- STEER_LEFT = 2
- STEER_RIGHT = 4
- STOP = 1
|