1.问题描述
在编译ORB_SLAM2中Example的ROS时,执行到
$ chmod +x build_ros.sh
$ ./build_ros.sh
时。报出如下错误:
[rospack] Error: package ‘ORB_SLAM2’ depends on non-existent package ‘cv_bridge’ and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling ‘rosdep update’
2.错误原因
此ROS_kinetic缺少ORB_SLAM2需要的依赖包cv_bridge。
3.解决方法
通过终端安装 cv_bridge
sudo apt-get install ros-kinetic-cv-bridge