UserPreferences

Command Line Control in Pyro


Command-Line Control

--------------------------------------------------
  GUI Command line editing:
--------------------------------------------------
  Control+p or UpArrow        previous line
  Control+n or DownArrow      next line
  Control+a or Home           beginning of line
  Control+e or End            end of line
  Control+f or RightArrow     forward one character
  Control+b or LeftArrow      back one character

Examples

In the command-line box, you may set or examine any attribute or method of the robot or brain. For example, if you wanted to make the robot move, you could enter commands such as:

self.move(0.2, -0.5)
self.translate(.1)
stop

You can also query the robot:

robot
self.robot.name # self is brain
self.robot.type # self is brain
run

You can get and set variables in the brain:

load brain
brain.someVariable = 7
brain.someVariable
brain.step() 
brain.update()

Note that when editing these commands in a graphical interface, you have a history of previous commands accessed using the arrow keys, or emacs-style control keys.

Next Section: Pyro Effectors

Pyro Modules Table of Contents

Modules

  1. PyroModuleIntroduction

  2. PyroModuleObjectOverview

  3. PyroModulePythonIntro

  4. PyroModuleDirectControl

  5. PyroModuleSequencingControl

  6. PyroModuleBehaviorBasedControl

  7. PyroModuleReinforcementLearning

  8. PyroModuleNeuralNetworks

  9. PyroModuleEvolutionaryAlgorithms

  10. PyroModuleComputerVision

  11. PyroModuleMapping

  12. PyroModuleMultirobot

  13. FurtherReading

Additional Resources

  1. PyroIndex

  2. PyroAdvancedTopics

  3. PyroUserManual

  4. [WWW]Pyro Tutorial Movies

Reference: PyroSiteNotes