Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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.

regards,
Jakob

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



Back to the top