# Co y KHONG phu thuoc PCL.
#
# Ban ROS dung pcl::PassThrough + pcl::VoxelGrid + pcl::StatisticalOutlier.
# Ba cai do cong lai ~100 dong thuat toan da biet ro. Doi lai:
#   - lib nay build va test duoc tren may KHONG co PCL (cung ly do voi
#     vslam_odometry);
#   - khong dinh bay -march=native/-msse4.2 ma PCL bom vao, thu vo hieu thang
#     tren arm64 (xem vslam_link_pcl trong cmake/vslam_helpers.cmake);
#   - VoxelGrid tu viet dung khoa int64 3x21-bit, khong co gioi han
#     2^31 diem cua pcl::VoxelGrid.
#
# PCL chi con can o vslam_slam, noi RTAB-Map da keo no vao san.

vslam_add_library(vslam_perception
  PUBLIC_HDRS
    perception_types.h
    depth_to_cloud.h
    depth_filter.h
    gravity_align.h
    cliff_detect.h
    perception_pipeline.h
  FIND_DEPS
    vslam_common
)

target_link_libraries(vslam_perception PUBLIC vslam_common)
