ubuntu18.04+ORB_SLAM2 配置ROS出错

在Ubuntu18.04上使用ORB_SLAM2进行ROS集成时遇到错误,包括ROS找不到ORB_SLAM2包及链接库问题。错误提示涉及ROS_PACKAGE_PATH设置不正确及boost_system库缺失。解决方法是检查ROS_PACKAGE_PATH的设置,并在ORB_SLAM2的CMakeLists.txt中添加-lboost_system来解决链接错误。
摘要由CSDN通过智能技术生成

编译环境:

- ubuntu18.04

-ORB_SLAM2

运行build-ros.sh时出现问题一:

[rosbuild] rospack found package "ORB_SLAM2" at "", but the current   directory is "/home/angelo/ORB_SLAM2/Examples/ROS/ORB_SLAM2".  You should   double-check your ROS_PACKAGE_PATH to ensure that packages are found in the   correct precedence order.

解决方案:

输入 sudo ln -s ~/ORB_SLAM2/Examples/ROS/ORB_SLAM2 /opt/ros/<ros版本名>/share/ORB_SLAM2

 

运行build-ros.sh时出现问题二:

/usr/bin/ld: CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/RGBD.dir/build.make:217: recipe for target '../RGBD' failed
make[2]: *** [../RGBD] Error 1<

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值