Skip to content
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

Closed
Antonio-Dominguez opened this issue Jun 27, 2019 · 8 comments
Closed

Mismatching phase size in tls #5775

Antonio-Dominguez opened this issue Jun 27, 2019 · 8 comments

Comments

@Antonio-Dominguez
Copy link

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:
Capture d’écran, le 2019-06-27 à 10 04 28 a m
Capture d’écran, le 2019-06-27 à 10 04 34 a m

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

@behrisch
Copy link
Contributor

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.

@behrisch behrisch changed the title Mismatchning phase size in tls Mismatching phase size in tls Jun 28, 2019
@Antonio-Dominguez
Copy link
Author

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?

Capture d’écran, le 2019-06-28 à 9 51 59 a m

Capture d’écran, le 2019-06-28 à 9 46 02 a m

@behrisch
Copy link
Contributor

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?

@Antonio-Dominguez
Copy link
Author

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

Capture d’écran, le 2019-07-02 à 11 45 46 a m

NETWORK.zip

@behrisch
Copy link
Contributor

behrisch commented Jul 5, 2019

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.

@Antonio-Dominguez
Copy link
Author

Antonio-Dominguez commented Aug 7, 2019

You can find the scripts you need (from the FLOW RL framework) in the following link:
FLOW FILES

@kjang96 do you know why is this happening?

@kjang96
Copy link

kjang96 commented Aug 20, 2019

@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.

@Antonio-Dominguez
Copy link
Author

It turns out that the phase size was correct, but my flow environment ( green_wave_env.py ) was setting the traffic light state in the 'online' program with a bad phase size. It works now.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants