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
-
Pyro - Back to Pyro main page
-
Beyond Legos - NSF grant that pays for Pyro
Modules
Additional Resources
Reference: PyroSiteNotes
