FYI. I know each vehicle in sumo is modeled by a module in OMNET++ that contains a TraCIMobility submodule that includes parameters such as "accidentStart" and "accidentDuration". But it is not clear how TraCIMobility use these parameters to stop vehicles in SUMO. Shouldn't vehicle routes already be defined in the .rou.xml files in SUMO?
Asked
Active
Viewed 117 times
1 Answers
0
You are absolutely right: vehicle movement is, by default, fully governed by SUMO. There is, however, a way of changing vehicle behavior at runtime, by calling TraCI methods from OMNeT++ (here: causing a vehicle to stop).

Christoph Sommer
- 6,893
- 1
- 17
- 35
-
1Thanks!!! Could you also point to me which function it is as I haven't found any? – James S. Mar 24 '20 at 21:09
-
https://github.com/sommer/veins/blob/veins-5.0/src/veins/modules/mobility/traci/TraCICommandInterface.h has a list of all functions. The tutorial simulation calls one of them here: https://github.com/sommer/veins/blob/veins-5.0/src/veins/modules/application/traci/TraCIDemo11p.cc#L59 – Christoph Sommer Mar 25 '20 at 09:45