Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Traci: getRedYellowGreenState and getControlledLinks

Please attach the network.

Am Mi., 16. Dez. 2020 um 11:28 Uhr schrieb Jose Monreal Bailey <jmonreal@xxxxxxxxx>:
Hey everyone,

I am trying to associate the lanes state with its corresponding TL phase. I have a junction (image attached) where the right lane on every edge only turns to the right, and my TL program is the following,

        <phase duration="3" max="3" minDur="3" state="rrrrrrrrryrrrrrrrrryrrrr"/>
        <phase duration="30" max="30" minDur="10" state="rrrrrGGGGrrrrrrGGGGrGrGr"/>
        <phase duration="3" max="3" minDur="3" state="rrrrryyyyrrrrrryyyyryryr"/>
        <phase duration="15" max="15" minDur="5" state="rrrrGrrrrrrrrrGrrrrrrrrr"/>
        <phase duration="3" max="3" minDur="3" state="rrrryrrrrrrrrryrrrrrrrrr"/>
        <phase duration="18" max="18" minDur="6" state="GGGGrrrrrrGGGGrrrrrrrGrG"/>
        <phase duration="3" max="3" minDur="3" state="yyyyrrrrrryyyyrrrrrrryry"/>

However, I believe my program is either wrong, or is there an error in getControlledLinks. As the length of the state of a phase is 24, but getControlledLinks only brings 20.
Am I missing something?

Best regards,
Jose
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top