install ompl source library

asked 2017-05-24 12:10:02 -0500

Oh233 gravatar image

Actually I am trying to compile and install one old version ompl source library which has my own introduced planner and state space inside it. The problem I met is my cmakefile.txt has dependency on moveit package but I can't find that moveit_ros_planning_interfaceconfig.cmake file. I tried some ways like seting a directory contains that config.cmake file to moveit_ros_planning_interface_DIR and include_directories(${moveit_ros_planning_interface_DIR}) but still doesn't work. Can anybody help me? Besides, I met a lot of situations of unable to find config.cmake file. Is there any general solution for such kind of situation?

Here is my cmake result:

-- Building Release

-- Boost version: 1.54.0 -- Found the following Boost libraries: -- date_time -- thread -- serialization -- filesystem -- system -- program_options -- unit_test_framework -- Eigen found (include: /usr/include/eigen3) -- Using CATKIN_DEVEL_PREFIX: /home/ruinianxu/omplNEW/devel -- Using CMAKE_PREFIX_PATH: /home/ruinianxu/omplNEW -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/ruinianxu/omplNEW/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.19 -- Using these message generators: CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "moveit_ros_planning_interface" with any of the following names:

moveit_ros_planning_interfaceConfig.cmake
moveit_ros_planning_interface-config.cmake

Add the installation prefix of "moveit_ros_planning_interface" to CMAKE_PREFIX_PATH or set "moveit_ros_planning_interface_DIR" to a directory containing one of the above files. If "moveit_ros_planning_interface" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:61 (find_package)

-- Could not find the required component 'moveit_ros_planning_interface'. 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/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "moveit_ros_planning_interface" with any of the following names:

moveit_ros_planning_interfaceConfig.cmake
moveit_ros_planning_interface-config.cmake

Add the installation prefix of "moveit_ros_planning_interface" to CMAKE_PREFIX_PATH or set "moveit_ros_planning_interface_DIR" to a directory containing one of the above files. If "moveit_ros_planning_interface" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:61 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/ruinianxu/omplNEW/CMakeFiles/CMakeOutput.log". See also "/home/ruinianxu/omplNEW/CMakeFiles/CMakeError.log".

edit retag flag offensive close merge delete

Comments

It looks like that you either have installed a newer version of moveit or you have not "sourced" the ros setup.bash file. Moveit package names and API is not the same through groovy, hydro and indigo versions. There are changes, so if your ompl is in groovy you need ros and moveit in groovy as well

angeltop gravatar image angeltop  ( 2017-06-01 01:41:51 -0500 )edit