summaryrefslogtreecommitdiff
path: root/ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-22 12:24:16 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-22 12:24:16 +0000
commit0a3f9b90ceeb94db99d86045c1616f561ba42009 (patch)
tree2e22b87637da1fef574fcedb8b79ab587b2260f5 /ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch
parent1d4106eb0f1dfeb6e24210cbc678feee8b9ca9c7 (diff)
automatic import of ros-humble-nav2-utilopeneuler24.03_LTS
Diffstat (limited to 'ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch')
-rw-r--r--ros-humble-nav2-util-1.1.20-fix-lifecycle-bond.patch26
1 files changed, 26 insertions, 0 deletions
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::Bond> bond_{nullptr};
++ std::shared_ptr<bond::Bond> 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::Bond>(
++ bond_ = std::make_shared<bond::Bond>(
+ std::string("bond"),
+ this->get_name(),
+ shared_from_this());