[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[sumo-user] Traci: getRedYellowGreenState and getControlledLinks
|
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
Attachment:
Junction.jpg
Description: JPEG image