ROS在编译时出现问题:could not find a package configuration file provided by "driver_base" with a

出现如下错误:
Could not find the required component ‘driver_base’. 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 “driver_base” with
any of the following names:

driver_baseConfig.cmake
driver_base-config.cmake

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

原因是确少driver_base功能包,安上它就好了:

sudo apt-get install ros-kinetic-driver-base

然后执行catkin_make编译通过

你可能感兴趣的:(ros学习)