Module turtlebot_driver :: Class Turtlebot
[frames] | no frames]

Class Turtlebot

source code

object --+    
         |    
    Roomba --+
             |
            Turtlebot

Represents a Turtlebot robot.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
start(self, tty='/dev/ttyUSB0', baudrate=57600) source code
 
control(self)
Start the robot's SCI interface and place it in safe or full mode.
source code
 
power_low_side_drivers(self, drivers)
Enable or disable power to low side drivers.
source code
 
set_digital_outputs(self, value)
Enable or disable digital outputs.
source code
 
soft_reset(self)
Do a soft reset of the Turtlebot.
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. (Inherited from turtlebot_driver.Roomba)
source code
 
direct_drive(self, velocity_left, velocity_right) (Inherited from turtlebot_driver.Roomba) source code
 
dock(self)
Start looking for the dock and then dock. (Inherited from turtlebot_driver.Roomba)
source code
 
drive(self, velocity, radius)
controls Roomba's drive wheels. (Inherited from turtlebot_driver.Roomba)
source code
 
drive_straight(self, velocity)
drive in a straight line. (Inherited from turtlebot_driver.Roomba)
source code
 
passive(self)
Put the robot in passive mode. (Inherited from turtlebot_driver.Roomba)
source code
 
slow_stop(self, velocity)
Slowly reduce the velocity to 0 to stop movement. (Inherited from turtlebot_driver.Roomba)
source code
 
stop(self)
Set velocity and radius to 0 to stop movement. (Inherited from turtlebot_driver.Roomba)
source code
 
turn_in_place(self, velocity, direction)
Turn in place either clockwise or counter-clockwise. (Inherited from turtlebot_driver.Roomba)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • sensor_class - Sensor class to use for fetching and decoding sensor data.
Overrides: object.__init__

start(self, tty='/dev/ttyUSB0', baudrate=57600)

source code 
Overrides: Roomba.start

control(self)

source code 

Start the robot's SCI interface and place it in safe or full mode.

Overrides: Roomba.control

power_low_side_drivers(self, drivers)

source code 

Enable or disable power to low side drivers.

'drivers' should be a list of booleans indicating which low side drivers should be powered.