From bb135ee12d4bbbbcbb26d5afcff6e543c445f5a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claude=20Val=C3=A9rie=20Nna?= Date: Wed, 26 Feb 2025 00:19:52 +0000 Subject: [PATCH] Spwan_Fahrzeuge.py aktualisiert --- Spwan_Fahrzeuge.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Spwan_Fahrzeuge.py b/Spwan_Fahrzeuge.py index 028542b..fdadf61 100644 --- a/Spwan_Fahrzeuge.py +++ b/Spwan_Fahrzeuge.py @@ -67,6 +67,8 @@ map_name = world.get_map().name print("Loaded map name:", map_name) + + ##### ###### ####### # Vorfahrtregeln festlegen# # #### ##### ###### @@ -129,10 +131,11 @@ def manage_uncontrolled_intersections(): print(f"Vehicle {vehicle.id} is waiting for {vehicle.waiting_time:.1f} sec.") - -#The Code try to adjusts the position of two colliding vehicles to separate them. -#if the adjustment fails, the vehicle that cannot free itself is removed from the -#wold + + ######## ######### ######### ################# +# The Code try to adjusts the position of two colliding vehicles to separate them. # +# if the adjustment fails, one vehicle is removed from the world # +# ######## ######## ######## ######## ######## collision_status = {} # Statut de collision entre véhicules