Public Member Functions | |
def | __del__ |
def | __getattr__ |
def | __init__ |
def | brake |
def | clear |
def | clearAngle |
def | clearDistance |
def | demo |
def | forwardTurn |
def | leds |
def | left |
def | playSong |
def | reset |
def | right |
def | send |
def | start |
def | stop |
def | storeSong |
def | tank |
def | turn |
Public Attributes | |
angleLock | |
distanceLock | |
packetRef | |
period | |
port | |
portLock | |
queue | |
queueLock | |
runRef | |
timeout | |
update | |
Private Member Functions | |
def | __addAngle |
def | __addDistance |
def | __convert |
def | __highLow |
def | __read |
def | __sendAll |
def | __sendNow |
def | __twos |
Private Attributes | |
__angle | |
__distance |
def irobot.create.Create.__init__ | ( | self, | |
tty = "/dev/ttyUSB0" |
|||
) |
def irobot.create.Create.__del__ | ( | self | ) |
def irobot.create.Create.__addAngle | ( | self, | |
num | |||
) | [private] |
def irobot.create.Create.__addDistance | ( | self, | |
num | |||
) | [private] |
def irobot.create.Create.__convert | ( | self, | |
num | |||
) | [private] |
def irobot.create.Create.__getattr__ | ( | self, | |
name | |||
) |
def irobot.create.Create.__highLow | ( | self, | |
num | |||
) | [private] |
def irobot.create.Create.__read | ( | self, | |
num, | |||
block = False |
|||
) | [private] |
def irobot.create.Create.__sendAll | ( | self | ) | [private] |
def irobot.create.Create.__sendNow | ( | self, | |
opcodes | |||
) | [private] |
def irobot.create.Create.__twos | ( | self, | |
num, | |||
bits = 16 |
|||
) | [private] |
def irobot.create.Create.brake | ( | self | ) |
def irobot.create.Create.clear | ( | self | ) |
def irobot.create.Create.clearAngle | ( | self | ) |
def irobot.create.Create.clearDistance | ( | self | ) |
def irobot.create.Create.demo | ( | self, | |
num | |||
) |
def irobot.create.Create.forwardTurn | ( | self, | |
speed, | |||
radius | |||
) |
Takes two parameters: speed and radius. Drives the iCreate at speed with enough of an angle that the iCreate will carve a circle with the given radius. Speed is in mm/s and can vary between -500 and 500. The radius can vary between -2000 and 2000 mm (with negative mm turning left).
def irobot.create.Create.leds | ( | self, | |
play, | |||
advance, | |||
color, | |||
intensity | |||
) |
def irobot.create.Create.left | ( | self, | |
speed | |||
) |
def irobot.create.Create.playSong | ( | self, | |
num | |||
) |
def irobot.create.Create.reset | ( | self | ) |
def irobot.create.Create.right | ( | self, | |
speed | |||
) |
def irobot.create.Create.send | ( | self, | |
opcodes | |||
) |
def irobot.create.Create.start | ( | self | ) |
def irobot.create.Create.stop | ( | self | ) |
def irobot.create.Create.storeSong | ( | self, | |
num, | |||
song | |||
) |
Store a song. First parameter is the song number, the remaming arguments are taken to be of the form: note, duration, note, duration, etc. See page 12 of the iRobot Create Open Interface Manual for numerical note definitions. Duration is interpreted as duration*1/64th of a second.
def irobot.create.Create.tank | ( | self, | |
left, | |||
right | |||
) |
Drive the iCreate like a tank (i.e. left throttle, right throttle). Takes two parameters: left and right throttle. Each can be between -500 and 500 representing mm/s. If either are outside of this range, both throttles will be linearly scaled to fit inside the range
def irobot.create.Create.turn | ( | self, | |
speed | |||
) |
irobot::create.Create::__angle [private] |
irobot::create.Create::__distance [private] |