运行orbslam的ros版本时出现的问题

1. orbslam_ros的路径问题

比如Error from directory check: /opt/ros/indigo/share/ros/core/rosbuild/bin/check_same_directories.py /home/wf/LearnVIORB-master/Examples/ROS/ORB_VIO
1
Traceback (most recent call last):
  File "/opt/ros/indigo/share/ros/core/rosbuild/bin/check_same_directories.py", line 46, in <module>
    raise Exception

需要在添加环境变量的.bashrc文件中添加路径,运行 gedit .bashrc

在文件末尾添加 export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/beast/test/ORB_SLAM2-master/Examples/ROS

之后source ~/.bashrc

2. base_binary_edge.h 等文件error: invalid preprocessing directive,查看base_binary_edge.h之后发现引用的头文件../../config.h没有,在该目录下发现存在文件config.h.in,复制粘贴文件config.h.in,修改为config.h。

3. config.h:4:2: error: invalid preprocessing directive #cmakedefine #cmakedefine G2O_OPENMP 1

 发现g2o的使用出现问题,貌似没有编译进去,对比了build.sh文件和build_ros.sh文件发现build_ros.sh文件中上少了一些东西,比如

cd Thirdpa

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值