cityflow-project / CityFlow

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

cityflow for irregular Intersection #160

Closed WaterFountain-Jack closed 1 year ago

WaterFountain-Jack commented 1 year ago

Hi, with the help of the CityFlow you wrote, I've been able to run some regular road networks, but I'm having some problems with things like five-fork or three-fork where I can't code Intersection by rules (Many operations of cityflow are generated according to the fixed position of Intersection on the grid), is there a possibility that cityflow can expand and irregular Intersection?

zhc134 commented 1 year ago

CityFlow support irregular intersections, you need to generate your own roadnet file as long as it conform to the format specified here

BackMountainDevil commented 8 months ago

solution:

  1. write irregular Intersection by hands
  2. convert an irregular SUMO intersection into CityFlow format

CityFlow/tools/generate_grid_scenario.py can generate NxM grid road network with traffic flows(regular 4-fork).

I guess he/she wants to knoe is there a tool to generate irregular Intersection roadnet

WaterFountain-Jack commented 8 months ago

你好,我是宣传部的乔嗣尧,已收到您的来信,我会及时查收并回复。如果您有急事,请联系我: 19823327107  或   18087037706