Module eddiebot_driver :: Class Eddiebot
[frames] | no frames]

Class Eddiebot

source code

Represents a Eddiebot robot.

Instance Methods
 
__init__(self) source code
 
start(self, tty='/dev/ttyUSB0', baudrate=115200) 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.
source code
 
passive(self)
Put the robot in passive mode.
source code
 
direct_drive(self, velocity_left, velocity_right) source code
 
drive(self, velocity, radius) source code
 
command_joints(self, pan_degree, tilt_degree) 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) 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
 
sensors(self)
This is a sensor command to emulate SCI sensor sending
source code
Method Details

__init__(self)
(Constructor)

source code 
Parameters:
  • sensor_class - Sensor class to use for fetching and decoding sensor data.

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.

change_baud_rate(self, baud_rate)

source code 

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.

The default baud rate at power up is 57600 bps. (See Serial Port Settings, above.) Once the baud rate is changed, it will persist until Roomba is power cycled by removing the battery (or until the battery voltage falls below the minimum requir''' ed for processor operation). You must wait 100ms after sending this command before sending additional commands at the new baud rate. The SCI must be in passive, safe, or full mode to accept this command. This command puts the SCI in passive mode.