问题:
安装依赖并下载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代表成功!
ERROR: the following packagesstacks could not have their rosdep keys resolvedto system d&spm=1001.2101.3001.5002&articleId=140644569&d=1&t=3&u=bdf2bdcafd1746f5b4ec676943decf78)
2351

被折叠的 条评论
为什么被折叠?



