Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Traffic Lights and Independent phases

Thanks Jakob ans sorry I did not understand it at first. 
With this approach, that means I should change program dynamically.
I think that could work.
Thanks!


On Wed, 8 Aug 2018, 20:35 Jakob Erdmann, <namdre.sumo@xxxxxxxxx> wrote:
Hello,
The way I explained it 9 days ago should handle the described requirements.
Anyway, here is another way: define a second program that has an additional phase after the one were both directions are green.
In that additional phase only one of the directions has green anymore.
Via TraCI you can switch between those two programs using
trafficlights.setProgram and setPhase.

regards,
Jakob


2018-08-08 18:35 GMT+02:00 Jose Monreal Bailey <jmonreal@xxxxxxxxx>:
Hey everyone,

Is it possible to have a TL program that controls the lanes, but also that by Traci force a longer time for a phase in only one direction while everything else stay stop. This only under certain circumstances, so if that event does not happen, it will work as a normal basic program.

Normal program:

   <tlLogic id="B1" type="actuated" programID="0" offset="12">
       <param key="detector-gap" value="2.0"/>
       <param key="show-detectors" value="true"/>
       <phase duration="47" minDur="20" max="47" state="rrrrrggggrrrrrrggggrgrgr"/>
       <phase duration="3"  minDur="3" max="3" state="rrrrryyyyrrrrrryyyyryryr"/>
       <phase duration="37" minDur="37" max="37" state="ggggrrrrrrggggrrrrrrrgrg"/>
       <phase duration="3"  minDur="3" max="3" state="yyyyrrrrrryyyyrrrrrrryry"/>
   </tlLogic>

Best regards,
José

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Back to the top