I don't think reading this compound result will have an impact on the traci performance because the overhead of calling any traci function is much bigger than the number of bits it returns. I think having an extra function to return the number of passed vehicles would be a reasonable api extension but unless someone provides a patch this probably will not get implemeneted for quite some time.
regards, Jakob 2018-06-19 9:20 GMT+02:00 Hübner, Karl <[email protected]>: > 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:* [email protected] <[email protected]> *Im > Auftrag von *Jakob Erdmann > *Gesendet:* Montag, 18. Juni 2018 21:21 > *An:* Sumo project User discussions <[email protected]> > *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. > > > > regards, > > Jakob > > > > 2018-06-18 18:05 GMT+02:00 Hübner, Karl <[email protected] > >: > > 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 > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > > > > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
