当前位置: 首页 > article >正文

Ubuntu20.04 安装 cartographer

刚装完,赶紧记录下来!——2025.1.22

官方网页:

Compiling Cartographer ROS — Cartographer ROS documentation

Building & Installation

In order to build Cartographer ROS, we recommend using wstool and rosdep. For faster builds, we also recommend using Ninja.

1.On Ubuntu Focal with ROS Noetic use these commands to install the above tools:
sudo apt-get update
sudo apt-get install -y python3-wstool python3-rosdep ninja-build stow

成功界面:

2.After the tools are installed, create a new cartographer_ros workspace in ‘catkin_ws’.
mkdir catkin_ws
cd catkin_ws
wstool init src
wstool merge -t src https://raw.githubusercontent.com/cartographer-project/cartographer_ros/master/cartographer_ros.rosinstall
wstool update -t src

我的 ‘catkin_ws’ 就叫做 ‘robot’,请你去到自己的工作空间。

成功界面:

3.Now you need to install cartographer_ros’ dependencies.

First, we use rosdep to install the required packages. The command ‘sudo rosdep init’ will print an error if you have already executed it since installing ROS. This error can be ignored.

sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y

成功界面:

报错:

解决:

找到 “cartographer” 包中的 “package.xml” 文件,删除或注释掉 “<depend>libabsl-dev</depend>”

参考:

cartographer: [libabsl-dev] defined as “not available“ for OS version解决方案_cartographer: [libabsl-dev] defined as "not availa-CSDN博客

4.Cartographer uses the abseil-cpp library that needs to be manually installed using this script:
src/cartographer/scripts/install_abseil.sh

成功界面:

5.Due to conflicting versions you might need to uninstall the ROS abseil-cpp using
sudo apt-get remove ros-${ROS_DISTRO}-abseil-cpp

界面:

我估计是我没有。。。

6.Build and install.
catkin_make_isolated --install --use-ninja

成功界面:

我的最后一条是这个,装了大概10分钟才装完,抓紧跑个demo试试!


http://www.kler.cn/a/515019.html

相关文章:

  • 深度学习笔记31_ResNet与DenseNet结合探索
  • Java数据结构 (从0构建链表(LinkedList))
  • 自动扣webpack框架演示 | 某书 x-xray-traceid 签名算法分析记录
  • 低代码系统-氚云、宜搭控件对比
  • hive 自动检测、自动重启、记录检测日志、自动清理日志
  • 《Java核心技术 卷II》获取Web数据提交表单数据
  • PIC单片机HEX文件格式分析
  • 人工智能学习(三)之机器学习基本概念
  • Oracle 深入学习 Part 13: Maintaining Data Integrity(数据完整性维护)
  • 如何使用 findIndex() 方法查找数组中的第一个匹配元素的索引?
  • 国产编辑器EverEdit - 快捷目录
  • 盲道人行道分割YOLOV8SEG
  • 期刊论文左下角添加通讯作者和横线的方法
  • GeoJSON 数据
  • 人源化抗体的改造方式及其优势【卡梅德生物】
  • 可以免费使用的电子杂志制作平台
  • OFD、PDF 电子签章系统处理流程
  • 大模型GUI系列论文阅读 DAY3:《GPT-4V(ision) is a Generalist Web Agent, if Grounded》
  • matlab绘图——彩色螺旋图
  • 数据结构——实验六·散列表