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

Defining traffic light logic with TrafficLightParams does not write to .xml for SUMO #1038

Open
habibi1195 opened this issue Mar 3, 2021 · 0 comments
Labels

Comments

@habibi1195
Copy link

Bug Description:

As stated in the title, defining traffic light logic with TrafficLightParams from flow.core.params does not create the appropriate output in the .net.xml file for SUMO to read.

After defining phases and using the TrafficLightParams.add(node_id, programID = , phases=), I can see that they are correctly accepted when checking TrafficLightParams.get_properties().

However, I noticed that in the SUMO GUI, the traffic lights were exhibiting default behavior (with parameter value for "programID" as "0"). Upon checking the .net.xml file lines associated with the traffic lights, the tlLogic program id is indeed 0, and the phases are all default values.

@habibi1195 habibi1195 added the bug label Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant