Skip to content

Commit

Permalink
Fix ResourceManager parameters on humble
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Feb 14, 2025
1 parent 77e6092 commit a7e5a1c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <gtest/gtest.h>

#include <hardware_interface/resource_manager.hpp>
#include <hardware_interface/hardware_interface/version.h>

#include <rclcpp/node.hpp>

Expand Down Expand Up @@ -75,8 +76,12 @@ TEST(TestRobotiqGripperHardwareInterface, load_urdf)

rclcpp::Node node{ "test_robotiq_gripper_hardware_interface" };

#if HARDWARE_INTERFACE_VERSION_GTE(4, 13, 0)
// Initialize the resource manager
hardware_interface::ResourceManager rm(urdf, node.get_node_clock_interface(), node.get_node_logging_interface());
#else
hardware_interface::ResourceManager rm(urdf);
#endif

// Check interfaces
EXPECT_EQ(1u, rm.system_components_size());
Expand Down

0 comments on commit a7e5a1c

Please sign in to comment.