[gz-bridge] fix GZ timeout for slow starting simulations (#22195)

Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
Beniamino Pozzan 2023-10-18 08:41:53 +01:00 committed by GitHub
parent ad36b9add7
commit 2d3238dfbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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