From 9562207e797daedf4c079992dbb151e5b6b602ad Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Mon, 20 Jul 2026 14:47:52 +0800 Subject: [PATCH] Fix deprecation warning and error on rolling Signed-off-by: Luca Della Vedova --- .../include/rmf_robot_sim_common/slotcar_common.hpp | 2 +- rmf_robot_sim_common/src/slotcar_common.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rmf_robot_sim_common/include/rmf_robot_sim_common/slotcar_common.hpp b/rmf_robot_sim_common/include/rmf_robot_sim_common/slotcar_common.hpp index 96e3ab7..a9e8ad3 100644 --- a/rmf_robot_sim_common/include/rmf_robot_sim_common/slotcar_common.hpp +++ b/rmf_robot_sim_common/include/rmf_robot_sim_common/slotcar_common.hpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include diff --git a/rmf_robot_sim_common/src/slotcar_common.cpp b/rmf_robot_sim_common/src/slotcar_common.cpp index ce3036c..151bc74 100644 --- a/rmf_robot_sim_common/src/slotcar_common.cpp +++ b/rmf_robot_sim_common/src/slotcar_common.cpp @@ -205,7 +205,8 @@ void SlotcarCommon::init_ros_node(const rclcpp::Node::SharedPtr node) _current_mode.mode = RobotMode::MODE_MOVING; _ros_node = std::move(node); - _tf2_broadcaster = std::make_shared(_ros_node); + _tf2_broadcaster = + std::make_shared(*_ros_node); _robot_state_pub = _ros_node->create_publisher(