问题:
安装依赖并下载cartographer包,执行以下指令:
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
报错:
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
cartographer: [libabsl-dev] defined as "not available" for OS version [bionic]
解决:
找到cartographer文件夹下的package.xml,打开,注释掉<depend>libabsl-dev</depend>
即在前加上<!--,后面加上-->。保存,关闭文件。
在src/cartographer/scripts/install_abseil.sh文件目录下打开终端,运行指令:
sudo ./install_abseil.sh
终端将下载abseil,下载好后用小鱼的rosdepc
rosdepc update
再运行指令
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y -i -r
看到#All required rosdeps installed successfully代表成功!