青海快三下载 » ROS与VSLAM入门教程 » ROS与VSLAM入门教程-RGBD-SLAM-V2安装

青海快三玩法:ROS与VSLAM入门教程-RGBD-SLAM-V2安装

青海快三下载 www.41pi3.cn ROS与VSLAM入门教程-RGBD-SLAM-V2安装

说明:

  • 介绍如何安装RGBD-SLAM-V2

环境:

  • ubuntu16.04 + kinetic
  • 深度相机:kinect v1

步骤:

  • 通过脚本安装
  • 下载脚本:
mkdir ~/RGBDSLAMV2
wget https://raw.githubusercontent.com/felixendres/rgbdslam_v2/kinetic/install.sh
  • 修改目录为RGBDSLAMV2
vim install.sh
  • 更改~/Code为~/RGBDSLAMV2
  • 执行脚本
chmod +x  install.sh 
./install.sh 

安装kinect驱动:

  • 安装驱动:
sudo apt-get install ros-kinetic-freenect-*

测试rgbdslam:

  • 修改launch,设置启动驱动为freenect
  • config/topic_image_depth深度话题修改为对应的
cd ~/RGBDSLAMV2/rgbdslam/launch
cp openni+rgbdslam.launch  freenect+rgbdslam.launch 
vim freenect+rgbdslam.launch 
  • 修改后源码为:
<launch>
  <include file="$(find freenect_launch)/launch/freenect.launch"/>
  <node pkg="rgbdslam" type="rgbdslam" name="rgbdslam" cwd="node" required="true" output="screen"> 
    <!-- Input data settings-->
    <param name="config/topic_image_mono"              value="/camera/rgb/image_color"/> 
    <param name="config/topic_image_depth"             value="/camera/depth/image_raw"/>

    <!-- These are the default values of some important parameters -->
    <param name="config/feature_extractor_type"        value="ORB"/><!-- also available: SIFT, SIFTGPU, SURF, SURF128 (extended SURF), ORB. -->
    <param name="config/feature_detector_type"         value="ORB"/><!-- also available: SIFT, SURF, GFTT (good features to track), ORB. -->
    <param name="config/detector_grid_resolution"      value="3"/><!-- detect on a 3x3 grid (to spread ORB keypoints and parallelize SIFT and SURF) -->
    <param name="config/max_keypoints"                 value="600"/><!-- Extract no more than this many keypoints -->
    <param name="config/max_matches"                   value="300"/><!-- Keep the best n matches (important for ORB to set lower than max_keypoints) -->

    <param name="config/min_sampled_candidates"        value="4"/><!-- Frame-to-frame comparisons to random frames (big loop closures) -->
    <param name="config/predecessor_candidates"        value="4"/><!-- Frame-to-frame comparisons to sequential frames-->
    <param name="config/neighbor_candidates"           value="4"/><!-- Frame-to-frame comparisons to graph neighbor frames-->
    <param name="config/ransac_iterations"             value="100"/>
    <param name="config/cloud_creation_skip_step"      value="2"/><!-- subsample the images' pixels (in both, width and height), when creating the cloud (and therefore reduce memory consumption) -->

    
    <param name="config/cloud_display_type"            value="POINTS"/><!-- Show pointclouds as points (as opposed to TRIANGLE_STRIP) -->
    <param name="config/pose_relative_to"              value="largest_loop"/><!-- optimize only a subset of the graph: "largest_loop" = Everything from the earliest matched frame to the current one. Use "first" to optimize the full graph, "inaffected" to optimize only the frames that were matched (not those inbetween for loops) -->
    <param name="config/backend_solver"                value="pcg"/><!-- pcg is faster and good for continuous online optimization, cholmod and csparse are better for offline optimization (without good initial guess)-->
    <param name="config/optimizer_skip_step"           value="1"/><!-- optimize only every n-th frame -->

  </node>
</launch>
  • 启动launch
roslaunch rgbdslam freenect+rgbdslam.launch

参考:

  • https://github.com/felixendres/rgbdslam_v2
  • //felixendres.github.io/rgbdslam_v2/
  • https://github.com/shl202/Turtlebot-Localization-Using-RGB-D-SLAM/wiki/Setup
  • //wiki.ros.org/rgbdslam
  • //sauravag.com/2016/10/how-to-setup-kinect-with-ros-and-rgbd-slam/
  • //www.cnblogs.com/voyagee/articles/6898278.html
  • //www.cnblogs.com/voyagee/p/7027076.html

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: ros与vslam入门教程

  • 游泳池水质可手机扫码查询 数据5分钟更新一次 2019-05-02
  • 楼顶建起1.7万平方米运动场   “8D重庆”又现网红建筑 2019-04-29
  • 涂颜淼:转变思维 做新时代的消防战士 2019-04-29
  • 扫码有风险,公众需警惕 2019-04-20
  • 计划确定之后,还需要落实,就要求计划所涵盖的所有因素都按预订的方案对接转化,尤其是计划所涉及的人一定要达到相应的要求并严格按计划开展活动…… 2019-04-20
  • 所以,让你和你的四两吓坏了![微笑] 2019-04-19
  • 喝了这药真的必死无疑了吗? 2019-04-14
  • 东莞高考泄题?假的! 2019-04-14
  • 总榜第一!大洋网总有惊喜要给你,请足够相信 2019-04-13
  • 久久为功,扎实推进生态宜居的美丽乡村建设 2019-04-13
  • “白色污染”怎么治 网友:塑料垃圾为何屡禁不止 2019-03-30
  • 默滕斯建功卢卡库梅开二度 比利时3 2019-03-30
  • 在这里,医生一起撸串 2019-03-28
  • 1至5月我区为企业和社会减负4200余万元 2019-03-28
  • 大豆自己种,芯片自己造 2019-03-20
  • 657| 562| 891| 273| 128| 494| 201| 432| 105| 870|