From a57d31b77d679d057d10bce7e13ca7efdd301dc2 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:11:20 +0200 Subject: [PATCH] Propagate the node clock and logging interface (#368) (#373) (cherry picked from commit a1d9bd46fc491c0de35f86f9c14c1620cbcdb037) Co-authored-by: Sai Kishor Kothakota --- 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")) {