測試LOAM以及LEGO-LOAM過程中遇到的坑


1、LEGO-LOAM編譯出錯 :fatal error: cloud_msgs/cloud_info.h: No such file or directory

 

解決方法:

catkin_make -j1

或者:

catkin_make -DCATKIN_WHITELIST_PACKAGES="cloud_msgs"

  

2、 LEGO-LOAM編譯出錯 :Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not found

CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message):
  Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir,
  which is not found.  It does neither exist as an absolute directory nor in
  '/opt/ros/melodic//usr/include/opencv'.  Check the issue tracker
  'https://github.com/ros-perception/vision_opencv/issues' and consider
  creating a ticket if the problem has not been reported yet.
Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  open_quadtree_mapping/CMakeLists.txt:24 (find_package)

解決辦法:

ubuntu18.04上面安裝的是opencv4,位置命名成了/usr/include/opencv4

sudo vim /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake

第96行改為opencv4


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM