From 0a3f9b90ceeb94db99d86045c1616f561ba42009 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 22 Sep 2026 12:24:16 +0000 Subject: automatic import of ros-humble-nav2-util --- ...umble-nav2-util-1.1.20-fix-lifecycle-bond.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch (limited to 'ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch') diff --git a/ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch b/ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch new file mode 100644 index 0000000..fe0c932 --- /dev/null +++ b/ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch @@ -0,0 +1,26 @@ +diff --git a/include/nav2_util/lifecycle_node.hpp b/include/nav2_util/lifecycle_node.hpp +index 6da348c..449a9db 100644 +--- a/include/nav2_util/lifecycle_node.hpp ++++ b/include/nav2_util/lifecycle_node.hpp +@@ -204,7 +204,7 @@ protected: + void runCleanups(); + + // Connection to tell that server is still up +- std::unique_ptr bond_{nullptr}; ++ std::shared_ptr bond_{nullptr}; + }; + + } // namespace nav2_util +diff --git a/src/lifecycle_node.cpp b/src/lifecycle_node.cpp +index e09ae54..ca9719d 100644 +--- a/src/lifecycle_node.cpp ++++ b/src/lifecycle_node.cpp +@@ -57,7 +57,7 @@ void LifecycleNode::createBond() + { + RCLCPP_INFO(get_logger(), "Creating bond (%s) to lifecycle manager.", this->get_name()); + +- bond_ = std::make_unique( ++ bond_ = std::make_shared( + std::string("bond"), + this->get_name(), + shared_from_this()); -- cgit v1.2.3