Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

TrackerSB/DriveBuild

Repository files navigation

DriveBuild

PyPI - Package PyPI PyPI - Python Version PyPI - Wheel

Directory structure

├── client - The DriveBuild client (which is also available as Python package)
├── examples - A simple example of a formalized test
├── levels - The custom BeamNG level
├── mainapp - The MainApp
├── simnode - The SimNode
└── ai_stub - Basic scheme for AIs

Setup DBMS

DriveBuild uses PostgreSQL.

  1. Install PostgreSQL
  2. Open psql command command line
  3. Create a database (CREATE DATABASE drivebuild;)
  4. Create a database user and grant access (CREATE USER drivebuild WITH LOGIN SUPERUSER CREATEDB CREATEROLE INHERIT NOREPLICATION CONNECTION LIMIT -1 PASSWORD 'password';)
  5. Connect to the database (\c drivebuild)
  6. Apply database scheme (\i absolute/path/to/tableScheme.sql) NOTE: The path is required to have slashes in its path even though being on Windows
  7. Create DriveBuild user (INSERT INTO users VALUES ('test', 'test');)

Install

The instructions for installing the MainApp and SimNodes as well as for using the client can be found in the appropriate subdirectories. All projects come with requirements.txt files which specify all dependencies.