Catkin enviornmental variables do not resolve
When trying to compile moveit from the wiki directions I run into a cmake error:
-- +++ processing catkin package: 'moveit_planners_ompl'
-- ==> add_subdirectory(moveit_planners/ompl)
-- Boost version: 1.49.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- date_time
-- thread
-- serialization
CMake Error at moveit_planners/ompl/CMakeLists.txt:20 (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!
Invoking "cmake" failed
What I interpret from this error is that some of the magic that is performed by catkin as it ingests the CMakeList.txt didn't work quite right despite the fact that the file looks fine:
cmake_minimum_required(VERSION 2.8.3)
project(moveit_planners_ompl)
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(Boost REQUIRED system filesystem date_time thread serialization)
find_package(catkin REQUIRED COMPONENTS
moveit_core
moveit_ros_planning
roscpp
rosconsole
pluginlib
tf
dynamic_reconfigure
eigen_conversions
)
find_package(OMPL REQUIRED)
generate_dynamic_reconfigure_options("ompl_interface/cfg/OMPLDynamicReconfigure.cfg")
catkin_package(
LIBRARIES
moveit_ompl_interface
${OMPL_LIBRARIES}
INCLUDE_DIRS
ompl_interface/include
${OMPL_INCLUDE_DIRS}
CATKIN_DEPENDS
moveit_core
)
include_directories(SYSTEM
${Boost_INCLUDE_DIRS})
include_directories(ompl_interface/include
${catkin_INCLUDE_DIRS}
${OMPL_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
link_directories(${OMPL_LIBRARY_DIRS})
add_subdirectory(ompl_interface)
install(FILES ompl_interface_plugin_description.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
The component I thought it was complaining about is the find package OMPL, but I tried including it in the catkin included components like recommended in the CMakeList.txt docs and this thread but the exact same error is produced. Has anyone encountered this problem before?