I am using Veins simulator, for creating cars with path I am using the following commands:
python c:/DLR/Sumo/tools/randomTrips.py -n test.net.xml -e 1200 -l
python c:/DLR/Sumo/tools/randomTrips.py -n test.net.xml -r test.rou.xml -e 1200 -l
This command generated 1200 vehicles for 1200 sec of simulation but I want to generated 1200 vehicles for 100 sec of simulation. How can I do that?
-e
defines the end time. – Julian Heinovskin
vehicles depart between timest0
andt1
set the options-b t0 -e t1 -p ((t1 - t0) / n)
. More control you cannot achieve by usingrandomTrips.py
. Then you need to create a routes file. – Julian Heinovski