Package pyrobot :: Package robot :: Module aibo :: Class AiboRobot
[frames | no frames]

Class AiboRobot

Robot --+
        |
       AiboRobot


Class for an Aibo robot in Pyrobot.

Method Summary
  __init__(self, host)
  connect(self)
Connects the robot object to the server or simulator.
  destroy(self)
This method removes all of the devices.
  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...
  getPose(self, joint)
  getSensor(self, query)
Get the sensor value...
  move(self, translate, rotate)
Moves the robot by sending an amount of power.
  playSound(self, file)
AiboRobot.playSound(FILENAME) takes one of the following filenames...
  readWorldState(self, socket)
Used as a callback in ListenerThread for sockets that produce data fast for us to read.
  rotate(self, amount)
  setAiboConfig(self, item, state)
  setPose(self, joint, amtx, amty, amtz)
Set the position of a joint...
  setRemoteControl(self, item, state)
  setWalk(self, file)
AiboRobot.setWalk(FILENAME) - takes one of the following filenames:...
  startDeviceBuiltin(self, item)
Calls back to a subclass to start a device from there.
  strafe(self, amount)
  translate(self, amount)
    Inherited from Robot
  getDevice(self, item)
Returns the first device of a type.
  getDevices(self)
Returns the list of device types that have ben loaded.
  getSupportedDevices(self)
Returns the list of builtin device types.
  hasA(self, dtype)
Returns 1 if robot has a device of type dtype, else 0.
  localize(self, x, y, thr)
Set the x,y,thr pose of where the robot thinks it is.
  motors(self, leftValue, rightValue)
Move function that takes desired motor values and converts to trans and rotate.
  printView(self, thing, toplevel, indent)
A printable representation of the robot's attribute tree.
  removeDevice(self, item, number)
Removes a device (or all of them) of a particular type.
  requires(self, feature)
Takes a list/feature name and raises and exception if not supported.
  setRangeSensor(self, name, index)
Change the default range sensor.
  setup(self, **kwargs)
Is called from __init__ so users don't have to call parent constructor and all the gory details.
  startDevice(self, item, **args)
Loads and starts a device.
  startDevices(self, item, override, **args)
Load devices can take a dict, list, builtin name, or filename...
  stop(self)
Short for robot.move(0,0).
  stopDevice(self, item)
Stop a device from updating.
  supports(self, feature)
See if this robot interface supports a particular feature.
  update(self)
Updates the robot.
  updateDevices(self)
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.
Overrides:
pyrobot.robot.Robot.connect (inherited documentation)

destroy(self)

This method removes all of the devices. Called by the system.
Overrides:
pyrobot.robot.Robot.destroy (inherited documentation)

disconnect(self)

Disconnects the robot object from the server or simulator.
Overrides:
pyrobot.robot.Robot.disconnect (inherited documentation)

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
Overrides:
pyrobot.robot.Robot.move (inherited documentation)

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.
Overrides:
pyrobot.robot.Robot.startDeviceBuiltin (inherited documentation)

Class Variable Details

PORT

Type:
dict
Value:
{'EStop Remote Control': 10053,
 'Head Remote Control': 10052,
 'Joint Writer': 10051,
 'Main Control': 10020,
 'Raw Cam Server': 10011,
 'Seg Cam Server': 10012,
 'Walk Remote Control': 10050,
 'World State Serializer': 10031}                                      

Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 http://epydoc.sf.net