changh95 / cpp-cv-project-template

C++ project template for developing computer vision applications
MIT License
65 stars 13 forks source link

support PCL(Point Cloud Libary) #7

Closed pacientes closed 3 years ago

pacientes commented 3 years ago

PCL 라이브러리 지원 코드 추가


기타 사항

  1. cmake 수행 시 PCL 라이브러리의 VTK 관련 경고 출력 (실행엔 문제 없음)

    
    CMake Warning at /usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package):
    By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "VTK", but
    CMake did not find one.
    
    Could not find a package configuration file provided by "VTK" with any of
    the following names:
    
    VTKConfig.cmake
    vtk-config.cmake
    
    Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
    to a directory containing one of the above files.  If "VTK" provides a
    separate development package or SDK, be sure it has been installed.
    Call Stack (most recent call first):
    /usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
    /usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
    CMakeLists.txt:54 (find_package)

WARNING 2d features related to vtk will be disabled WARNING io features related to pcap will be disabled WARNING io features related to png will be disabled CMake Warning at /usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package): By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one.

Could not find a package configuration file provided by "VTK" with any of the following names:

VTKConfig.cmake
vtk-config.cmake

Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK) /usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library) CMakeLists.txt:54 (find_package)

WARNING io features related to vtk will be disabled -- LIBUSB_1_LIBRARY (missing: LIBUSB_1_INCLUDE_DIR) WARNING io features related to libusb-1.0 will be disabled -- Could NOT find Qhull (missing: QHULL_LIBRARIES QHULL_INCLUDE_DIRS) WARNING surface features related to qhull will be disabled


2. 현재 PCL 설정에 따른 지원 목록

-- looking for PCL_COMMON -- looking for PCL_KDTREE -- looking for PCL_OCTREE -- looking for PCL_SEARCH -- looking for PCL_SAMPLE_CONSENSUS -- looking for PCL_FILTERS -- looking for PCL_2D -- looking for PCL_GEOMETRY -- looking for PCL_IO -- looking for PCL_FEATURES -- looking for PCL_ML -- looking for PCL_SEGMENTATION -- looking for PCL_SURFACE -- looking for PCL_REGISTRATION -- looking for PCL_KEYPOINTS -- looking for PCL_TRACKING -- looking for PCL_RECOGNITION -- looking for PCL_STEREO -- Found PCL(Point Cloud Library)


3. run.py 파일 실행 결과

/--------------------------------/ Run solution program /--------------------------------/

Hello World! OpenCV Version: 4.5.0 PCL(Point Cloud Libarry) Version: 1.11.1

pacientes commented 3 years ago

경고 메세지 중

** WARNING ** io features related to pcap will be disabled

내용을 보면 pcap 데이터를 읽고쓰는 부분에서 문제가 있을 것으로 보입니다. 완전한 PCL 라이브러리를 지원하려면 VTK를 결국 설치해야 할 것으로 생각됩니다.

changh95 commented 3 years ago

흡 넵 맞습니다 ㅜㅜ VTK를 일단 처음에 apt-install로라도 깔아볼까 했는데 그런 옵션이 없는 것 같더라구요. 무조건 소스 빌드만 해야하는 걸로 생각이 됬는데 우선 OpenCV와 ceres-solver 등이 더 높은 priority를 가질 것 같아서 아직은 내버려둔 상태입니다.

OpenCV, Eigen, Ceres-solver, GTSAM 라이브러리를 main.cpp에 연결하고나서 VTK 설치를 진행하는건 어떻게 생각하시나요?

pacientes commented 3 years ago

흡 넵 맞습니다 ㅜㅜ VTK를 일단 처음에 apt-install로라도 깔아볼까 했는데 그런 옵션이 없는 것 같더라구요. 무조건 소스 빌드만 해야하는 걸로 생각이 됬는데 우선 OpenCV와 ceres-solver 등이 더 높은 priority를 가질 것 같아서 아직은 내버려둔 상태입니다.

OpenCV, Eigen, Ceres-solver, GTSAM 라이브러리를 main.cpp에 연결하고나서 VTK 설치를 진행하는건 어떻게 생각하시나요?

PCL 사용에 당장은 문제가 있는 것은 아니여서 나머지 라이브러리를 먼저 진행하는걸로 하시죠 ㅎㅎ

changh95 commented 3 years ago

넵넵 좋아요!! 고생하셨습니다 :smile_cat: