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
Mismatching phase size in tls #5775
Comments
If the junction allows turnarounds then there may be 20 connections. Please have a look at the connectivity in netedit. It may also be better to edit the phases in netedit directly. |
Hello @behrisch, Thank you for your response. I verified it in netedit and everything seems to be right, there are no turnarounds and connectivity is correct also... I am not pretty sure if 16 is the correct phase size or not. Do you have any idea of why id doesn't work? |
Can you please post the exact error message and retry with the most recent sumo version and if that does not solve the problem attach the network to this issue? |
Hello again @behrisch, You'll find attached a screenshot showing the error message. I am using a framework called https://flow-project.github.io that plugs in with SUMO. You'll also find attached the network files that I am currently using in order to run my simulations with FLOW. Thank you very much in advance! Antonio |
The error does not occur with the traffic light program in the additional file but there seems to be an online modification of the TLS (probably using traci). This one seems to be faulty. You can see that from the fact that sumo complains about the "online" program. None of your programs has such a name, it is used by sumo to flag dynamically modified TLS. Please post your script. |
You can find the scripts you need (from the FLOW RL framework) in the following link: @kjang96 do you know why is this happening? |
@Antonio-Dominguez is it possible you're allowing different turns on some of the traffic lights in your system? One thing you can try is using the same traffic light setting (same phases, same routes) and seeing if this works. Also--when you're in sumo-gui, you can go to settings > Junctions > click "Show link tls index" to confirm that there are 4 indices in each lane. |
It turns out that the phase size was correct, but my flow environment ( |
Hello,
I am currently using a simple grid scenario containing 25 intersections. All of them are similar. You can see attached a picture of the road network:
The traffic light program is shown below:
<tlLogic id="center20" type="static" programID="0" offset="0"> <phase duration="25" state="GGGgrrrrGGGgrrrr"/> <phase duration="7" state="yyygrrrryyygrrrr"/> <phase duration="6" state="rrrGrrrrrrrGrrrr"/> <phase duration="7" state="rrryrrrrrrryrrrr"/> <phase duration="25" state="rrrrGGGgrrrrGGGg"/> <phase duration="7" state="rrrryyygrrrryyyg"/> <phase duration="6" state="rrrrrrrGrrrrrrrG"/> <phase duration="7" state="rrrrrrryrrrrrrry"/> </tlLogic>
But unfortunately, I get an error when I run the simulation. Does anyone know why?
The phase size must be 16 since there are 16 possible turning movements per edge. I don't understand it.
Any comment will be really appreciated, thank you!
Antonio
The text was updated successfully, but these errors were encountered: