Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Adding vehicles using TraCI

Dear Rohan,

 

you can add an incomplete route to trigger a rerouting process at insertion time. Just provide the departure and arrival edge when adding a route with traci.route.add. We have a test scenario where you can study it. Then use the created route for the next vehicle to add.

 

Best regards

Mirko

 

 

 

 

-----Original-Nachricht-----

Betreff: [sumo-user] Adding vehicles using TraCI

Datum: 2023-11-29T12:10:38+0100

Von: "191 000 via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>

 

 

 

Dear community,
Is the following scenario possible using Traci? If yes, kindly direct me on how to achieve this. We have a sumo config file. The TraCI adds a vehicle but does not assign any route(in the route file) to it. A departure lane and arrival lane are provided, and the route is calculated automatically.
I am doing this as I want to add a parking stop to the vehicle afterwards, but predetermined routes sometimes lead to an error of parking space not lying along the route. The idea is that we add all the vehicles at the same departure and arrival lane. However, assign random parking spaces to them.
Any help is greatly appreciated.
Thanks and Regards,
Rohan

 



Back to the top