How to Install FCL library in ROS-Kinetic (catkin workspace)
PROBLEM:: I am not able to compile FCL using catkin_make
??
ERROR::
CMake Error at path_planner/CMakeLists.txt:6 (find_package):
By not providing "Findfcl.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fcl", but
CMake did not find one.
Could not find a package configuration file provided by "fcl" with any of the following names:
fclConfig.cmake
fcl-config.cmake
Add the installation prefix of "fcl" to CMAKE_PREFIX_PATH
or set "fcl_DIR"
to a directory containing one of the above files. If "fcl" provides a
separate development package or SDK, be sure it has been installed.
<------------------------------------------------------------------------------------------------------------------->
My package has this cmake file:::
cmake_minimum_required(VERSION 2.8.3)
project(path_planning)
set (CMAKE_CXX_STANDARD 11)
find_package(octomap REQUIRED)
find_package(fcl REQUIRED)
find_package(OMPL REQUIRED)
find_package(catkin REQUIRED COMPONENTS
octomap_msgs
octomap_ros
pcl_conversions
pcl_ros
roscpp
std_msgs
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES path_planning
CATKIN_DEPENDS octomap_msgs octomap_ros pcl_conversions pcl_ros roscpp std_msgs
# DEPENDS octomap PCL
)
include_directories(
${PROJECT_SOURCE_DIR}/include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${OMPL_INCLUDE_DIRS}
${fcl_INCLUDE_DIRS}
)
link_libraries(${OCTOMAP_LIBRARIES} ${OMPL_LIBRARY_DIRS} ${fcl_LIBRARY_DIRS})
Hello, I have the same ERROR with you when compile "path_planning" in ros kinetic. So, have you worked this error out? I need your help, thanks!
No, this problem is still not solved. If anyhow you find a solution, please let me know as well. Instead of using this library, Now I am using voxels in octomap to check any collision.
Thanks
When I browse fcl's website, I found that fcl before version 0.5 doesn't have 'fclConfig.cmake', so I solve this bug by downloading and compiling the fcl library of version 0.5.