Fastplanner compilation error: Could not find a package configuration file provided by “cmake_modules”

Tips for the Less module cmake_modules:
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “cmake_modules”
with any of the following names:

cmake_modulesConfig.cmake
cmake_modules-config.cmake

Add the installation prefix of “cmake_modules” to CMAKE_PREFIX_PATH or set
“cmake_modules_DIR” to a directory containing one of the above files. If
“cmake_modules” provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
Fast-Planner/uav_simulator/local_sensing/CMakeLists.txt:66 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/nanorobot/catkin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/nanorobot/catkin_ws/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed

Two Methods:

        1. sudo apt-get install ros-melodic-cmake-modules(here melodic replace with your ros version)

      cmake_modules https://github.com/ros/cmake_modules

 

      1. Different ros corresponding versions.

  1. My version of ros is melodic, download the 0.4-devel version.

     

    Then it is

mkdir build 
cd build 
cmake ..
make .
sudo make install

Read More: