問題
colcon build を使って ROS パッケージをビルドしようとすると、次のようなエラーメッセージが表示されます
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.解決策
ros-<distro>-controller-interface パッケージをインストールします。例えば、ROS2 Jazzy の場合は次を実行します
install_controller_interface.sh
sudo apt install ros-jazzy-controller-interface
同じカテゴリの類似記事をチェック:
ROS
この記事が役に立った場合は、TechOverflow での新しい記事の調査と公開を支援するため、「Buy Me a Coffee」でのご支援、または PayPal 経由でのご寄付をご検討ください