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

Dynamic and manual control over vehicle speed/position #140

Closed zlg9folira closed 1 year ago

zlg9folira commented 2 years ago

I am wondering if this simulator provides an interface to control position (x,y) and velocity for specific vehicle IDs on the fly and during simulation. Like, when you want to manually drive one or more vehicles at your desired location/speed. That is something supported by SUMO and other simulators, however, I was not able to find an answer in CityFlow documentation.

zhc134 commented 1 year ago

CityFlow supports change vehicle speed on the fly, use set_vehicle_speed API, see https://cityflow.readthedocs.io/en/latest/start.html#control-api