1. Pyro Users Manual
Users Manual for Pyro
First, let's look at the command-line options for starting Pyro. You start Pyro by entering:
% pyrobot
Pyro optionally can take the following command-line arguments:
-h show this help
-r ROBOT name of robot.py file to load
-b BRAIN name of brain.py file to load
-a ARGUMENTS user args; available as string engine.args
-s SIMULATOR name of simulator to run
-i CONFIGFILE name of config file to load
-w WORLDFILE name of simulator world to load
-d DEVICE[,...] names of devices (files or names)
-e "string" eval string of commands
that are ; separated
Where ROBOT is the name of a Pyro robot file, BRAIN is the name of a Pyro brain file, and GUI is either tty, or tk.
To automatically find the BRAIN and ROBOT files, they must be in your current directory or in the $PYROBOT/plugins/ directory. You don't need to add the .py after a filename, if it has such an extension. Order of the flags and options does not matter. Here's a full example:
% pyro -r Player6665 -b BBWander -s Stage -w tutorial.world -g tty
If you are using Pyro over a slow network, or on a slow computer with no graphics, see PyroRemotely.
For more information on the -i flag, see PyroSetUp.
1.1. Changing Editor
Pyro use emacs as the default editor, but you can change that. Do this:
% export EDITOR=gedit
and then start Pyro. It will use the gedit program as the editor. To use a console editor, such as vi:
%export EDITOR="gnome-terminal -e vi"
You can place any console program after the -e.
Related topics:
- PyroTutorialPython . . . . 1 match
- PyroWhatsNew . . . . 1 match
