Package pyrobot :: Package engine :: Class Engine
[frames | no frames]

Class Engine


Finds, loads, and creates the needed simulators, robots, devices, etc.

Method Summary
  __init__(self, robotfile, brainfile, simfile, pyroargs, config, worldfile, devices)
Constructor for the Engine class.
  destroyBrain(self)
Method to destroy the brain, if one.
  freeBrain(self)
Kills the brain.
  freeRobot(self)
Kills the robot.
  getGUI(self)
Returns the gui object.
  loadBrain(self, file)
Finds and loads the brain file.
  loadRobot(self, file)
Finds and loads the robot.
  loadSimulator(self, file, worldfile)
Finds and loads the simulator.
  pleaseRun(self, callback)
Request to run the brain, followed by a callback.
  pleaseStep(self)
Attempt to step the brain.
  pleaseStop(self)
Attempt to stop the brain.
  reset(self)
Shuts down the brain, and reloads it.
  resetFirstAttempts(self)
Test method.
  setBrain(self, brain)
Sets the brain, after the creation of the engine.
  setRobot(self, robot)
Sets the robot, after the creation of the engine.
  shutdown(self)
Shuts everything down.
  tryToConnect(self)
Tests to see if you have a brain and robot.

Method Details

__init__(self, robotfile=None, brainfile=None, simfile=None, pyroargs=[], config={}, worldfile=None, devices=[''])
(Constructor)

Constructor for the Engine class.

destroyBrain(self)

Method to destroy the brain, if one.

freeBrain(self)

Kills the brain.

freeRobot(self)

Kills the robot.

getGUI(self)

Returns the gui object.

loadBrain(self, file)

Finds and loads the brain file.

loadRobot(self, file)

Finds and loads the robot.

loadSimulator(self, file, worldfile)

Finds and loads the simulator.

pleaseRun(self, callback=0)

Request to run the brain, followed by a callback.

pleaseStep(self)

Attempt to step the brain.

pleaseStop(self)

Attempt to stop the brain.

reset(self)

Shuts down the brain, and reloads it.

resetFirstAttempts(self)

Test method.

setBrain(self, brain)

Sets the brain, after the creation of the engine.

setRobot(self, robot)

Sets the robot, after the creation of the engine.

shutdown(self)

Shuts everything down.

tryToConnect(self)

Tests to see if you have a brain and robot.

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