From 6c7748bd885cabacefbfe9bf1bd0eff1bc555518 Mon Sep 17 00:00:00 2001 From: lola Date: Mon, 28 Oct 2024 13:36:38 -0700 Subject: [PATCH] Revert to original connection settings (600 loops, 60s timeout) to investigate instance stability and identify potential issues --- tests/simulators/carla/test_actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/simulators/carla/test_actions.py b/tests/simulators/carla/test_actions.py index 422a464a0..5affdcda6 100644 --- a/tests/simulators/carla/test_actions.py +++ b/tests/simulators/carla/test_actions.py @@ -44,7 +44,7 @@ def getCarlaSimulator(getAssetPath): f"bash {CARLA_ROOT}/CarlaUE4.sh -RenderOffScreen", shell=True ) - for _ in range(360): + for _ in range(600): if isCarlaServerRunning(): break time.sleep(1) @@ -64,7 +64,7 @@ def getCarlaSimulator(getAssetPath): def _getCarlaSimulator(town): start_connect_time = time.time() path = os.path.join(base, f"{town}.xodr") - simulator = CarlaSimulator(map_path=path, carla_map=town, timeout=180) + simulator = CarlaSimulator(map_path=path, carla_map=town, timeout=60) end_connect_time = time.time() connect_elapsed_time = end_connect_time - start_connect_time print(f"CARLA connection established in {connect_elapsed_time:.2f} seconds.")