blob: 7e0432ca8051919c804b178990346dff021934de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- a/include/nav2_util/lifecycle_node.hpp
+++ b/include/nav2_util/lifecycle_node.hpp
@@ -204,7 +204,7 @@
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
--- a/src/lifecycle_node.cpp
+++ b/src/lifecycle_node.cpp
@@ -57,7 +57,7 @@
{
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());
|