文件编译失败

ROS 编译发生错误:Could not find a package configuration file provided by... Could not find the required

总结:

你缺少什么包,就安装什么包即可:sudo apt-get install ros-melodic-***

例:

-- Could not find the required component 'moveit_ros_planning_interface'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "moveit_ros_planning_interface" with any of the following names:

    moveit_ros_planning_interfaceConfig.cmake
    moveit_ros_planning_interface-config.cmake


-- Configuring incomplete, errors occurred!
See also "/home/ros/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ros/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:1816: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
解决办法:

sudo apt-get install ros-kinetic-moveit-ros-planning-interface

(注意:原文是下划线,这里是中横线)
 

 
 

 

你可能感兴趣的:(ROS,自动驾驶,ubuntu,人工智能)