AayDee
AayDee

Reputation: 181

How to collect traffic data and macroscopic statistics in Veins?

Hello StackEx community.

I am implementing certain scenarios in Veins 3.0 and I wish to collect certain traffic statistics such as the Average Waiting Time, the Average Energy consumption, etc from my simulation.

Please help on how to generate and interpret these information.

Thanks

Upvotes: 0

Views: 898

Answers (1)

Christoph Sommer
Christoph Sommer

Reputation: 6943

TraCIMobility already records some statistics that you can directly use or build on. See, for example totalCO2Emission. Other statistics you might have to implement yourself, e.g., after detecting that a car was stopped for a certain time. See the OMNeT++ user manual pages on result recording and analysis for general information on how to do that and the Tic Toc tutorial for a concrete example.

Upvotes: 1

Related Questions