-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird behavior of traffic lights on intersections #7738
Comments
This is the default behavior. "The traffic lights in the same group follow a cycle. The first one is set to green while the rest remain frozen in red. The active one spends a few seconds in green, yellow and red, so there is a period of time where all the lights are red. Then, the next traffic light starts its cycle, and the previous one is frozen with the rest." |
Hey @GoodarzMehr , Best, Ivan |
You're welcome. And to answer your question, you can write a code to get the traffic lights at the intersection (using the |
Following up on what @GoodarzMehr said, if both traffic lights were green, traffic would have to understand the concept of give way, which isn't a simple logic to design. Closing this is at has been answered |
CARLA version: 0.9.15
Platform/OS: Win11
Problem you have experienced: Traffic lights in opposite directions in intersections are not changed to green at the same time, but they kind of change to green in a "circle", instead of changing the traffic lights in opposing directions to green simultaneously.
Steps to reproduce: traffic lights in intersections on any map
Example is from the map "Town05". Behavior on the different maps is the same.
I've been trying to find any info if somebody had the same issue, however i couldn't find anything issued about it on gh or any info in carla docs.
Best regards,
Ivan
The text was updated successfully, but these errors were encountered: