-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to change the position of idle vehicles? #9
Comments
@icyshenfighting Sorry for the delayed response. Regarding vehicle states, there are 3 states "offline", "idling" and "moving_to". You can check if the vehicle is one of those states by calling |
|
For rebalancing, you first check if a vehicle in state "idling" ( if vehicle.is_idling():
itinerary = Itinerary(clock.now, vehicle)
itinerary.move_to(some_random_location)
dispatcher.dispatch(itinerary) |
It seems we have to give the information about stations where idle vehicles can stop at. (Fleet.infleet_from_geojson), can I modify this limitation? I mean, I want vechicles stop at the positions when they finish one route and wait for new command.
Actually, I want to rebalance the idle vehicles and want to know how to do this.
The text was updated successfully, but these errors were encountered: