From a3ad01cae8d212c2ade5573908c0ea6e60f4d909 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Mon, 8 Jul 2024 10:24:07 +0200 Subject: [PATCH] Propagate the node clock and logging interface --- 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")) {