Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loading worlds from CLI #1627

Merged
merged 2 commits into from
Aug 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cppcheck
Signed-off-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
chapulina authored Aug 3, 2022
commit f074316f0ea120d14013c71ffdb170e8e4e204d5
3 changes: 2 additions & 1 deletion src/gui/Gui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ std::unique_ptr<ignition::gui::Application> createGui(
msgs::StringMsg msg;
msg.set_data(startingWorld);

// Wait for the server to be listening, so we're sure it receives the message.
// Wait for the server to be listening, so we're sure it receives the
// message.
igndbg << "Waiting for subscribers to [" << topic << "]..." << std::endl;
for (int sleep = 0; sleep < 100 && !startingWorldPub.HasConnections();
++sleep)
Expand Down