Skip to content

Commit

Permalink
Fix ResourceManager parameters on humble (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi authored Mar 5, 2025
1 parent d41285d commit 856753c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-coverage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
required-ros-distributions: ${{ env.ROS_DISTRO }}
- uses: actions/checkout@v4
- uses: ros-tooling/action-ros-ci@v0.3
- uses: ros-tooling/action-ros-ci@v0.4
with:
target-ros2-distro: ${{ env.ROS_DISTRO }}
import-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -31,7 +31,7 @@ jobs:
robotiq_description

vcs-repo-file-url: |
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_robotiq_gripper-not-released.${{ env.ROS_DISTRO }}.repos?token=${{ secrets.GITHUB_TOKEN }}
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_robotiq_gripper-not-released.${{ env.ROS_DISTRO }}.repos
colcon-defaults: |
{
"build": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-ros-tooling-source-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: ros-tooling/action-ros-ci@v0.3
- uses: ros-tooling/action-ros-ci@v0.4
with:
target-ros2-distro: ${{ inputs.ros_distro }}
# build all packages listed in the meta package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
#include <gtest/gtest.h>

#include <hardware_interface/resource_manager.hpp>
#if __has_include(<hardware_interface/hardware_interface/version.h>)
#include <hardware_interface/hardware_interface/version.h>
#else
#include <hardware_interface/version.h>
#endif

#include <rclcpp/node.hpp>

Expand Down Expand Up @@ -75,8 +80,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 856753c

Please # to comment.