michele-segata / plexe-pyapi

Python APIs to control Plexe models in SUMO
49 stars 14 forks source link

release of platoon vehicle #15

Open zhaotuo0815 opened 1 year ago

zhaotuo0815 commented 1 year ago

hello, developer,I want the platoon vehicle to be released after reaching a certain road section. How should it be implemented?

michele-segata commented 1 year ago

TraCI offers the getRoadID API, which returns the ID of the edge a vehicle is currently traveling on. You should monitor that periodically and when you get there you should implement a maneuver for letting that car out of the platoon.