main script¶
The main.py script bootstraps the rover system, automatically importing and instantiating the enabled classes. After starting all the RoverProcesses, the main script just sleeps in a loop until a keyboard interupt is generated.
To run from the command line, enter:
python3 main.py
Depending on your operating system, python 3 may be the default version of python, so you could get away with:
python main.py
To stop the rover software, press Ctrl-c.
-
main.
init_logging
()¶ Setup logging; Set logfile name, set debug level, set format.
-
main.
init_modulesList
(*args)¶ Check for hardware and populate modulesList Call with the names of the RoverProcesses you want enabled. Returns: the modulesList
-
main.
init_rover_classes
(modulesList)¶ Automatically import all classes from the modules specified in modulesList.