Skip to content

Commit

Permalink
gz_bridge: Increase sleep_count_limit to avoid timeout in local gz env
Browse files Browse the repository at this point in the history
  • Loading branch information
jnippula committed Oct 5, 2023
1 parent cfa6602 commit 4daa515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/simulation/gz_bridge/GZBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,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
Expand Down

0 comments on commit 4daa515

Please sign in to comment.