From 2060ba2d6d560ae7b58728445c4d867d94de819b Mon Sep 17 00:00:00 2001 From: Vojtech Spurny Date: Thu, 22 Feb 2024 14:38:35 +0100 Subject: [PATCH] fix for declaration of scope nodeHandler instead of class member one --- src/automatic_start.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/automatic_start.cpp b/src/automatic_start.cpp index ed37e91..ceffbf8 100644 --- a/src/automatic_start.cpp +++ b/src/automatic_start.cpp @@ -205,7 +205,7 @@ class AutomaticStart : public nodelet::Nodelet { void AutomaticStart::onInit() { - ros::NodeHandle nh_ = nodelet::Nodelet::getMTPrivateNodeHandle(); + nh_ = nodelet::Nodelet::getMTPrivateNodeHandle(); ros::Time::waitForValid();