From a1d9bd46fc491c0de35f86f9c14c1620cbcdb037 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Tue, 9 Jul 2024 11:51:25 +0200 Subject: [PATCH] Propagate the node clock and logging interface (#368) --- gz_ros2_control/src/gz_ros2_control_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gz_ros2_control/src/gz_ros2_control_plugin.cpp b/gz_ros2_control/src/gz_ros2_control_plugin.cpp index f42dcf8e..b476fb50 100644 --- a/gz_ros2_control/src/gz_ros2_control_plugin.cpp +++ b/gz_ros2_control/src/gz_ros2_control_plugin.cpp @@ -54,7 +54,8 @@ class GZResourceManager : public hardware_interface::ResourceManager rclcpp::Node::SharedPtr & node, sim::EntityComponentManager & ecm, std::map enabledJoints) - : hardware_interface::ResourceManager(), + : hardware_interface::ResourceManager( + node->get_node_clock_interface(), node->get_node_logging_interface()), gz_system_loader_("gz_ros2_control", "gz_ros2_control::GazeboSimSystemInterface"), logger_(node->get_logger().get_child("GZResourceManager")) {