Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Count Veh on Induction Loop



Hi, I am working with induction loops for monitoring and speed adaption.

I came across some inconsistencies between the generated xml output (XML) of induction loops and the values that can be retrieved via traci.induction_loop api (API).

So it would be great to fix it or help me in case I make wrong assumptions.

1) via API we do getLastStepVehicleNumber which is as far as I can say the number of cars on the loop. but here https://sumo.dlr.de/docs/TraCI/Induction_Loop_Value_Retrieval.html it says that it corresponds to nVehEntered from XML. Here https://sumo.dlr.de/docs/Simulation/Output/Induction_Loops_Detectors_%28E1%29.html it also says that nVehEntered gives all vehicles on the loop. But this is not the case (testable with a long induction loop eg length='50') - I would say the nVehEntered really just gives us the number of vehicles that passed the entry of the loop. Would be great to align the metrics or even have nVehEntered, nVehDetected (exited), nVehNumber (on) in both XML and API.

2) I can image the with the metrics that are currently available for XML and API one can compute the ones that are not available in one of them but it would be more convenient to really have the same metrics in both (eg. flow (just in XML), time_since_detection (just in API).


Cheers

Till

Back to the top