implement Google's Open Source Slam "Cartographer" in Gazebo

1. Platform

Dell PC installed Ubuntu 14.4 and ROS Indigo.

2. Building & Installation

We recommend using wstool and rosdep. For faster builds, we also recommend using Ninja.

# 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

# Install deb dependencies.
rosdep init
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

3. Running the demos

Now that Cartographer and Cartographer’s ROS integration are installed, download the example bags (e.g. 2D and 3D backpack collections of the Deutsches Museum) to a known location, in this case ~/Downloads, and use roslaunch to bring up the demo:

# Download the 2D backpack example bag.
wget -P ~/Downloads https://storage.googleapis.com/cartographer-public-data/bags/backpack_2d/cartographer_paper_deutsches_museum.bag

# Launch the 2D backpack demo.
roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=${HOME}/Downloads/cartographer_paper_deutsches_museum.bag

# Download the 3D backpack example bag.
wget -P ~/Downloads https://storage.googleapis.com/cartographer-public-data/bags/backpack_3d/cartographer_3d_deutsches_museum.bag

# Launch the 3D backpack demo.
roslaunch cartographer_ros demo_backpack_3d.launch bag_filename:=${HOME}/Downloads/cartographer_3d_deutsches_museum.bag

# Download the Revo LDS example bag.
wget -P ~/Downloads https://storage.googleapis.com/cartographer-public-data/bags/revo_lds/cartographer_paper_revo_lds.bag

# Launch the Revo LDS demo.
roslaunch cartographer_ros demo_revo_lds.launch bag_filename:=${HOME}/Downloads/cartographer_paper_revo_lds.bag

# Download the PR2 example bag.
wget -P ~/Downloads https://storage.googleapis.com/cartographer-public-data/bags/pr2/2011-09-15-08-32-46.bag

# Launch the PR2 demo.
roslaunch cartographer_ros demo_pr2.launch bag_filename:=${HOME}/Downloads/2011-09-15-08-32-46.bag

The launch files will bring up roscore and rviz automatically.

Reference:

Google Cartographer ROS | Read the Docs

implement Google's Open Source Slam "Cartographer" in Gazebo

时间: 2024-07-30 04:37:40

implement Google's Open Source Slam "Cartographer" in Gazebo的相关文章

Google's Open Source SLAM Library ---- Cartographer

What is Cartographer? Google announce the open source release of Cartographer, a real-time simultaneous localization and mapping (SLAM) library in 2D and 3D with ROS support, in October 2016. As Robotics Trends said, "Google wants to democratize the

Open Source Projects Released By Google

Open Source Projects Released By Google Google has released over 20 million lines of code and over 900 projects. Many engineers work on open source projects full time, and even more use their 20% time to create new projects or contribute to their fav

Open source packages on SLAM

OpenSLAM http://openslam.org/ Most main stream open source slam resource can be found on OpenSLAM, which is a set of packages. ORB-SLAM2 https://github.com/raulmur/ORB_SLAM2.git In its github page, information are complete including the paper referen

Open Source Software List: The Ultimate List

http://www.datamation.com/open-source/ Accessibility 1. The Accessibility Project The Business Value of Cisco UCS Integrated Infrastructure Solutions for Running SAP Workloads Download Now Launched in 2013, this site aims to provide information on ma

The Top 50 Proprietary Programs that Drive You Crazy — and Their Open Source Alternatives

The Top 50 Proprietary Programs that Drive You Crazy - and Their Open Source Alternatives 01 / 22 / 2013 By Josh Weikel No Comments Posted in Software Tags Update January 22, 2013: This article was originally posted February 7, 2008. Since then, it h

[随笔] 老谢与Google的一次正面"交锋"

[随笔] 老谢与Google的一次正面"交锋" 一.废话 话说智能电视,国内液晶电视厂商确实引领着时代潮流.而从全球来看,继几年前Google I/O大会之后,也渐渐掀起一股智能电视热潮.Google Android开放系统在智能电视中的应用也开始崭露头角.Google和MediaTek在智能电视方向的绑定式发展也必将再次将Android智能电视的发展推向另外一个高度. 老谢有幸加入了Andriod大流,最近处理了一题,想和大家分享分享.与其说这次是老谢与Google的一次正面交锋,不

Permanent Link: 101 ways to speed up your Magento e-commerce website

101 ways to speed up your Magento e-commerce website May 18, 2010/in E-commerce, Magento /by Guido Jansen As you probably know by now, Google is Using site speed in web search ranking. And I couldn’t agree more: speed is important for your site, and

uri与url

uri与URL的区别                     http://www.cnblogs.com/gaojing/archive/2012/02/04/2413626.html The word is not correctly spelled 问题解决               http://blog.csdn.net/tanyit/article/details/5461806 Source  Override/Implement methods     重写方法 Source

【转】Android 源码编译make的错误处理--不错

原文网址:http://blog.csdn.net/ithomer/article/details/6977386 Android源码下载:官方下载 或参考android源码下载方式 Android编译版本: PLATFORM_VERSION=4.0.1(最新Android 4.0.1) OS 操作系统平台: Linux yanggang 2.6.35-30-generic #61-Ubuntu SMP Tue Oct 11 15:29:15 UTC 2011 i686 GNU/Linux(Ub