Hello @appie,
Can you please! look at the following things I think you might solve the problem and You did not need to install the previous version. I think you forgot to define OCTOMAP libraries and directories into your catkin.txt file.
In CMakeLists.txt
include_directories(${OCTOMAP_INCLUDE_DIRS})
target_link_libraries(${OCTOMAP_LIBRARIES})
and This also
find_package(Boost REQUIRED thread)
[...]
find_package(Eigen3 REQUIRED) # Check this line
find_package(octomap REQUIRED) # Check this line
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
${MOVEIT_LIB_NAME}
CATKIN_DEPENDS
moveit_core
moveit_msgs
geometric_shapes
tf2_ros
DEPENDS
EIGEN3
OCTOMAP # Check this line
)
include_directories(include)
include_directories(SYSTEM
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${X11_INCLUDE_DIR}
)
add_library(${MOVEIT_LIB_NAME}
src/occupancy_map_monitor.cpp
src/occupancy_map_updater.cpp
)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_executable(moveit_ros_occupancy_map_server src/occupancy_map_server.cpp)
target_link_libraries(moveit_ros_occupancy_map_server ${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
For Ref: look at this link https://github.com/ros-planning/movei...
Feel free to drop a comment if you have any issues.