1.编译cartographer ROS

1.系统要求

cartographer ROS与Cartographer要求一样,即

  • 64-bit, modern CPU (e.g. 3rd generation i7)
  • 16 GB RAM
  • Ubuntu 14.04 (Trusty) and 16.04 (Xenial)
  • gcc version 4.8.4 and 5.4.0

支持的ROS版本:

  • Indigo
  • Kinetic
  • Lunar
  • Melodic

编译并安装

为了编译Cartographer ROS,推荐使用wstoolrosdep。为了更快得编译,建议使用Ninja

sudo apt-get update
sudo apt-get install -y python-wstool python-rosdep ninja-build

在catkin_ws中创建一个新的cartographer_ros工作空间。

mkdir catkin_ws
cd catkin_ws
wstool init src
wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_ros/master/cartographer_ros.rosinstall
wstool update -t src

安装cartographer_ros依赖(proto3 和deb包)。如果在安装ROS的时候已经执行了命令sudo rosdep init,那么将会打印错误,如果没有执行则执行该命令,另外该错误忽略。

src/cartographer/scripts/install_proto3.sh
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y

编译和安装

catkin_make_isolated --install --use-ninja

 

version 找 pcl-1.8  https://larrylisky.com/2016/11/03/point-cloud-library-on-ubuntu-16-04-lts/

gflags的手动安装

可能会报错:

Ubuntu之前的是proto2,cartographer要求是proto3

 同时安装了proto2,优先找了/usr/bin/protoc的版本, 新安装的proto3放在/usr/local/bin/protoc下,建立一个软连接。

  • $ sudo mv /usr/bin/protoc /usr/bin/protoc.bk
  • $ sudo ln -s /usr/ local/bin/protoc /usr/bin/protoc

 

转载于:https://www.cnblogs.com/gary-guo/p/10418884.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值