Comment corriger l'erreur ROS2 controller_interfaceConfig.cmake sur Ubuntu
Problème
Lors de la tentative de compilation d’un paquet ROS en utilisant colcon build, vous voyez un message d’erreur tel que
CMakeLists.txt
CMake Error at CMakeLists.txt:10 (find_package):
By not providing "Findcontroller_interface.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"controller_interface", but CMake did not find one.
Could not find a package configuration file provided by
"controller_interface" with any of the following names:
controller_interfaceConfig.cmake
controller_interface-config.cmake
Add the installation prefix of "controller_interface" to CMAKE_PREFIX_PATH
or set "controller_interface_DIR" to a directory containing one of the
above files. If "controller_interface" provides a separate development
package or SDK, be sure it has been installed.Solution
Installez le paquet ros-<distro>-controller-interface. Par exemple, pour ROS2 Jazzy, exécutez
install_controller_interface.sh
sudo apt install ros-jazzy-controller-interfaceCheck out similar posts by category:
ROS
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow