Update home authored by Pierre,Engelstein's avatar Pierre,Engelstein
...@@ -15,7 +15,7 @@ Once those softwares are installed, you have two repositories to clone : ...@@ -15,7 +15,7 @@ Once those softwares are installed, you have two repositories to clone :
* `cd sumo-unity-lfs` * `cd sumo-unity-lfs`
* `git lfs install` * `git lfs install`
* `git lfs pull` * `git lfs pull`
* The [SUMO files](https://gitlab.orbit-lab.org/traffic-simulator/sumo-simulator). Clone it using `git clone https://gitlab.orbit-lab.org/traffic-simulator/sumo-simulator.git`. Go to the folder where you have cloned it and open the file named `config.sumo.cfg`. * The [SUMO files](https://gitlab.orbit-lab.org/traffic-simulator/sumo-simulator). Clone it using `git clone https://gitlab.orbit-lab.org/traffic-simulator/sumo-simulator.git`.
### Server ### Server
The server programs are designed to be used on a linux machine. You may have to adapt them if you need to make them run on a different machine. You will need the following softwares : The server programs are designed to be used on a linux machine. You may have to adapt them if you need to make them run on a different machine. You will need the following softwares :
...@@ -41,7 +41,8 @@ You can the launch RabbitMQ by launching `sudo rabbitmq-server start` and then l ...@@ -41,7 +41,8 @@ You can the launch RabbitMQ by launching `sudo rabbitmq-server start` and then l
* `./tl.py` * `./tl.py`
### Client ### Client
When those scripts are running, you have some modifications to make to your local unity project. Open a new unity project into the folder where you cloned the repository sumo-unity-lfs. When Unity is opened, open the scene named "Scene" and import TMP-Essentials as asked. When those scripts are running, you have some modifications to make to your local unity project. First, go to the folder where you cloned the sumo-simulator repository. Open the `sumo.config.cfg` file and modify the different files to where they are on your computer.
You can then open a new unity project into the folder where you cloned the repository sumo-unity-lfs. When Unity is opened, open the scene named "Scene" and import TMP-Essentials as asked.
* Open the game object named **SumoConnection** and under **Sumo Settings** make sure that **Sumo Config File** is set to where the `sumo.config.cfg` file is. * Open the game object named **SumoConnection** and under **Sumo Settings** make sure that **Sumo Config File** is set to where the `sumo.config.cfg` file is.
* Under **RabbitMQ Settings**, make sure that the IP and port are corresponding to the one you put on the rpc_client.py script. * Under **RabbitMQ Settings**, make sure that the IP and port are corresponding to the one you put on the rpc_client.py script.
* Open the file named `TrafficLightObject.cs` under `Assets/my_scripts/SimulationObjects/` and modify the host and port to the one you put on the tl.py script. * Open the file named `TrafficLightObject.cs` under `Assets/my_scripts/SimulationObjects/` and modify the host and port to the one you put on the tl.py script.
... ...
......