– Could not find the required component ‘gmapping’. 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 “gmapping” with any
of the following names:
gmappingConfig.cmake
gmapping-config.cmake
Add the installation prefix of “gmapping” to CMAKE_PREFIX_PATH or set
“gmapping_DIR” to a directory containing one of the above files. If
“gmapping” provides a separate development package or SDK, be sure it has
been installed.
解决方案:
sudo apt-get install ros-neotic-gmapping