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

Reply via email to