Author: Sagar Behere [email protected]
When Sarathi starts, it reads some configuration files to set a number of parameters. The configuration files are located in $HOME/.config/Sarathi. The main configuration file is called Sarathi.conf and there is one configuration file for each plugin that Sarathi uses, named after the plugin. In case no configuration files exist, they are created when Sarathi starts and contain default values. Typically, these default values need to be modified to reflect the circumstances under which Sarathi is running. Example configuration files can be found in the folder config, under the Sarathi root directory.
Before you start Sarathi, it is necessary to start any other program Sarathi or its plugins depend on. A common example is to have a server running that does the actual robot control and Sarathi's robot plugin interacts with it. In this case, the server needs to be up and running before Sarathi is started.
Sarathi can be started without any arguments, in which case it binds to 127.0.1 at port 18000. Use the –help option to see how to change this. When Sarathi starts, it tries to start all its components. If a component cannot start for some reason (for example, if its initialization fails), then components depending on it will not be started. In the current implementation, the startup sequence is as follows
Sarathi writes a lot of information about what it is doing to a file named report, in the directory it is executing in. It is recommended to run tail -f report in a console when using Sarathi, since that will provide a lot of helpful information in case Sarathi isn't behaving as expected. When Sarathi starts, it provides you with a prompt where you can enter commands. Sometimes the prompt is obstructed by messages Sarathi displays. In this case, just press enter and you'll be able to see the prompt again. In the ideal case, you won't need to enter any commands. In case you do, the following is a small subsection of helpful commands:
Sarathi is not perfect! If something doesn't work as expected,