Using traci, you have to monitor the traffic light state continuously to determine phase duration. Using the aforementioned XML outputs may be easier since they automate this.
Am Fr., 22. Nov. 2019 um 09:40 Uhr schrieb Jane Cheung < [email protected]>: > Thanks, Jakob, how could I know the red phase duration if the traffic > type is actuated one? > > On Fri, Nov 22, 2019 at 3:37 AM Jakob Erdmann <[email protected]> > wrote: > >> Yes. You can use traci to check the number of vehicles that are waiting >> in front of a red light. Depending on your network, you may have to search >> along multiple lanes until you have covered the relevant distance (e.g. >> queue length). >> >> Am Do., 21. Nov. 2019 um 11:24 Uhr schrieb Jane Cheung < >> [email protected]>: >> >>> could I use traci to realize my proposed objects? >>> >>> On Thu, Nov 21, 2019 at 15:04 Jakob Erdmann <[email protected]> >>> wrote: >>> >>>> 1) >>>> https://sumo.dlr.de/docs/Simulation/Output/Traffic_Lights.html#coupled_lane_area_detectors >>>> 2) for historical reasons the summary output refers to vehicles that >>>> are waiting for insertion (due to lack of road space) as "waiting". >>>> Vehicles that are slowed to a halt are counted as "halting" >>>> >>>> Am Do., 21. Nov. 2019 um 06:55 Uhr schrieb Jane Cheung < >>>> [email protected]>: >>>> >>>>> Dear all, >>>>> I want to get the waiting number and waiting time of vehicles at >>>>> intersections (junction) when traffic lights at red phase. What's the best >>>>> way for me to do that? >>>>> If my simulation time is 10800s (3hours), and the traffic lights are >>>>> actuated ones. How could I know the waiting number and the red phase >>>>> duration in each circle of traffic lights?? >>>>> >>>>> >>>>> More question, what's the difference between the meaning of " >>>>> *halting"* and the meaning of "*waiting*"? >>>>> >>>>> >>>>> >>>>> Any kind response would be appreciated! >>>>> >>>>> Best regards! >>>>> >>>>> Jane >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >> > _______________________________________________ > 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
