Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] traffic lights

Hello,
the number of letters in the state definition corresponds to the number of controlled connections so it depends on
- the number of edges
- the number of lanes
- the pattern in which the different driving directions are distributed on the lanes
In your case I suspect the 8 states are for 6 straight connections (3 in each direction) and 2 turn-arounds (1 in each direction).

Generally it is recommended to use one of the automatically generated signal plans as a template when designing custom phases
For details see
http://sumo.dlr.de/wiki/Simulation/Traffic_Lights

regards,
Jakob


2017-11-09 13:18 GMT+01:00 Natalia Liora via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
Hello,

I use the following nod. , edg. and tll. xml files in order to define my network (this is a small part of my network, only 3 nodes). The road segment is a two-way road consisting of 3 lanes each. In the second node I have a light traffic. I realised that in order not to get an error I had to define the light traffic states with 8 letters (8 possible directions). Is this a default case for sumo? What if I had in real, only 6 directions? Do I have to define this somewhere in the xml files?

P.S. This occurs only with the two-way roads. In case of an one direction road the number of the required letters in the states of light traffic is equal to the number of lanes.

Thanks
Natalia

<nodes>
        <node id="1" x="22.970728" y="40.574811" z="0.7"/>
    <node id="2" x="22.96996" y="40.57629" z="0.7" type="traffic_light"/>
        <node id="3" x="22.9697" y="40.5769" z="0.7”/>
</nodes>


<edges>
        <edge id="1" from="1" to="2" numLanes="3"/>
        <edge id="1i" from="2" to="1" numLanes="3"/>
        <edge id="2" from="2" to="3" numLanes="3"/>
        <edge id="2i" from="3" to="2" numLanes="3”/>
</edges>


<additional>
    <tlLogic id="2" type="static" programID="0" offset="0">
          <phase duration="20" state="GGGGGGGG"/>
          <phase duration="5" state="yyyyyyyy"/>
          <phase duration="20" state="rrrrrrrr"/>
          <phase duration="5" state="yyyyyyyy"/>
    </tlLogic>
</additional>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/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