From 303c846c81c21db05159ab300e2d2f92f048ead9 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Thu, 4 Jul 2024 19:41:52 +0200 Subject: [PATCH] add the default rm_logger_ to the if-else as per MR suggestion --- hardware_interface/src/resource_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hardware_interface/src/resource_manager.cpp b/hardware_interface/src/resource_manager.cpp index 225244e771..1aaef2e528 100644 --- a/hardware_interface/src/resource_manager.cpp +++ b/hardware_interface/src/resource_manager.cpp @@ -104,7 +104,8 @@ class ResourceStorage : actuator_loader_(pkg_name, actuator_interface_name), sensor_loader_(pkg_name, sensor_interface_name), system_loader_(pkg_name, system_interface_name), - clock_interface_(clock_interface) + clock_interface_(clock_interface), + rm_logger_(rclcpp::get_logger("resource_manager")) { if (!clock_interface_) { @@ -950,7 +951,7 @@ class ResourceStorage // Logger and Clock interfaces rclcpp::node_interfaces::NodeClockInterface::SharedPtr clock_interface_; rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr logger_interface_; - rclcpp::Logger rm_logger_ = rclcpp::get_logger("resource_manager"); + rclcpp::Logger rm_logger_; std::vector actuators_; std::vector sensors_;