Hi Tiago,
 
TraCI will simulate as many time steps as you ask for (see docs
<https://sumo.dlr.de/docs/TraCI.html#shutdown> ) 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@eclipse.org>
An: "sumo-user@eclipse.org" <sumo-user@eclipse.org>
 
 
 
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
 
 

_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to