michele-segata / plexe-pyapi

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

hou to generate new platoon vehicles with new route #11

Closed zhaotuo0815 closed 2 years ago

zhaotuo0815 commented 2 years ago

Hello developers, in the demo case you gave, the vehicle driving path is not defined in the functions add_vehicles and add_platooning_vehicle for generating vehicles. If I now have a new route (already declared in the rou file), how can I set it on the new path for generating platoon vehicles?

michele-segata commented 2 years ago

The route is hardcoded in this method here. As you can see it refers to a route platoon_route which is defined here. You can edit the method and add a parameter called route and substitute the hardcoded value.

zhaotuo0815 commented 2 years ago

The route is hardcoded in this method here. As you can see it refers to a route platoon_route which is defined here. You can edit the method and add a parameter called route and substitute the hardcoded value.

thank you so much