botlib.control
index
/home/witling/dev/botlib/botlib/control.py

 
Classes
       
builtins.object
Action

 
class Action(builtins.object)
    Standardized actions that a `Bot` can execute.
 
  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 `Actionobject.
 
: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 `Actionobject.
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

 
Data
        REMOTE_PORT = 6666