| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package robot :: Module player :: Class PlayerRobot |
|
Robot --+
|
PlayerRobot
| Method Summary | |
|---|---|
__init__(self,
name,
port,
hostname,
startDevices)
| |
Connects the robot object to the server or simulator. | |
This method removes all of the devices. | |
Set robot's internal pose to x (meters), y (meters),... | |
move(self,
translate_velocity,
rotate_velocity)
| |
Removes a device (or all of them) of a particular type. | |
rotate(self,
rotate_velocity)
| |
Calls back to a subclass to start a device from there. | |
startPlayerDevice(self,
name,
idx,
override)
| |
translate(self,
translate_velocity)
| |
Updates the robot. | |
| Inherited from Robot | |
Disconnects the robot object from the server or simulator. | |
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. | |
Move function that takes desired motor values and converts to trans and rotate. | |
A printable representation of the robot's attribute tree. | |
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 all of the robot's devices. | |
| 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.
|
localize(self, x=0, y=0, th=0)Set robot's internal pose to x (meters), y (meters), th (radians)
|
removeDevice(self, item, number=0)
Removes a device (or all of them) of a particular type.
>>> robot.removedDevice("sonar")
Removes all of of the sonar devices.
>>> robot.removedDevice("sonar", 0)
Removes the first sonar device.
|
startDeviceBuiltin(self, item, index=0)Calls back to a subclass to start a device from there.
|
update(self)Updates the robot.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:26 2005 | http://epydoc.sf.net |