You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traffic lights operate in groups, and when one group's cycle ends, it waits at a red light until the other group's cycle finishes, resulting in a longer duration of the red light.
For example, if there are two groups (Group 1 and Group 2) and each maintains green for 10 seconds, yellow for 3 seconds, and red for 2 seconds:
When Group 1's cycle ends, Group 2's cycle begins, during which Group 1 stays on red.
Thus, Group 1's red light lasts for 2 seconds (Group 1's red) + 10 seconds (Group 2's green) + 3 seconds (Group 2's yellow) + 2 seconds (Group 1's red) = 17 seconds.
I found out that in CARLA, traffic lights stay on longer than the set time.
How to accurately calculate how much time is left until the red light changes, considering the cycles of other traffic lights within the traffic group, as shown in the example?
The text was updated successfully, but these errors were encountered:
seominseokt
changed the title
How can I calculate exactly how many seconds it takes for a red light to change?
How to calculate when the red light will change, considering the traffic light cycles of the traffic light groups?
May 22, 2024
CARLA version: 0.9.15
Platform/OS: Windows
I found out that in CARLA, traffic lights stay on longer than the set time.
How to accurately calculate how much time is left until the red light changes, considering the cycles of other traffic lights within the traffic group, as shown in the example?
The text was updated successfully, but these errors were encountered: