Skip to content

Commit

Permalink
Revert to original connection settings (600 loops, 60s timeout) to in…
Browse files Browse the repository at this point in the history
…vestigate instance stability and identify potential issues
  • Loading branch information
lola831 committed Oct 28, 2024
1 parent 3156704 commit 6c7748b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/simulators/carla/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.")
Expand Down

0 comments on commit 6c7748b

Please sign in to comment.