Update home authored by Pierre,Engelstein's avatar Pierre,Engelstein
......@@ -13,7 +13,7 @@ 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`
This part of the system is supposed to run on a different computer than the one where Unity and SUMO runs. It is designed primarily to run on a linux machine. 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.
......@@ -24,5 +24,5 @@ Make sure to install them using pip3 and additional libraries if required by the
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`).
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 in the pubsub repository). 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`).
Once those scripts are running, you can start the Unity scene, making sure that all IP addresses and ports are correctly set up.
\ No newline at end of file