cityflow-project / CityFlow

A Multi-Agent Reinforcement Learning Environment for Large Scale City Traffic Scenario
https://cityflow-project.github.io
Apache License 2.0
789 stars 173 forks source link

Generate Flow for a roadnet.json file #123

Closed abderraouf2che closed 2 years ago

abderraouf2che commented 3 years ago

Hello; The big issue with the CityFlow project is the lack of documentation and updating the platform.

I want to ask is there any way to generate the Flow file from the ready roadnet.json File? Thanks

only-changer commented 3 years ago

Actually, there is a doc for CityFlow: https://cityflow.readthedocs.io/en/latest/. For now, we don't have a script for generating flow given roadnet, you can just traverse all roads in your roadnet file, and generate the flow given any two roads as origin and destination. CityFlow has the auto-route generator so that you only need to set the origin road and the destination road instead of the whole route.