Hello, the durations must be given in Integer Milliseconds. so a phase duration of 31.00 must be given as 31000. regards, Jakob
2014-07-22 0:35 GMT+02:00 Daniel Krajzewicz <[email protected]>: > Hello Titus, > > Hmmm, what do you mean by "completly different"? I can imagine that > the offset may be interpreted differently and therefore the lights > switch at different times? > > Sincerely, > Daniel > > > 2014-07-19 9:16 GMT+02:00 Titus Rakkesh <[email protected]>: > > Hi Friends, > > Currently I am having the following static traffic light > configuration > > in a file. I want to convert the same behaviour to TraCI commands, > > > > > > <tlLogic id="1307347941" type="static" programID="0" offset="0"> > > <phase duration="31" state="GGrr"/> > > <phase duration="9" state="yyrr"/> > > <phase duration="31" state="rrGG"/> > > <phase duration="9" state="rryy"/> > > </tlLogic> > > > > How I can do this? > > > > I tried something lke this, > > > > myRYGDefinition = traci.trafficlights.Logic('1307347941',0,0,0,... > > {traci.trafficlights.Phase(3100,3100,3100,'GGrr'),... > > traci.trafficlights.Phase(900,900,900,'yyrr'),... > > traci.trafficlights.Phase(3100,3100,3100,'rrGG'),... > > traci.trafficlights.Phase(900,900,900,'rryy')}); > > > > > traci.trafficlights.setCompleteRedYellowGreenDefinition('1307347941',myRYGDefinition); > > > > But it is giving totally different behaviour. How I can do this? Pls > assist, > > > ------------------------------------------------------------------------------ > > Want fast and easy access to all the code in your enterprise? Index and > > search up to 200,000 lines of code with a free copy of Black Duck > > Code Sight - the same software that powers the world's largest code > > search on Ohloh, the Black Duck Open Hub! Try it now. > > http://p.sf.net/sfu/bds > > _______________________________________________ > > sumo-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
