()
| 50 | |
| 51 | |
| 52 | def main(): |
| 53 | print('Checking python version') |
| 54 | py = check_py_version() |
| 55 | tf_valid = get_tf_valid() |
| 56 | |
| 57 | if 'ubuntu' in platform.platform().lower(): |
| 58 | # Install tk for dashboard |
| 59 | run_command('sudo apt-get install -y python3-tk', throw=False, verbose=True) |
| 60 | |
| 61 | run_command(py + ' -m pip install -r requirements.txt', verbose=True) |
| 62 | |
| 63 | if tf_valid: |
| 64 | print('Starting baseline agent') |
| 65 | os.system('python main.py --baseline') |
| 66 | else: |
| 67 | print('Starting sim in path follower mode') |
| 68 | os.system('python main.py --path-follower') |
| 69 | |
| 70 | |
| 71 | def get_tf_valid(): |
no test coverage detected