... | ... | @@ -13,13 +13,15 @@ Once on Unity, open the scene named "scene" on the assets folder, and open the i |
|
|
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
|
|
|
This part of the system is supposed to run on a different computer than the one where Unity and SUMO runs. You first have to clone the [PubSub](https://gitlab.orbit-lab.org/traffic-simulator/pubsub) repository to get all the scripts : `git clone https://gitlab.orbit-lab.org/traffic-simulator/pubsub`
|
|
|
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
|
|
|
The cars need to have python 3 installed with the package pika.
|
|
|
Similarly to the central server, you will need to have to clone the [PubSub](https://gitlab.orbit-lab.org/traffic-simulator/pubsub) repository for the scripts, and have to install python 3 and pika.
|
|
|
|
|
|
## Run
|
|
|
Firstly, you have to run the scripts on the server and cars. On the central server you have to run the rpc_client.py and tl.py scripts (located on the python_rpc folder). On the machine that the cars are running on you have to run the rpc_server.py script (the syntax is `./rpc_server.py [car id] [host] [subscriptions...]`, for example `./rpc_server.py car1 localhost *.side`).
|
... | ... | |