针对你遇到的[rospack] error: package 'orb_slam2' not found错误,我们可以按照以下步骤进行排查和解决: 检查'orb_slam2'包是否已经正确安装在ROS工作空间中: 首先,确保你已经将orb_slam2下载并放置在ROS工作空间的src目录下。例如,如果你的工作空间路径为~/catkin_ws,那么orb_slam2应该位于~/catkin_ws/src...
CMake Error at /usr/share/ros/core/rosbuild/public.cmake:129 (message): Failed to invoke rospack to get compile flags for package 'ORB_SLAM2'. Look above for errors from rospack itself. Aborting. Please fix the broken dependency! Call Stack (most recent call first): /usr/share/ros/...