Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nav2_ros_common/include/nav2_ros_common/lifecycle_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class LifecycleNode : public rclcpp_lifecycle::LifecycleNode
if (bond_heartbeat_period > 0.0) {
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());
Expand Down Expand Up @@ -392,7 +392,7 @@ class LifecycleNode : public rclcpp_lifecycle::LifecycleNode

// Connection to tell that server is still up
std::unique_ptr<rclcpp::PreShutdownCallbackHandle> rcl_preshutdown_cb_handle_{nullptr};
std::unique_ptr<bond::Bond> bond_{nullptr};
std::shared_ptr<bond::Bond> bond_{nullptr};
double bond_heartbeat_period{0.1};
rclcpp::TimerBase::SharedPtr autostart_timer_;

Expand Down
Loading