Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Traffic Signal State

The default connection order is clockwise starting at bearing 0. However, you can assign a custom index in the traffic light state to each connection. Among other things this permits signal groups where multiple connections always have the same state. See https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#defining_signal_groups

Am Mi., 28. Mai 2025 um 13:19 Uhr schrieb Rehab Abdellatif via sumo-user <sumo-user@xxxxxxxxxxx>:
Hi,

I'm importing a traffic model from SATURN (a traffic modeling software) into SUMO. I have an RGS file that contains traffic signal information, specifying which movements at each junction are allowed (green) or disallowed (red).

To convert this into a SUMO (TLL) file, I need to construct the signal state string, where each character represents the signal state (e.g., 'G', 'r') for a specific movement. I understand that these movements must follow a specific order corresponding to the internal connection order in SUMO.

My question is: how can I determine the correct order of connections at a specific junction in SUMO, so I can accurately form the corresponding signal state string? If I use sumolib to retrieve the connections of a junction, will this return the list of connections in the correct order?

Thanks,

Rehab

_______________________________________________
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