Skip to content

TransportLab/ARCity

Repository files navigation

ARCity

Augmented reality city project. See the live version here. The user-facing GUI can be found here

Components

  1. Stereolabs zed camera controlled via a python script
  2. three.js scene rendered in chrome sent to a projector
  3. flask server to communicate between the components
  4. traffic assignment simulation

Installation

  1. Download or clone this repository
  2. Set up the zed camera SDK by following the instructions here
  3. Install python3 and make sure you have the required packages by running pip install -r requirements.txt
  4. Open a terminal and cd to the directory you saved this repository
  5. In the terminal, run the local server with FLASK_APP=app.py then flask run OR if that doesn't work, try python app.py
  6. Open Google Chrome (or possibly Firefox, but untested)
  7. In Chrome, go to the following URL: http://localhost:5000/src/index.html

Usage

Many system parameters are controlled by URL flags, which can be used as, e.g.:

http://localhost:5000/src/index.html?debug

which will put the system in debug mode.