see the updated documentation at http://sumo.dlr.de/wiki/Simulation/Traffic_Lights#Signal_state_definitions
2016-02-10 2:55 GMT+01:00 Guangyu Zou <[email protected]>: > Hi Jakob, > > > > Thanks a lot for your reply! I tried the second option, i.e., control the > simulation via the TraCI. The example simulation runs perfect matching my > requirements. However, I have some questions regarding runner.py in the > tutorial. > > > > Why does traci.trafficlights.setPhase("0", 2) set green for the direction > of EastWest? > > Why does traci.trafficlights.setPhase("0", 3) set green for the direction > of NorthSouth? > > > > The following is the XML definition for the traffic light. I understand > that g is green, r is red etc. But I am confused the meaning of put GrGr > together. I read through the online tutorial but cannot find the clear > explanation about the phase of traffic light on > http://sumo.dlr.de/wiki/Simulation/Traffic_Lights#.3Cphase.3E_Attributes > > > > Could you please give me a more explicit definition about the phases? > > > > <tlLogic id="0" type="static" programID="0" offset="0"> > > <phase duration="31" state="GrGr"/> > > <phase duration="6" state="yryr"/> > > <phase duration="31" state="rGrG"/> > > <phase duration="6" state="ryry"/> > > </tlLogic> > > > > Thanks again, > > Guangyu > ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ sumo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-devel
