You can call traci.person.getVehicle. If the return value is empty, the person is still waiting for the vehicle to arrive.
Am Di., 7. Mai 2019 um 08:16 Uhr schrieb steniero <[email protected]>: > Thank you very much. > I am counting all the seconds in which the velocity of a pedestrian is 0, > is there any way then to understand wheter a pedestrian is stopping because > he is waiting at the stop or because he is onboard of a shuttle stuck in > traffic? > > Stefano > > On Thu, May 2, 2019 at 2:34 PM Jakob Erdmann <[email protected]> > wrote: > >> Waiting at a stop is already part of the driving stage so you will see a >> '3'. >> Stage type 4 only comes up when using an 'access' element to reach the >> stopping place >> Persons should never be in stage type 5. This is only kept in the plan to >> allow rerouting. >> >> Am Do., 2. Mai 2019 um 13:54 Uhr schrieb steniero <[email protected]>: >> >>> Hi, >>> I am using the function traci.person.getStage(personID) in order to >>> monitor the number of people waiting at the stop. >>> What is the stage code that I obtain for them? 1 or 4? I don't >>> understand what 4 and 5 stages mean, could you please clarify it? >>> I am referring to: >>> https://sumo.dlr.de/pydoc/traci._person.html#PersonDomain-getStage >>> >>> >>> Thank you >>> Stefano >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://www.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://www.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://www.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://www.eclipse.org/mailman/listinfo/sumo-user
