| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package robot :: Module aibo :: Class AiboRobot |
|
Robot --+
|
AiboRobot
Class for an Aibo robot in Pyrobot.
| Method Summary | |
|---|---|
__init__(self,
host)
| |
Connects the robot object to the server or simulator. | |
This method removes all of the devices. | |
Disconnects the robot object from the server or simulator. | |
Get value of button by name... | |
Get position, dutyCycle of joint by name... | |
getPose(self,
joint)
| |
Get the sensor value... | |
Moves the robot by sending an amount of power. | |
AiboRobot.playSound(FILENAME) takes one of the following filenames... | |
Used as a callback in ListenerThread for sockets that produce data fast for us to read. | |
rotate(self,
amount)
| |
setAiboConfig(self,
item,
state)
| |
Set the position of a joint... | |
setRemoteControl(self,
item,
state)
| |
AiboRobot.setWalk(FILENAME) - takes one of the following filenames:... | |
Calls back to a subclass to start a device from there. | |
strafe(self,
amount)
| |
translate(self,
amount)
| |
| Inherited from Robot | |
Returns the first device of a type. | |
Returns the list of device types that have ben loaded. | |
Returns the list of builtin device types. | |
Returns 1 if robot has a device of type dtype, else 0. | |
Set the x,y,thr pose of where the robot thinks it is. | |
Move function that takes desired motor values and converts to trans and rotate. | |
A printable representation of the robot's attribute tree. | |
Removes a device (or all of them) of a particular type. | |
Takes a list/feature name and raises and exception if not supported. | |
Change the default range sensor. | |
Is called from __init__ so users don't have to call parent constructor and all the gory details. | |
Loads and starts a device. | |
Load devices can take a dict, list, builtin name, or filename... | |
Short for robot.move(0,0). | |
Stop a device from updating. | |
See if this robot interface supports a particular feature. | |
Updates the robot. | |
Updates all of the robot's devices. | |
| Class Variable Summary | |
|---|---|
dict |
PORT = {'EStop Remote Control': 10053, 'Main Control': 1...
|
| Method Details |
|---|
connect(self)Connects the robot object to the server or simulator.
|
destroy(self)This method removes all of the devices. Called by the system.
|
disconnect(self)Disconnects the robot object from the server or simulator.
|
getButton(self, query)Get value of button by name |
getJoint(self, query)Get position, dutyCycle of joint by name |
getSensor(self, query)Get the sensor value |
move(self, translate, rotate)Moves the robot by sending an amount of power. translate - value between -1 and 1; -1 is reverse rotate - value between -1 and 1; -1 is to the right
|
playSound(self, file)AiboRobot.playSound(FILENAME) takes one of the following filenames (WAV is optional): 3BARKS.WAV, 3YIPS.WAV, BARKHIGH.WAV, BARKLOW.WAV, BARKMED.WAV BARKREAL.WAV, CAMERA.WAV, CATCRY.WAV, CATYOWL.WAV, CRASH.WAV CUTEY.WAV, DONKEY.WAV, FART.WAV, GLASS.WAV, GROWL.WAV GROWL2.WAV, GRRR.WAV, HOWL.WAV, MEW.WAV, PING.WAV, ROAR.WAV SKID.WAV, SNIFF.WAV, TICK.WAV, TOC.WAV, WHIIP.WAV, WHIMPER.WAV WHOOP.WAV, YAP.WAV, YIPPER.WAV |
readWorldState(self, socket)Used as a callback in ListenerThread for sockets that produce data fast for us to read. |
setPose(self, joint, amtx, amty=None, amtz=None)Set the position of a joint |
setWalk(self, file)AiboRobot.setWalk(FILENAME) - takes one of the following filenames: PACE.PRM, TIGER.PRM, WALK.PRM (crawl) |
startDeviceBuiltin(self, item)Calls back to a subclass to start a device from there.
|
| Class Variable Details |
|---|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 | http://epydoc.sf.net |