Module create_driver :: Class SerialCommandInterface
[frames] | no frames]

Class SerialCommandInterface

source code

object --+
         |
        SerialCommandInterface

A higher-level wrapper around PySerial specifically designed for use with iRobot's SCI.

Instance Methods
 
__init__(self, tty, baudrate)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
wake(self)
wake up robot.
source code
 
add_opcodes(self, opcodes)
Add available opcodes to the SCI.
source code
 
send(self, bytes)
send a string of bytes to the robot.
source code
 
read(self, num_bytes)
Read a string of 'num_bytes' bytes from the robot.
source code
 
flush_input(self)
Flush input buffer, discarding all its contents.
source code
 
__getattr__(self, name)
Turtlebots methods for opcodes on the fly.
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, tty, baudrate)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__getattr__(self, name)
(Qualification operator)

source code 

Turtlebots methods for opcodes on the fly.

Each opcode method sends the opcode optionally followed by a string of bytes.