出现了这样的情况的话如:
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "octomap_ros" with
any of the following names:
octomap_rosConfig.cmake
octomap_ros-config.cmake
Add the installation prefix of "octomap_ros" to CMAKE_PREFIX_PATH or set
"octomap_ros_DIR" to a directory containing one of the above files. If
"octomap_ros" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
octomap_mapping/octomap_server/CMakeLists.txt:19 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/zdj/octomap/octomap_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/zdj/octomap/octomap_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed;
看我框住的,就是你缺少的,所以用
//octomap_ros是我们缺少的,但是我们要把_改成-;
sudo apt-get install ros-kinetic-octomap-ros
接着安装就欧克拉,然后接着catkin_make