Cartographer使用文档

https://google-cartographer.readthedocs.io/en/latest/

来源出处:

 

Cartographer的Github: https://github.com/googlecartographer

Google的Paper:http://download.csdn.net/detail/jsgaobiao/9678941

Cartographer的官方文档:https://google-cartographer-ros.readthedocs.io/en/latest/
--------------------- 
 


Cartographer

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.

Technical Overview

  • High level system overview of Cartographer

_images/high_level_system_overview.png

Getting started

Cartographer is a standalone C++ library. To get started quickly, use our ROS integration.

Getting started with ROS

ROS integration is provided by the Cartographer ROS repository. You will find complete documentation for using Cartographer with ROS at the Cartographer ROS Read the Docs site.

Getting started without ROS

Please see our ROS integration as a starting point for integrating your system with the standalone library. Currently, it is the best available reference.

On Ubuntu 14.04 (Trusty):

# Install the required libraries that are available as debs.
sudo apt-get update

# Install CMake 3.2 for Ubuntu Trusty and Debian Jessie.
sudo apt-get install lsb-release -y
if [[ "$(lsb_release -sc)" = "trusty" ]]
then
  sudo apt-get install cmake3 -y
elif [[ "$(lsb_release -sc)" = "jessie" ]]
then
  sudo sh -c "echo 'deb http://ftp.debian.org/debian jessie-backports main' >> /etc/apt/sources.list"
  sudo apt-get update
  sudo apt-get -t jessie-backports install cmake -y
else
  sudo apt-get install cmake -y
fi

sudo apt-get install -y \
    clang \
    g++ \
    git \
    google-mock \
    libboost-all-dev \
    libcairo2-dev \
    libcurl4-openssl-dev \
    libeigen3-dev \
    libgflags-dev \
    libgoogle-glog-dev \
    liblua5.2-dev \
    libsuitesparse-dev \
    ninja-build \
    python-sphinx
VERSION="1.13.0"

# Build and install Ceres.
git clone https://ceres-solver.googlesource.com/ceres-solver
cd ceres-solver
git checkout tags/${VERSION}
mkdir build
cd build
cmake .. -G Ninja -DCXX11=ON
ninja
CTEST_OUTPUT_ON_FAILURE=1 ninja test
sudo ninja install
VERSION="v3.4.1"

# Build and install proto3.
git clone https://github.com/google/protobuf.git
cd protobuf
git checkout tags/${VERSION}
mkdir build
cd build
cmake -G Ninja \
  -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
  -DCMAKE_BUILD_TYPE=Release \
  -Dprotobuf_BUILD_TESTS=OFF \
  ../cmake
ninja
sudo ninja install
# Build and install Cartographer.
cd cartographer
mkdir build
cd build
cmake .. -G Ninja
ninja
CTEST_OUTPUT_ON_FAILURE=1 ninja test
sudo ninja install

System Requirements

Although Cartographer may run on other systems, it is confirmed to be working on systems that meet the following requirements:

  • 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

Known Issues

  • 32-bit builds have libeigen alignment problems which cause crashes and/or memory corruptions.

How to cite us

Background about the algorithms developed for Cartographer can be found in the following publication. If you use Cartographer for your research, we would appreciate it if you cite our paper.

W. Hess, D. Kohler, H. Rapp, and D. Andor, Real-Time Loop Closure in 2D LIDAR SLAM, in Robotics and Automation (ICRA), 2016 IEEE International Conference on. IEEE, 2016. pp. 1271–1278.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Cartographer是一个开源的SLAM(Simultaneous Localization and Mapping)库,可以用于构建2D和3D地图。它是由Google的机器人部门开发的,并且在ROS(Robot Operating System)中使用广泛。以下是一个简单的Cartographer使用教程: 1. 安装Cartographer:首先,你需要安装Cartographer。你可以从官方GitHub仓库中获取最新的Cartographer源代码,并按照其中的安装说明进行安装。 2. 配置ROS工作空间:在安装Cartographer之后,你需要为Cartographer创建一个ROS工作空间。可以使用以下命令来创建和配置ROS工作空间: ``` mkdir -p ~/cartographer_ws/src cd ~/cartographer_ws/src catkin_init_workspace ``` 3. 下载Cartographer ROS包:在ROS工作空间的src目录中,使用以下命令下载Cartographer ROS包: ``` git clone https://github.com/cartographer-project/cartographer_ros.git ``` 4. 安装依赖项:进入到ROS工作空间的根目录,运行以下命令安装Cartographer所需的依赖项: ``` rosdep install --from-paths src --ignore-src --rosdistro=melodic -y ``` 请注意,上述命令中的`--rosdistro`参数应根据你使用的ROS版本进行相应更改。 5. 编译Cartographer ROS包:继续在ROS工作空间的根目录中,使用以下命令进行编译: ``` catkin_make ``` 6. 准备数据:在运行Cartographer之前,你需要准备一些传感器数据。Cartographer支持多种传感器类型,包括激光雷达(LIDAR)和IMU等。确保你已经拥有适当的传感器数据。 7. 配置Cartographer参数:在使用Cartographer之前,你需要配置一些参数。在Cartographer ROS包的`launch`目录中,你可以找到不同类型传感器的示例配置文件。根据你的传感器类型和需求,选择适当的配置文件并进行相应的修改。 8. 运行Cartographer:一切准备就绪后,你可以运行Cartographer了。使用以下命令启动Cartographer: ``` roslaunch cartographer_ros <configuration_file>.launch ``` 其中,`<configuration_file>`应该替换为你选择的配置文件名。 以上是一个简单的Cartographer使用教程。要深入了解更多关于Cartographer的信息和详细使用指南,你可以参考官方文档和示例代码。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值