[ros]编译ORBSLAM2时候,ros路径问题

CMake Error at CMakeLists.txt:2 (include):
include could not find load file:

/core/rosbuild/rosbuild.cmake


CMake Error at CMakeLists.txt:4 (rosbuild_init):
Unknown CMake command "rosbuild_init".

 

其实是因为ros的当前工作目录没设置对。

之前一直用

$ sudo gedit ~/.bashrc

把路径加进去,后来source ~/.bashrc之后,还是找不对目录。

 

然后

在/opt/ros/indigo/setup.sh最后加

export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:PATH/ORB_SLAM2/Examples/ROS

source 下成功了。 很神奇为啥在~/.bashrc下就不行

文章来自:http://www.cnblogs.com/xy123001/p/6918334.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3