Huichu Zhang

Results 35 comments of Huichu Zhang

please check https://github.com/zhc134/tlc-baselines, where we provide OpenAI Gym compatible environments for traffic light control scenario and a bunch of baseline methods.

You can change `--interval` (seconds between two consecutive vehicles) to increase the number of vehicles. By default, the generator will generate vehicles with straight routes (without any turns). If you...

When I run `python generate_grid_scenario.py 1 1 --turn`, there are 12 flows in `flow.json`. What do you mean by **four** vehicle records? Also to notice, if you set interval to...

@ThisIsIsaac You're right. And for virtual intersections, `trafficLight` is not required and has no effect.

> 1. how do you reset the simulation to scratch? Do you simply call `eng = cityflow.Engine(config_path, thread_num=1)` again? You can use `eng.reset()` (Notice this does not reset random state)....

> what are some paramters to eng.reset()? I think it could be helpful if it is in the docs. I will make a push you are busy and can direct...

@ThisIsIsaac each vehicle has a parameter `maxNegAcc` which is specified in `flowFile`. please see https://cityflow.readthedocs.io/en/latest/flow.html for more detail

Currently, we do not support changing `replayFilePath` on the fly. Please open a new issue, clarify your needs and we will add it to our develop plan. BTW, `eng.reset()` won't...

If you call `eng.reset()` then yes it appends newer replays to the end. However, if you create a new `Engine` object with same `replayFilePath`, it will clear the file first.