Skip to content

Simulating mixed traffic on different urban infrastructure layouts

License

Notifications You must be signed in to change notification settings

gandreadis/danger-zone

Repository files navigation

danger-zone

Simulating mixed traffic on different urban infrastructure layouts.

Installation

Make sure to have Python 3 (and PIP) installed. Once those are ready, run the following command from a terminal in this directory.

pip install -r requirements.txt

Usage

Simulation

Run the following command to get a list of all possible commands for the simulation tool:

python main.py -h

See the experiment_scripts folder for a list of sample execution scripts.

Playback

Run the following command to get a list of all possible commands for the playback tool:

python visualizer.py -h

Building the Report

The report is written in LaTeX, so you'll need to have a standard LaTeX distribution installed on your system. We recommend TeX Live. Once you have this set up, run the following commands:

cd report
python generate_listing.py
pdflatex main.tex

The compiled PDF will be placed in that same report folder, with the name main.pdf.

To count the total number of words in the report, run texcount -inc main.tex from the report directory.

Map Format Specification

danger-zone uses a text-based map definition system. A mapping from characters to tiles can be found in danger_zone/map/tile_types.py.