From 510d3cfb390a65c0a70bd73530a3f631e93e5bcd Mon Sep 17 00:00:00 2001 From: SuddenDeath <65440078+your-sudden-death@users.noreply.github.com> Date: Sat, 24 Aug 2024 17:15:41 +0200 Subject: [PATCH] gz: Fix endless wait for gazebo on different worlds (#23613) Co-authored-by: your-sudden-death --- 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 7b45600e57..29d19fe111 100644 --- a/src/modules/simulation/gz_bridge/GZBridge.cpp +++ b/src/modules/simulation/gz_bridge/GZBridge.cpp @@ -154,7 +154,7 @@ int GZBridge::init() return PX4_ERROR; } - std::string scene_info_service = "/world/default/scene/info"; + std::string scene_info_service = "/world/" + _world_name + "/scene/info"; bool scene_created = false; while (scene_created == false) {