Cartographer—ROS中的安装

前面几步没什么好说的,个人是看的是官网https://google-cartographer-ros.readthedocs.io/en/latest/中部分,也可参考http://blog.exbot.net/archives/2852k中记录,这里主要记录一下翻墙关于引用库Ceres的步骤,都知道XX的原因,可苦了国内做研究的众人员,其实翻墙部分也相当简单,如果从谷歌git中的库下载有问题,可以自己另外从源码网址下载。

一、在安装cartographer前,需要系统满足如下的要求:

  • 64-bit, modern CPU (e.g. 3rd generation i7)
  • 16 GB RAM
  • Ubuntu 14.04 (Trusty)
  • gcc version 4.8.4
  • ROS Indigo
     我用的是Ubuntu 16.04 LTS (Xenial Xerus), ROS  Kinetic, 在kobuki上使用

二、安装过程及命令:

# Install wstool and rosdep.

sudo apt-get update

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

 

# Create a new workspace in 'catkin_ws'.

mkdir catkin_ws

cd catkin_ws

wstool init src

 

# Merge the cartographer_ros.rosinstall file and fetch code for dependencies.

wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_ros/master/cartographer_ros.rosinstall

wstool update -t src

 

主要在上面这步,由于源码中引用库Ceres,我用的翻墙软件为Lantern(使用步骤http://www.cnblogs.com/ikuyka/p/5647880.html),但仍提示

fatal: unable to access 'https://ceres-solver.googlesource.com/ceres-solver.git/': Failed to connect to ceres-solver.googlesource.com 

port 443: 连接超时
       Exception caught during install: Error processing 'ceres-solver' : [ceres-solver] Checkout of https://ceres-solver.googlesource.com/ceres       -solver.git version 1.12.0rc4 into /home/jack/catkin_ws/src/ceres-solver failed.


解决办法,到提示这些错误之前,cartographer与cartographer_ros部分已经配置完成,关于这个引用库可以用命令 

git clone https://github.com/ceres-solver/ceres-solver


OK....这样就搞定了...


# Install deb dependencies.

rosdep update

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

 

# Build and install.


catkin_make_isolated --install --use-ninja

source install_isolated/setup.bash



后续...





  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值