ROS2 22.04 Carttographer安装

安装环境: Ubuntu22.04 ros2 humble

# 下载源文件
git clone https://github.com/ros2/cartographer.git -b ros2
git clone https://github.com/ros2/cartographer_ros.git -b ros2

# 使用小鱼一键配置rosdep
wget http://fishros.com/install -O fishros && . fishros
#选编号3

rosdepc update

rosdepc install -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
# 开始编译
colcon build --packages-up-to cartographer_ros

报错,未安装absl
在这里插入图片描述进入cartographer/scripts,运行install_abseil.sh
继续报错
在这里插入图片描述解决方案
如果之前有安装abseil,需要到/usr文件夹中搜索”absl“删除相关文件
abseil安装完成后即可重新开始编译

colcon build --packages-up-to cartographer_ros
#检查是否安装成功
ros2 pkg list | grep cartographer

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值