hoverboard-robotics / hoverboard-driver

ROS hardware driver for UART-controlled hoverboard
MIT License
96 stars 52 forks source link

Could not find a package configuration file provided by "hardware_interface" #28

Closed derDieDasJojo closed 9 months ago

derDieDasJojo commented 9 months ago

I just wanted to document some problems and solutions I ran into:

colcon build
Starting >>> hoverboard_driver
--- stderr: hoverboard_driver                         
CMake Error at CMakeLists.txt:20 (find_package):
  By not providing "Findhardware_interface.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "hardware_interface", but CMake did not find one.

  Could not find a package configuration file provided by
  "hardware_interface" with any of the following names:

    hardware_interfaceConfig.cmake
    hardware_interface-config.cmake

  Add the installation prefix of "hardware_interface" to CMAKE_PREFIX_PATH or
  set "hardware_interface_DIR" to a directory containing one of the above
  files.  If "hardware_interface" provides a separate development package or
  SDK, be sure it has been installed.

---
Failed   <<< hoverboard_driver [2.35s, exited with code 1]

Summary: 0 packages finished [9.33s]
  1 package failed: hoverboard_driver
  1 package had stderr output: hoverboard_driver
derDieDasJojo commented 9 months ago

solution (at least for running on ubuntu and ros iron) sudo apt install ros-iron-control-toolbox ros-iron-hardware-interface