Skip to content

Commit

Permalink
Propagate the node clock and logging interface (#368) (#373)
Browse files Browse the repository at this point in the history
(cherry picked from commit a1d9bd4)

Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
mergify[bot] and saikishor authored Jul 9, 2024
1 parent b456216 commit a57d31b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gz_ros2_control/src/gz_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class GZResourceManager : public hardware_interface::ResourceManager
rclcpp::Node::SharedPtr & node,
sim::EntityComponentManager & ecm,
std::map<std::string, sim::Entity> 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"))
{
Expand Down

0 comments on commit a57d31b

Please sign in to comment.