Skip to content

Commit

Permalink
add the default rm_logger_ to the if-else as per MR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jul 4, 2024
1 parent 038945c commit 303c846
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
{
Expand Down Expand Up @@ -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<Actuator> actuators_;
std::vector<Sensor> sensors_;
Expand Down

0 comments on commit 303c846

Please sign in to comment.