From cb4e41c74251520354394ed21c23c7bf03d51b1c Mon Sep 17 00:00:00 2001 From: Beniamino Pozzan Date: Wed, 18 Oct 2023 08:41:53 +0100 Subject: [PATCH] [gz-bridge] fix GZ timeout for slow starting simulations (#22195) Signed-off-by: Beniamino Pozzan --- src/modules/simulation/gz_bridge/GZBridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/simulation/gz_bridge/GZBridge.cpp b/src/modules/simulation/gz_bridge/GZBridge.cpp index db7517fc479d..7b94bd63bdef 100644 --- a/src/modules/simulation/gz_bridge/GZBridge.cpp +++ b/src/modules/simulation/gz_bridge/GZBridge.cpp @@ -282,7 +282,7 @@ int GZBridge::task_spawn(int argc, char *argv[]) #if defined(ENABLE_LOCKSTEP_SCHEDULER) // lockstep scheduler wait for initial clock set before returning - int sleep_count_limit = 1000; + int sleep_count_limit = 10000; while ((instance->world_time_us() == 0) && sleep_count_limit > 0) { // wait for first clock message