Chang Liu

Results 21 comments of Chang Liu

For now, we don't have such an API, you can modify "src/cityflow.cpp" and re-compile the C++ code to add one.

testcase added

Did you pip install Cityflow and use the same python for running code?

That error means you have triggered some mistake in the underlying C++ code of Cityflow. It may because you have used an incorrect roadnet. Please double-check your roadnet. Or you...

You can calculate it by the lane width, vehicle width, and min vehicle gap, which are given in the roadnet.json and flow.json. For now, we don't have such an API,...

Hmmm, can you test a few more settings, I have not met something like this.

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

"set_vehicle_route()" returns true if the route is available and can be connected. In your case does it returns true? if not it may because the new route you given is...

Please look at the index.html in the "frontend" folder.

Emmm, I can't figure out why this happens. Could you please try to read the code of "generate_json_from_grid.py", which is a very simple and clear code.