... | ... | @@ -26,4 +26,6 @@ Similarly to the central server, you will need to have to clone the [PubSub](htt |
|
|
|
|
|
## 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 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`).
|
|
|
You can then go to the Unity scene and open again the SumoConnection game object. On the inspector, open the section RabbitMQ Settings and change the IP and port to whatever address the rpc_client.py script is running on.
|
|
|
Then, go to the script my_script/SimulationObjects/TrafficLightObject.cs and modify host and port to whatever addresses the tl.py script is running on. The ports on RabbitMQ settings and on the traffic light script are NOT supposed to be the same if the ip addresses are identical.
|
|
|
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 |