... | @@ -41,10 +41,10 @@ You can the launch RabbitMQ by launching `sudo rabbitmq-server start` and then l |
... | @@ -41,10 +41,10 @@ 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. 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.
|
|
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 `config.sumo.cfg` file and modify the different files to where they are on your computer.
|
|
If you are running the server on one node on the ORBIT network, you might want to take a look at ssh tunneling and port forwarding to be able to connect to the servers from your local computer (you may not be connected to the same network and have to access the nodes only from an intermediary ssh connection).
|
|
If you are running the server on one node on the ORBIT network, you might want to take a look at ssh tunneling and port forwarding to be able to connect to the servers from your local computer (you may not be connected to the same network and have to access the nodes only from an intermediary ssh connection).
|
|
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.
|
|
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 `config.sumo.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.
|
|
|
|
|
... | | ... | |