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

Thank you Jakob

On Thu, 17 Dec 2020 at 08:18, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Traci correctly returns a list of 24 sublists. The sublists at index 3,8,13 and 18 are empty because those indices are not used by any connections.
The easiest way to clean up your program and reassign indices is to use the "Clean States" button in netedit traffic light mode.

regards,
Jakob

Am Mi., 16. Dez. 2020 um 11:42 Uhr schrieb Jose Monreal Bailey <jmonreal@xxxxxxxxx>:
Hi Jakob,

I am attaching the network and additional file with the program configuration.

Best regards,
Jose

On Wed, 16 Dec 2020 at 10:37, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
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
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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