Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] terminate a simulation when halt time exceeds a value with TraCI

Hi Tiago,

 

TraCI will simulate as many time steps as you ask for (see docs) in your script. If you want it to stop under the named conditions, you need to monitor those and then make your script terminate (e.g. by stepping out of the time step loop). In which sense do you mean "failed" / "successful"? You can catch an TraCIError, but I think you refer to your terminating conditions. In that case, there is no standardised way.

 

Best regards

Mirko

 

 

 

 

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

Betreff: [sumo-user] terminate a simulation when halt time exceeds a value with TraCI

Datum: 2023-12-15T10:07:12+0100

Von: "Tiago Furtado via sumo-user" <sumo-user@xxxxxxxxxxx>

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

 

 

 

Hi all,
 
Just as the title suggests, is there a way to end simulations based on this condition, or any other like a vehicle jam or collision?

Additionally, is there a way to notify the user of a "failed" and "successful" end of simulation?
 
Thanks
 

 



Back to the top