Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Humble release (0.7.5) fails to build #228

Closed
kjvanteeffelen opened this issue Jan 26, 2024 · 1 comment
Closed

Latest Humble release (0.7.5) fails to build #228

kjvanteeffelen opened this issue Jan 26, 2024 · 1 comment

Comments

@kjvanteeffelen
Copy link

The latest release fails to build for ROS 2 Humble.
I updated my installation with
sudo apt update && sudo apt upgrade
rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y

I get the following error:

/home/kees/ws_dependencies/src/gz_ros2_control/ign_ros2_control/src/ign_ros2_control_plugin.cpp:382:33: error: no matching function for call to ‘hardware_interface::ResourceManager::load_urdf(std::string&, bool, bool)’
  382 |     resource_manager_->load_urdf(urdf_string, false, false);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/humble/include/controller_manager/controller_manager.hpp:44,
                 from /home/kees/ws_dependencies/src/gz_ros2_control/ign_ros2_control/src/ign_ros2_control_plugin.cpp:30:
/opt/ros/humble/include/hardware_interface/resource_manager.hpp:84:8: note: candidate: ‘void hardware_interface::ResourceManager::load_urdf(const string&, bool)’
   84 |   void load_urdf(const std::string & urdf, bool validate_interfaces = true);
      |        ^~~~~~~~~
/opt/ros/humble/include/hardware_interface/resource_manager.hpp:84:8: note:   candidate expects 2 arguments, 3 provided

So there seems to be a mismatch with the hardware interface definition of the latest release of ros2_control.

@ahcorde
Copy link
Collaborator

ahcorde commented Jan 26, 2024

As you can see in this PR #225 where this change was included, the CO is compiling the code (it's red because one test is failing)

There are some new breaking changes in ros2_control which means you need to wait until the next Humble sync (which I think it's out this week) or you compile ros2_control from source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants