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下就不行