move-base-ompl
move-base-ompl copied to clipboard
Could not find a package configuration file provided by "OMPL" with any of the following names:
CMake Error at move-base-ompl/CMakeLists.txt:19 (find_package): By not providing "FindOMPL.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OMPL", but CMake did not find one.
Could not find a package configuration file provided by "OMPL" with any of the following names:
OMPLConfig.cmake
ompl-config.cmake
Add the installation prefix of "OMPL" to CMAKE_PREFIX_PATH or set "OMPL_DIR" to a directory containing one of the above files. If "OMPL" provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred! See also "/home/davidhan/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/davidhan/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed
i use apt-get install ros-indigo-ompl* it ok
have you slolved the problem , I have the same
I have another fix for this in my fork. We can add a FindOMPL.cmake file in a CMakeModules folder inside the package and make a small change to the CMakeLists.txt. This makes it easy for the build system to find OMPL. Especially if you have built and installed OMPL from source rather than installing the pre-built binaries from the ROS build system.
https://github.com/sauravag/move-base-ompl/commit/4365c5eb1d7a6d56d37761aac88cd003931c183c
How yo add ? @sauravag
Install OMPL dependency $ sudo apt install libompl-dev
Do below change in CMakeList
Instead of find_package(OMPL REQUIRED) change to find_package(OMPL)
@darshankt This doesn't search for the correct OMPL cmake file. use find_package(ompl REQUIRED) instead.
Hey @machinekoder,
I tried find_package(ompl REQUIRED) but that started to give errors like:
/home/sakura/catkin_ws/src/path_planning/src/old_path_planning.cpp:28:10: fatal error: ompl/base/spaces/SE3StateSpace.h: No such file or directory
#include <ompl/base/spaces/SE3StateSpace.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/sakura/catkin_ws/src/path_planning/src/path_planning.cpp:28:10: fatal error: ompl/base/spaces/SE3StateSpace.h: No such file or directory
#include <ompl/base/spaces/SE3StateSpace.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please let know if anyone found a solution to this, Thanks!
@Mohit505Git , I have the same problem, and I'm sure I have the .h file. Did you solve it?
@Mohit505Git I got it! It's because that the package ompl in opt/ros/noetic/include is named ompl1.5!!!
@c0y0h how did you finally solve the problem then? I installed ros-noetic-ompl as well as from source. I can see the cmake files in /opt/ros/noetic/share/ompl/ .
But setting a custom PATH doesn't seem to be doing the trick.
find_package(OMPL PATHS /opt/ros/noetic/share/ompl/)
find_package(OMPL REQUIRED)
Any suggestions?
@rohanblueboybaijal Maybe you can check if the package ompl is in path (/opt/ros/noetic/include), and I remember only find_package(OMPL REQUIRED) is need for my case.
replace find_package(OMPL REQUIRED) = find_package(ompl REQUIRED)