I am looking to deploy 10 cars in veins and how to connect each car. Is there any example in the veins tutorial?
Asked
Active
Viewed 208 times
2 Answers
1
Veins is able to spawn vehicles itself (and sync them to sumo). However, that is not covered in the examples yet. You should be able to find all the relevant code in the TraCIScenarioManager
class.

dbuse
- 21
- 2
0
In Veins 5.0, you can instantiate a TraCIVehicleInserter
module in your simulation to have Veins automatically insert numVehicles
(see https://github.com/sommer/veins/blob/veins-5.0/src/veins/modules/mobility/traci/TraCIVehicleInserter.ned#L43) vehicles in your simulation -- and to insert new ones whenever the number of active vehicles drops below the configured number.

Christoph Sommer
- 6,893
- 1
- 17
- 35