... | ... | @@ -4,13 +4,14 @@ This is the traffic simulator global wiki. |
|
|
|
|
|
## Installation
|
|
|
### Client
|
|
|
The client runs [SUMO](https://sumo.dlr.de/wiki/Downloads) as a traffic simulator and [Unity](https://store.unity.com/download). (To download Unity on linux, click [here](http://beta.unity3d.com/download/292b93d75a2c/UnitySetup-2019.1.0f2)). Install both of them by following the instruction on their website.
|
|
|
The client runs [SUMO](https://sumo.dlr.de/wiki/Downloads) as a traffic simulator and [Unity](https://store.unity.com/download). (To download Unity on linux, click [here](http://beta.unity3d.com/download/292b93d75a2c/UnitySetup-2019.1.0f2)). Install both of them by following the instruction on their website. After having installed SUMO, make sure that its installation folder is added to your PATH variable (typically `C:\Users\native\Desktop\sumo-1.2.0\bin` on Windows).
|
|
|
|
|
|
The gitlab repository [sumo](https://gitlab.orbit-lab.org/traffic-simulator/sumo) contains the full Unity project and sumo files.
|
|
|
Clone it on your computer : `git clone --recurse-submodules https://gitlab.orbit-lab.org/traffic-simulator/sumo.git`. The Unity project is under the `sumo-unity` folder, and the SUMO configuration files are under the `sumo-simulator` folder.
|
|
|
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 on Unity, open the scene named "scene" on the assets folder, and open the inspector on the SumoConnection object. Make sure that Sumo Config File is set to `<path-to-sumo>\sumo-simulator\config.sumo.cfg` (choose your sumo clone folder). The ConnectionSettings set of parameters allows you to set the sumo server IP and port. The Unity scene has by default the oculus VR setup but you can remove the vr camera and replace it by a standard Unity camera.
|
|
|
|
|
|
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).
|
|
|
Once you have these files, you can open Unity 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. Make sure that Sumo Config File is set to `<path-to-sumo>\sumo-simulator\config.sumo.cfg` (choose your sumo-simulator clone or download folder).
|
|
|
|
|
|
### 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`
|
... | ... | |