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 <
[email protected]>:

> 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 <[email protected]> wrote:
>
>> Please attach the network.
>>
>> Am Mi., 16. Dez. 2020 um 11:28 Uhr schrieb Jose Monreal Bailey <
>> [email protected]>:
>>
>>> 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
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to