cartographer ubuntu20.04安装

版本选择

代码包版本
cartographer_ros1.0.0
cartographer1.0.0
ceres-solver1.13.0
glog0.5.0

安装方式

  1. 安装工具
sudo apt-get update
sudo apt-get install -y python3-wstool python3-rosdep ninja-build stow
  1. 初始化工作空间
wstool init src
  1. 安装代码包 根据特定的版本
  cd src
  git clone https://github.com/googlecartographer/cartographer_ros.git
  git clone https://github.com/googlecartographer/cartographer.git
  git clone https://github.com/ceres-solver/ceres-solver.git
  1. 安装依赖
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
  1. 安装abseil-cpp 库
src/cartographer/scripts/install_abseil.sh

如果系统本身存在,需要移除,防止冲突

sudo apt-get remove ros-${ROS_DISTRO}-abseil-cpp
  1. ceres-solver

安装依赖

apt-get install  liblapack-dev libsuitesparse-dev libcxsparse3 libgflags-dev libgoogle-glog-dev libgtest-dev

编译

cd ceres-solver
mkdir build
cd build
cmake ..
make -j4
make install
  1. glog
wget https://github.com/google/glog/archive/refs/tags/v0.5.0.tar.gz
tar -zxvf v0.5.0.tar.gz
cd glog
mkdir build
cd build
cmake ..
make -j4
make install
  1. 编译
catkin_make_isolated --install --use-ninja -DPYTHON_EXECUTABLE=$(which python3)
  1. 官方安装指南
  • 12
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值