Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to get the current vehicle insertion rate from TraCI ?

a) in each step call traci.lane.getLastStepVehicleIDs and count ids that are different from the previous step
b) in each step call traci.simulation.getDepartedIDList , followed by vehicle.getLaneID for the returned vehicle ids and count the occurrence of your lane
c) define a detector and retrieve it's data. traci.multientryexit supports aggregated data retrieval, the others only last-step-data retrieval.

Am Mi., 24. Nov. 2021 um 09:22 Uhr schrieb Hervé Diedie <hervediedie@xxxxxxxxx>:
How  can I get the current vehicle insertion rate of a lane from TraCI
if vehicles are automatically loaded by sumo from a .ro.xml  via repeated vehicle emissions ?

best regards.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top