Hi Anna-Lena,
the simulation should never terminate unexpectedly. If it still does, this
is a sign some condition is not handled appropriately. Can you share an
example scenario where this happens? If you don't want to share your own
TraCI script, you can record a protocol
<https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#generating_a_log_of_all_traci_commands>
of the used TraCI commands instead.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Simulation terminates with setDecel
Datum: 2023-11-20T13:29:59+0100
Von: "Schlamp, Anna-Lena via sumo-user" <[email protected]>
An: "[email protected]" <[email protected]>
Hi,
I am using the Sumo simulation to calculate a speed recommendation
(setSpeed in range 6.94 – 13.89 m/s) for a vehicle approaching an
intersection. Depending on the value of the optimal speed, I am determining
a value for the deceleration (in range 0.2 -0.8, see screenshot 1) and set
it with set.decel for the ego vehicle.
In some scenarios, however, this leads to problems, as the simulation
breaks off/terminates unexpectedly (without any error message).
An example can be seen in screenshots 2 and 3. These pictures show two
consecutive points in time of the simulation during the approach of the ego
vehicle (green). It seems to me that the ego vehicle somehow crashes with
the vehicles ahead, then disappears and therefore the simulation ends (as I
have implemented it). The resulting speed curve is shown in screenshot 4.
For comparison, I have also attached a speed curve without optimization
(screenshot 5, without speed recommendation with setSpeed and setDecel).
Can anyone explain the reason for this?
By the way: If I set the deceleration statically to 0.2 or 0.8, for
example, the simulation does not abort. What am I missing?
Thanks and best regards,
Anna-Lena
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user