Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] The use of traci.vehicle.add function

Well can you maybe rephrase where you are stuck or what exactly you do not understand? You can also have a look at some test simulations where traci.vehicle.add is called:

https://github.com/eclipse/sumo/blob/main/tests/complex/tutorial/traci_taxi/runner.py

https://github.com/eclipse/sumo/blob/main/tests/complex/traci/vehicle/vehicle/runner.py

 

Best regards

Mirko

 

 

 

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

Betreff: [sumo-user] The use of traci.vehicle.add function

Datum: 2023-03-07T07:25:40+0100

Von: "Zedric Banger II (zbanger)" <zbanger@xxxxxxxxxxx>

An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>

 

 

 

To whom it may concern,
 
I sent an email asking how to dynamically change the size of a platoon while the simulation is happening. I was then pointed towards some TraCI functions to use. In particular, I'm trying to use the add function but I'm new to SUMO and TraCI, so could someone give me a detailed example of how this needs to be structured. Currently I'm the changing the platoon size by changing values in the routes file .


Back to the top