Search code examples
simulationomnet++veins

How insert the vehicles/nodes in the scenario by *.car[*].appl.numVehicles at the timestamp zero?


On Veins, when I create routes and set the number of vehicles/nodes in the scenario by the ini file (see below), they are insert in the simulation at the timestamp 1.2 s.

*.car[*].appl.numVehicles = 52

There is a way to insert the vehicles using *.car[*].appl.numVehicles at the timestamp 0 s?

I'd appreciate any help


Solution

  • I found the reason for insert in 1.2 s. On TraCIScenarioManager.cc (if (simTime() > 1)) has a the test to insert after 1 s, probably waiting for insert by "vehicle ID". So, now it's Ok for me. Thanks for all help : ).