Difference between revisions of "Myro Commands for Various Robots"

From IPRE Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 
Below is a table showing which commands work on which robots (currently the Scribbler, Roomba, and Create are included).
 
Below is a table showing which commands work on which robots (currently the Scribbler, Roomba, and Create are included).
 +
 +
Key:
 +
*      Function exists for given robot and returns expected return value.
 +
---    Function does not exist for given robot or returns unexpected return value.
 +
 
{| {{table}}
 
{| {{table}}
 
| align="center" style="background:#f0f0f0;"|'''Function'''
 
| align="center" style="background:#f0f0f0;"|'''Function'''

Revision as of 17:34, 31 March 2008

Below is a table showing which commands work on which robots (currently the Scribbler, Roomba, and Create are included).

Key:

  • Function exists for given robot and returns expected return value.

--- Function does not exist for given robot or returns unexpected return value.

Function Scribbler Roomba Create
forward(0.69999999999999996) * * *
stop() * * *
forward(0.69999999999999996, 0.10000000000000001) * * *
backward(0.69999999999999996) * * *
backward(0.69999999999999996, 0.10000000000000001) * * *
turn('left', 0.5) * * *
turn('right', 0.5) * * *
turn('straight', 0.5) * * *
turnLeft(0.59999999999999998) * * *
turnRight(0.59999999999999998) * * *
translate(1) * * *
rotate(0.5) * * *
move(1, 1) * * *
motors(0.40000000000000002, 0.40000000000000002) * * *
update() * * *
restart() * * *
get('stall') * * *
get('config') * * *
getStall() * * *
getName() * * *
getVolume() * * *
getStartSong() * * *
set('name', 'theName') * * *
set('volume', 'on') * * *
set('led', 'center', 'off') --- * *
set('led', 'right', 'off') * * *
set('led', 'left', 'off') * * *
setLED('left', 'on') * * *
setName('theName') * * *
setVolume(0) * * *
setVolume('off') * * *
setVolume(1) * * *
setVolume('on') * * *
set('led', 'back', 1) * * *
set('led', 'back', 0) * * *
set('led', 'front', 1) * * *
set('led', 'front', 'on') * * *
set('led', 'front', 0) * * *
set('led', 'front', 'off') * * *
robot.function(args) * * *
robot.forward(0) * * *
robot.backward(0) * * *
robot.turn('center', 0) * * *
robot.turn('left', 0) * * *
robot.turn('right', 0) * * *
robot.turnLeft(0) * * *
robot.turnRight(0) * * *
robot.translate(0) * * *
robot.rotate(0) * * *
robot.move(0, 0) * * *
robot.motors(0, 0) * * *
robot.stop() * * *
robot.get('name') * * *
robot.get('stall') * * *
robot.getStall() * * *
robot.getName() * * *
robot.set('volume', 1) * * *
robot.set('name', 'theName') * * *
robot.set('led', 'center', 'on') * * *
robot.set('led', 'center', 1) * * *
robot.set('led', 'center', 'off') --- * *
robot.set('led', 'center', 0) --- * *
robot.set('led', 'left', 'on') * * *
robot.set('led', 'left', 1) * * *
robot.set('led', 'left', 'off') * * *
robot.set('led', 'left', 0) * * *
robot.set('led', 'right', 'on') * * *
robot.set('led', 'right', 1) * * *
robot.set('led', 'right', 'off') * * *
robot.setLED('center', 'on') * * *
robot.setLED('center', 1) * * *
robot.setLED('center', 'off') --- * *
robot.setLED('center', 0) --- * *
robot.setLED('left', 'on') * * *
robot.setLED('left', 1) * * *
robot.setLED('left', 'off') * * *
robot.setLED('left', 0) * * *
robot.setLED('right', 'on') * * *
robot.setLED('right', 1) * * *
robot.setLED('right', 'off') * * *
robot.setLED('right', 0) * * *
robot.setName('theName') * * *
robot.setVolume('off') * * *
robot.setVolume('0') * * *
robot.setVolume('on') * * *
robot.setVolume('1') * * *
robot.update() * * *
robot.restart() * * *
robot.open() * * *
robot.close() * * *
robot.playSong('F# 1; G 1; A 1;') * * *
beep(0.0001, 0) * * *
beep(0.0001, 0, 0) * --- ---
get('light') * --- ---
get('line') * --- ---
get('all') * --- ---
getLight('center') * --- ---
getLight('left') * --- ---
getLight('right') * --- ---
getIR('left') * --- ---
getIR('right') * --- ---
getLine('left') * --- ---
getLine('right') * --- ---
getAll() * --- ---
get('info') * --- ---
getInfo() * --- ---
get('info', 'fluke') * --- ---
get('info', 'robot') * --- ---
get('info', 'robot-version') * --- ---
get('info', 'mode') * --- ---
getBright('left') * --- ---
getBright('middle') * --- ---
getBright('center') * --- ---
getBright('right') * --- ---
getBright(0) * --- ---
getBright(1) * --- ---
getBright(2) * --- ---
getObstacle('left') * --- ---
getObstacle('right') * --- ---
getObstacle(0) * --- ---
getObstacle(1) * --- ---
setIRPower(2) * --- ---
set('irpower', 2) * --- ---
getBattery() * --- ---
takePicture('color') * --- ---
takePicture('blob') * --- ---
takePicture('gray') * --- ---
setWhiteBalance(1) * --- ---
setWhiteBalance('on') * --- ---
setWhiteBalance(0) * --- ---
setWhiteBalance('off') * --- ---
set('whitebalance', 1) * --- ---
set('whitebalance', 'on') * --- ---
set('whitebalance', 0) * --- ---
set('whitebalance', 'off') * --- ---
setLEDFront(1) * --- ---
setLEDFront('on') * --- ---
setLEDFront(0) * --- ---
setLEDFront('off') * --- ---
setLEDBack(1) * --- ---
setLEDBack(0) * --- ---
robot.get('light') * --- ---
robot.get('line') * --- ---
robot.get('all') * --- ---
robot.get('data') * --- ---
robot.get('ir', 'left') * --- ---
robot.get('ir', 'right') * --- ---
robot.get('line', 'left') * --- ---
robot.get('line', 'right') * --- ---
robot.get('light', 'left') * --- ---
robot.get('light', 'right') * --- ---
robot.get('light', 'center') * --- ---
robot.getLight('left') * --- ---
robot.getLight('right') * --- ---
robot.getLight('center') * --- ---
robot.getIR('left') * --- ---
robot.getIR('right') * --- ---
robot.getLine('left') * --- ---
robot.getLine('right') * --- ---
robot.getAll() * --- ---
robot.getInfo() * --- ---
robot.getInfo('robot') * --- ---
robot.getInfo('fluke') * --- ---
robot.getInfo('robot-version') * --- ---
robot.getInfo('mode') * --- ---
robot.set('data', 0, 1) * --- ---
robot.beep(0, 0, 0) * --- ---