Create home authored by Pierre,Engelstein's avatar Pierre,Engelstein
# Traffic Simulator
This is the traffic simulator global wiki.
Check [installation](#Installation) for the steps to install every components of the system.
Check [Run](#Run) for the steps to make the project run.
## Installation
### Client
The client runs [SUMO](https://sumo.dlr.de/wiki/Downloads) as a traffic simulator and [Unity](https://store.unity.com/download). (To download Unity on linux, click [here](http://beta.unity3d.com/download/292b93d75a2c/UnitySetup-2019.1.0f2)). Install both of them by following the instruction on their website.
The gitlab repository [sumo](https://gitlab.orbit-lab.org/traffic-simulator/sumo) contains the full Unity project and sumo files.
Clone it on your computer : `git clone --recurse-submodules https://gitlab.orbit-lab.org/traffic-simulator/sumo.git`. The Unity project is under the `sumo-unity` folder, and the SUMO configuration files are under the `sumo-simulator` folder.
Once on Unity, open the scene named "scene" on the assets folder, and open the inspector on the SumoConnection object. Make sure that Sumo Config File is set to `<path-to-sumo>\sumo-simulator\config.sumo.cfg` (choose your sumo clone folder). The ConnectionSettings set of parameters alows you to set the sumo server ip and port.
Make sure that the SUMO installation folder is added to your PATH variable (typically `C:\Users\native\Desktop\sumo-1.2.0\bin` on Windows).
### Central server
The central server runs [RabbitMQ](https://www.rabbitmq.com/download.html) as the message broker. On top of that the different scripts are running on [python 3](https://www.python.org/download/releases/3.0/) and needs the following additional packages :
* [pika](https://pika.readthedocs.io/en/stable/) for the connection with RabbitMQ.
* [pyserial](https://pypi.org/project/pyserial/) for the communication on USB.
Make sure to install them using pip3 and additional libraries if required by these packages.
### Cars
python3 with pika
## Run
\ No newline at end of file