本文主要是介绍【Realsense】解决Ubuntu 20.04安装Realsense SDK后realsense-ros报错的问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
最近在Ubuntu 20.04上安装了Realsense SDK(版本为2.54.2),但在尝试编译安装realsense-ros,按照Intel官方安装教程执行catkin_clean
(或者catkin_make
),遇到了如下报错:
CMake Error at realsense-ros/realsense2_camera/CMakeLists.txt:48 (message):Intel RealSense SDK 2.0 is missing, please install it fromhttps://github.com/IntelRealSense/librealsense/releases-- Configuring incomplete, errors occurred!
See also "/home/USER_NAME/YOUR_WORKSPACE/build/CMakeFiles/CMakeOutput.log".
See also "/home/USER_NAME/YOUR_WORKSPACE/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
尝试修改CMakeLists.txt
文件中的find_package(realsense2 2.50.0)为find_package(realsense2 2.54.2)后仍然未能解决问题。最后在GitHub的一个Issue(https://github.com/IntelRealSense/realsense-ros/issues/821)中找到了解决方法。
解决方法很简单,只需执行以下命令安装librealsense2-dev:
sudo apt-get install librealsense2-dev
然后再执行catkin_make
即可成功编译安装realsense-ros。
这篇关于【Realsense】解决Ubuntu 20.04安装Realsense SDK后realsense-ros报错的问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!