-
Notifications
You must be signed in to change notification settings - Fork 1
Creating simulation from network
Yair Feldman edited this page Jun 24, 2018
·
11 revisions
We provide a simple script to generate such a simulation files, with a user-specified number of cars.
This script can be found at SummitBTW/simulator/preprocess/create_simulation_from_net.py
In order to run this script, run the following command (from the directory SummitBTW):
python -m simulator.preprocess.create_simulation_from_net <path-to-directory> <desired-number-of-cars-in-simulation>The network file should be placed in the <directory>.
The script will then generate 5 files and save it in the <directory>:
- e2.add.xml: include all lane area detectors in the network.
- routes.rou.alt.xml: route alternatives file.
- routes.rou.xml: include all Vehicles, Vehicle Types and Routes.
- trips.trips.xml: trip definitions for DUAROUTER and SUMO.
-
<destination-directory>.sumocfg.xml: Configuration file for SUMO and SUMO-GUI.
More about Simulation Output