[
Date Prev][
Date Next][
Thread Prev][Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Accumulated emissions by road
|
Dear Iñaki,
there are functions to query local (edge-related) emissions of the last time step, e.g. traci.edge.getCO2Emission.You can accumulate the values yourself by calling it at every time step for the edges you are interested in and store/sum the values in your own data structure. You may use subscriptions to query the values repeatedly.
Best regards,
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Accumulated emissions by road
Datum: 2025-05-21T09:05:34+0200
Von: "Iñaki Cejudo Fresnadillo via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Dear SUMO Team,
Is there a way (TraCI method, workaround...) to periodically obtain the accumulated emissions by road/edge of a network, between specific time steps, during the simulation? For example the accumulated emissions by road between steps 100 and 200. It is important to get them during the simulation, not afterwards. Thank you.
Kind regards,
Iñaki
--
![Vicomtech]()
Transport & Security Division
|
|
|
Iñaki Cejudo Fresnadillo Researcher Intelligent Systems for Mobility and Logistics icejudo@xxxxxxxxxxxxx +(34) 943 30 92 30
|
|
The information contained in this electronic message is intended only for the personal and confidential use of the recipients. If you have received this e-mail by mistake, please, notify us and delete it.
Avoid printing this message if it is not strictly necessary.
|