码迷,mamicode.com
首页 > 其他好文 > 详细

Cartographer ROS for Turtlebots 初探

时间:2016-10-20 21:45:21      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:

今天抽了会时间安装了Cartographer  ROS for Turtlebots 

系统版本: Ubuntu 14.04 (Trusty) with ROS Indigo,系统是用的TurtleBot ISO with the following link and create startup USB disk using Startup Disk Creator or similar tools.

1. 安装

安装过程在https://github.com/googlecartographer/cartographer_turtlebot/blob/master/docs/source/index.rst都有详细的描述。

# 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_turtlebot.rosinstall file and fetch code for dependencies.
wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_turtlebot/master/cartographer_turtlebot.rosinstall
wstool update -t src

# 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

  但是问题一般都会处在catkin_make_isolated --install --use-ninja,因为这个时候需要翻一下墙,装个包,FQ的方法我就不多说了我用的是greenvpn,在ubuntu上也很好用,效果很好。

然后就能很顺利的装好。

2 测试

测试包有4GB多,可以通过迅雷下载比较快  https://storage.googleapis.com/cartographer-public-data/bags/turtlebot/cartographer_turtlebot_demo.bag

2D LIDAR demo.
roslaunch cartographer_turtlebot demo_lidar_2d.launch bag_filename:=${HOME}/Downloads/cartographer_turtlebot_demo.bag

# Launch the 2D depth camera demo.
roslaunch cartographer_turtlebot demo_depth_camera_2d.launch bag_filename:=${HOME}/Downloads/cartographer_turtlebot_demo.bag

# Launch the 3D depth camera demo.
roslaunch cartographer_turtlebot demo_depth_camera_3d.launch bag_filename:=${HOME}/Downloads/cartographer_turtlebot_demo.bag

  当然,谷歌的demo跑起来也是很爽的。我做了前两个

技术分享

技术分享

接下来,要用Turltebot实际做个实验,还没来得及呢

 

 

Cartographer ROS for Turtlebots 初探

标签:

原文地址:http://www.cnblogs.com/xjtusanfeng/p/5982186.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!