... | ... | @@ -11,7 +11,7 @@ You have two options to get the files needed for the Unity project : |
|
|
* Clone [this repository](https://gitlab.orbit-lab.org/traffic-simulator/sumo) to a folder on your computer : `git clone --recurse-submodules https://gitlab.orbit-lab.org/traffic-simulator/sumo.git`.
|
|
|
* If somehow the cloning fails, you can also download the 2 sub-repositories here : [sumo-unity](https://gitlab.orbit-lab.org/traffic-simulator/sumo-unity) and [sumo-simulator](https://gitlab.orbit-lab.org/traffic-simulator/sumo-simulator) and unzip them to a location of your choice.
|
|
|
|
|
|
Once you have these files, you can open Unity Hub and add a new project as the folder where sumo-unity is located on your computer. The scene named "scene" is the main scene you will be interacting with. Under the hierarchy, open the game object SumoConnection. On the inspector, open the section SumoSettings and make sure that the setting `Sumo Config File` is set to `<path-to-sumo>\sumo-simulator\config.sumo.cfg` (choose your sumo-simulator clone or download folder).
|
|
|
Once you have these files, you can open Unity Hub and add a new project as the folder where sumo-unity is located on your computer. The scene named "scene" is the main scene you will be interacting with. Under the hierarchy, open the game object SumoConnection. On the inspector, open the section SumoSettings and make sure that the setting `Sumo Config File` is set to `<path-to-sumo>\sumo-simulator\config.sumo.cfg` (choose your sumo-simulator clone or download folder). You also have to edit this config.sumo.cfg file to modify the path of net-file, route-file and additional-files to where those files are connected on your computer, normally on the same folder as config.sumo.cfg.
|
|
|
|
|
|
### Central server
|
|
|
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`
|
... | ... | |