Skip to content

Commit a086574

Browse files
committed
remove global node for now
Signed-off-by: Louise Poubel <[email protected]>
1 parent d66efe2 commit a086574

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/gui/Gui.cc

+5-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
4040
namespace gui
4141
{
4242

43+
// \TODO(chapulina) Using this global node doesn't work when starting
44+
// `ign gazebo`, only for `ign gazebo -g`
4345
// Global node to subscribe to path updates
44-
ignition::transport::Node g_node;
46+
// ignition::transport::Node g_node;
4547

4648
//////////////////////////////////////////////////
4749
void onAddResourcePaths(const msgs::StringMsg_V &_msg)
@@ -129,6 +131,7 @@ std::unique_ptr<ignition::gui::Application> createGui(
129131
}
130132

131133
// Get list of worlds
134+
ignition::transport::Node g_node;
132135
bool executed{false};
133136
bool result{false};
134137
unsigned int timeout{5000};
@@ -283,7 +286,7 @@ std::unique_ptr<ignition::gui::Application> createGui(
283286

284287
onAddResourcePaths(res);
285288

286-
g_node.Subscribe("/gazebo/resource_paths", onAddResourcePaths);
289+
// g_node.Subscribe("/gazebo/resource_paths", onAddResourcePaths);
287290

288291
return app;
289292
}

0 commit comments

Comments
 (0)