Thanks Jakob for this advice. I always try to avoid to read those complex compounds to reduce computation and IO. Do you
think using this will have a large influence on that? Calculating/reading all this data just to get the number of passed vehicles seems a bit over the top. Do you consider to provide such simple variable in the future?
Kind regards,
Karl
Von: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx>
Im Auftrag von Jakob Erdmann
Gesendet: Montag, 18. Juni 2018 21:21
An: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Betreff: Re: [sumo-user] Retrieve number of passed vehicles at induction loop via traci
Yes. This can be retrieved by using getVehicleData (0x17) and counting the number of unique vehicles recorded therein.
2018-06-18 18:05 GMT+02:00 Hübner, Karl <karl.huebner@xxxxxxxxxxxxxxxxxxx>:
Dear SUMO users,
I want to retrieve a correct number of vehicles which passed an induction loop (E1) within the last simulation step via TraCI. I currently use the variable 0x10 which corresponds to the „nVehEntered“ property of the XML output. However, I
noticed that with larger simulation steps (> 0.5s) and high speeds some vehicles are not recognized by this method. It seems they complete pass the induction loop but do not “enter” them. Is there any way to retrieve a value which corresponds to the number
of vehicles which passed the induction loop within the last simulation step via TraCI? E.g. something which corresponds to
“nVehContrib“?
Kind regards,
Karl
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user