| GarciaScript | Index |
Garcia Scripts
The aGarciaScript application offers a convenient way to test robot behaviors. The source code for this application is also included in the software distribution as a handy example for developers.
Configuration File
The aGarciaScript application relies on settings in a configuration file named "garcia.config". This file resides in the aBinary directory of the Garcia software and is the same file used by the Garcia API for basic configuration information.
The most important information in this file is the settings that affect the link settings the GarciaTool uses. These are:
| setting name | description | default |
|---|---|---|
| portname | The name of the port to use for communication | COM1 (Windows) COM1: (WinCE) ttyS0 (Linux) tty.KeyUSA19QI121.1 (MacOS X) |
| baudrate | The communication speed to use | 38400 |
The settings above are the defaults. You may have a different portname based on the particular configuration of your host machine.
With the proper settings in the garcia.config file and the Garcia robot turned on, this application should show a proper heartbeat by displaying a small blinking green circle in the application. The Garcia robot should show a cooresponding heartbeat indication with the two green LED indicators in the head.