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

相关文章:

  • 2021-11-26
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-09-06
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2021-04-10
  • 2021-06-29
  • 2021-11-14
  • 2021-10-27
  • 2021-04-01
  • 2022-12-23
相关资源
相似解决方案