Hi Akash, the redundancy is due to the fact that the traffic light controls links (lane to lane connections) and every lane can have multiple links which may have different signals. By having the complete list you can easily see which part of the state vector (the signal string, something like "GGrr") corresponds to which lane. If you really want it collapsed just do it afterwards, for instance in python you can construct a set which will eliminate duplicates: laneSet = set(laneList)
Best regards,
Michael
Am 14.04.19 um 22:39 schrieb Kamble Akash Ankush cs17m018:
> Hi,
> I have a simple scenario where two crossroads make a junction for a
> signal (exactly like one of the example tutorials on SUMO Wiki). The
> roads are two-way single laned edges. But when I call for
> getControlledLanes(), I get a list of 8 elements instead of 4 and each
> lane name was repeated twice, e.g.,
>
> laneList = traci.trafficlight.getControlledLanes("left_sig")
>
> When I print with "print(laneList)" this gives ,
>
>>>> ('nlls_0', 'nlls_0', 'rsls_0', 'rsls_0', 'slls_0', 'slls_0',
> 'wls_0', 'wls_0')
>
> Can anything be done to eliminate this redundancy? Thanks in advance.
>
> Regards,
> Akash.
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
