![]() |
|||||||
| [ Home ] | [ Software ] | [ Curriculum ] | [ Hardware ] | [ Community ] | [ News ] | [ Publications ] | [ Search ] |
|
1. Pyro Set UpTo help configure individual systems, system admins and users can create site-wide configuration files, or personal setups, respectively. These files have the following format:
[pyrobot] args=string of whatever you want [brain] file = BBWander [simulator] file = Aria [world] file = jeanne.wld [robot] file = Aria services=blob,truth [aria] [pioneer] [srisim] [khepera] port = /dev/ttyS0 Data can be put into multiple config files. They are loaded in this order:
If one or more of these files exist, they will be loaded in the above order, higher numbered ones overwriting lower ones. You can also add your own sections and items to this file for your own use. For example: Create a file, say, experiment1.ini:
[settings] data = 12 size = 45 name = My name is this And start pyro like:
% pyrobot -i experiment1.ini Then you will have access to your information through the engine.config interface. From the command line:
engine.config.get("settings", "data")
engine.config.get("settings", "size")
engine.config.get("settings", "name")
or from your brains:
self.getEngine().config.get("settings", "data")
self.getEngine().config.get("settings", "size")
self.getEngine().config.get("settings", "name")
|
| [ Home ] | [ Software ] | [ Curriculum ] | [ Hardware ] | [ Community ] | [ News ] | [ Publications ] | [ Search ] |
View Wiki Source | Edit Wiki Source | Mail Webmaster | |||||||