Skip to content

Commit

Permalink
gz: Fix endless wait for gazebo on different worlds (#23613)
Browse files Browse the repository at this point in the history
Co-authored-by: your-sudden-death <[email protected]>
  • Loading branch information
your-sudden-death and your-sudden-death authored Aug 24, 2024
1 parent ebbb880 commit 510d3cf
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 @@ -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) {
Expand Down

0 comments on commit 510d3cf

Please sign in to comment.