Represents a Roomba robot.
|
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
| start(self,
tty='/dev/ttyUSB0',
baudrate=57600) |
source code
|
|
|
|
change_baud_rate(self,
baud_rate)
Sets the baud rate in bits per second (bps) at which SCI commands and
data are sent according to the baud code sent in the data byte. |
source code
|
|
|
|
passive(self)
Put the robot in passive mode. |
source code
|
|
|
|
control(self)
Start the robot's SCI interface and place it in safe mode. |
source code
|
|
|
|
| direct_drive(self,
velocity_left,
velocity_right) |
source code
|
|
|
|
|
|
|
stop(self)
Set velocity and radius to 0 to stop movement. |
source code
|
|
|
|
slow_stop(self,
velocity)
Slowly reduce the velocity to 0 to stop movement. |
source code
|
|
|
|
drive_straight(self,
velocity)
drive in a straight line. |
source code
|
|
|
|
turn_in_place(self,
velocity,
direction)
Turn in place either clockwise or counter-clockwise. |
source code
|
|
|
|
dock(self)
Start looking for the dock and then dock. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|