1.问题描述
ROS编译包的过程出现如下问题:
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “moveit_core” with
any of the following names:
moveit_coreConfig.cmake
moveit_core-config.cmake
找不到包,按网上有的教程说的重装一遍ROS再编译,没有解决问题。
2.解决办法
参考教程:ROS依赖包安装问题
少啥包装啥包
sudo apt-get install ros-melodic-PACKAGE
注意ROS版本,我的是melodic,将上述PACKAGE
替换为需要的包moveit-core
sudo apt-get install ros-melodic-moveit-core
装完后再编译一下
catkin_make
如果还缺少别的包重复上述过程即可。