Я установил CGAL на Linux с sudo apt-get install libcgal-dev
.
При компиляции я продолжал получать ошибку fatal error: CGAL/poisson_surface_reconstruction.h: No such file or directory
, хотя все остальные связанные с CGAL заголовки загружались нормально.
Не включена ли реконструкция пуассоновых поверхностей в liccgal-dev? Кто-нибудь может предложить альтернативы для преобразования облаков точек в многогранную сетку?
Ниже показаны все заголовки, которые я использовал (без реконструкции поверхности Пуассона, остальные скомпилированы нормально)
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/poisson_surface_reconstruction.h>
`
И ниже мой CMakeLists.txt:
`
cmake_minimum_required (ВЕРСИЯ 2.8.3)
проект (mapless_oa)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
roscpp
rospy
sensor_msgs
std_msgs
laser_geometry
tf
pcl_ros
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES mapless_oa
# CATKIN_DEPENDS geometry_msgs roscpp rospy sensor_msgs std_msgs
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
# include
${catkin_INCLUDE_DIRS}
)
add_executable(laser2pc src/laser2pc.cpp)
add_executable(ptcld2convex src/ptcld2convex.cpp )
target_link_libraries(laser2pc ${catkin_LIBRARIES})
target_link_libraries(ptcld2convex ${catkin_LIBRARIES} CGAL gmp mpfr)
}
`