利用turtlebot 的导航配置文件

由于movbase发的速度太不友好了所以使用了ros自带的滤波安装相应的包

  1. apt-get install ros-indigo-yocs-velocity-smoother

我的配置文件 standalone.yaml

  1. # Example configuration:
  2. # - velocity limits are around a 10% above the physical limits
  3. # - acceleration limits are just low enough to avoid jerking
  4.  
  5. # Mandatory parameters
  6. speed_lim_v: 0.8
  7. speed_lim_w: 5.4
  8.  
  9. accel_lim_v: 0.3
  10. accel_lim_w: 3.5
  11.  
  12. # Optional parameters
  13. frequency: 20.0
  14. decel_factor: 1.0
  15.  
  16. # Robot velocity feedback type:
  17. # 0 - none
  18. # 1 - odometry
  19. # 2 - end robot commands
  20. robot_feedback: 2

我机器人的启动文件

  1. <launch>
  2.  
  3. <param name="use_sim_time" value="false" />
  4.  
  5. <node name="link_laser" pkg="tf" type="static_transform_publisher" args="0.15 0 0.15 0 0 0 base_link laser 50"/>
  6. <node name="link_footprint" pkg="tf" type="static_transform_publisher" args="0 0 0 0 0 0 base_link base_footprint 50"/>
  7.  
  8. <node pkg="odom_tf_package" type="base_controller" name="serial_send_recevice" output="screen"/>
  9.  
  10. <include file="$(find odom_tf_package)/launch/include/rplidar.launch" />
  11.  
  12. <arg name="node_name" value="velocity_smoother"/>
  13. <arg name="nodelet_manager_name" value="nodelet_manager"/>
  14. <arg name="config_file" value="$(find odom_tf_package)/config/standalone.yaml"/>
  15. <arg name="raw_cmd_vel_topic" value="cmd_vel"/>
  16. <arg name="smooth_cmd_vel_topic" value="smoother_cmd_vel"/>
  17. <arg name="robot_cmd_vel_topic" value="robot_cmd_vel"/>
  18. <arg name="odom_topic" value="odom"/>
  19.  
  20. <!-- nodelet manager -->
  21. <node pkg="nodelet" type="nodelet" name="$(arg nodelet_manager_name)" args="manager"/>
  22.  
  23. <!-- velocity smoother -->
  24. <include file="$(find yocs_velocity_smoother)/launch/velocity_smoother.launch">
  25. <arg name="node_name" value="$(arg node_name)"/>
  26. <arg name="nodelet_manager_name" value="$(arg nodelet_manager_name)"/>
  27. <arg name="config_file" value="$(arg config_file)"/>
  28. <arg name="raw_cmd_vel_topic" value="$(arg raw_cmd_vel_topic)"/>
  29. <arg name="smooth_cmd_vel_topic" value="$(arg smooth_cmd_vel_topic)"/>
  30. <arg name="robot_cmd_vel_topic" value="$(arg robot_cmd_vel_topic)"/>
  31. <arg name="odom_topic" value="$(arg odom_topic)"/>
  32. </include>
  33.  
  34. </launch>

建图的启动文件:gmapping.launch

  1. <launch>
  2.  
  3. <arg name="scan_topic" default="scan" /> //laser的topic名称,与自己的激光的topic相对应
  4. <param name="odom_frame" value="odom"/> //世界坐标
  5. <node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen" clear_params="true"> //启动slam的节点
  6.  
  7. <param name="map_update_interval" value="2.0"/>
  8. <!-- Set maxUrange < actual maximum range of the Laser -->
  9. <param name="maxRange" value="5.0"/>
  10. <param name="maxUrange" value="4.5"/>
  11. <param name="sigma" value="0.05"/>
  12. <param name="kernelSize" value=""/>
  13. <param name="lstep" value="0.05"/> //optimize机器人移动的初始值(距离)
  14. <param name="astep" value="0.05"/> //optimize机器人移动的初始值(角度)
  15. <param name="iterations" value=""/> //icp的迭代次数
  16. <param name="lsigma" value="0.075"/>
  17. <param name="ogain" value="3.0"/>
  18. <param name="lskip" value=""/> //为0,表示所有的激光都处理,尽可能为零,如果计算压力过大,可以改成1
  19.  
  20. <param name="srr" value="0.01"/> //以下四个参数是运动模型的噪声参数
  21. <param name="srt" value="0.02"/>
  22. <param name="str" value="0.01"/>
  23. <param name="stt" value="0.02"/>
  24. <param name="linearUpdate" value="0.5"/> //机器人移动linearUpdate距离,进行scanmatch
  25. <param name="angularUpdate" value="0.5"/> //机器人选装angularUpdate角度,进行scanmatch
  26. <param name="temporalUpdate" value="-1.0"/>
  27. <param name="resampleThreshold" value="0.5"/>
  28. <param name="particles" value=""/> //很重要,粒子个数
  29.  
  30. <!--
  31. <param name="xmin" value="-50.0"/>
  32. <param name="ymin" value="-50.0"/>
  33. <param name="xmax" value="50.0"/>
  34. <param name="ymax" value="50.0"/>
  35. make the starting size small for the benefit of the Android client's memory...
  36. -->
  37. <param name="xmin" value="-1.0"/> //map初始化的大小
  38. <param name="ymin" value="-1.0"/>
  39. <param name="xmax" value="1.0"/>
  40. <param name="ymax" value="1.0"/>
  41.  
  42. <param name="delta" value="0.05"/>
  43. <param name="llsamplerange" value="0.01"/>
  44. <param name="llsamplestep" value="0.01"/>
  45. <param name="lasamplerange" value="0.005"/>
  46. <param name="lasamplestep" value="0.005"/>
  47. <remap from="scan" to="$(arg scan_topic)"/>
  48. </node>
  49. </launch>

导航启动文件:tb_demo_amcl.launch

  1. <launch>
  2.  
  3.   <param name="use_sim_time" value="false" />
     
      <!-- EDIT THIS LINE TO REFLECT THE NAME OF YOUR OWN MAP FILE
           Can also be overridden on the command line -->
      <arg name="map" default="map.yaml" />
  4.  
  5.   <!-- Run the map server with the desired map -->
      <node name="map_server" pkg="map_server" type="map_server" args="$(find navigation_tutorials)/maps/$(arg map)"/>
  6.  
  7.   <!-- Start move_base  -->
      <include file="$(find navigation_tutorials)/launch/tb_move_base.launch" />
  8.  
  9.   <!-- Fire up AMCL -->
      <include file="$(find navigation_tutorials)/launch/tb_amcl.launch" />
     
    </launch>

tb_move_base.launch

  1. <launch>
  2.  
  3. <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen" clear_params="true">
  4. <rosparam file="$(find rbx1_nav)/config/turtlebot/costmap_common_params.yaml" command="load" ns="global_costmap" />
  5. <rosparam file="$(find rbx1_nav)/config/turtlebot/costmap_common_params.yaml" command="load" ns="local_costmap" />
  6. <rosparam file="$(find rbx1_nav)/config/turtlebot/local_costmap_params.yaml" command="load" />
  7. <rosparam file="$(find rbx1_nav)/config/turtlebot/global_costmap_params.yaml" command="load" />
  8. <rosparam file="$(find rbx1_nav)/config/turtlebot/base_local_planner_params.yaml" command="load" />
  9. </node>
  10.  
  11. </launch>

tb_amcl.launch

  1. <launch>
  2.  
  3. <arg name="use_map_topic" default="false"/>
  4. <arg name="scan_topic" default="scan"/>
  5.  
  6. <node pkg="amcl" type="amcl" name="amcl" clear_params="true">
  7. <param name="use_map_topic" value="$(arg use_map_topic)"/>
  8. <!-- Publish scans from best pose at a max of 10 Hz -->
  9. <param name="odom_model_type" value="diff"/>
  10. <param name="odom_alpha5" value="0.1"/>
  11. <param name="gui_publish_rate" value="10.0"/>
  12. <param name="laser_max_beams" value="60"/>
  13. <param name="laser_max_range" value="12.0"/>
  14. <param name="min_particles" value="500"/>
  15. <param name="max_particles" value="2000"/>
  16. <param name="kld_err" value="0.05"/>
  17. <param name="kld_z" value="0.99"/>
  18. <param name="odom_alpha1" value="0.2"/>
  19. <param name="odom_alpha2" value="0.2"/>
  20. <!-- translation std dev, m -->
  21. <param name="odom_alpha3" value="0.2"/>
  22. <param name="odom_alpha4" value="0.2"/>
  23. <param name="laser_z_hit" value="0.5"/>
  24. <param name="laser_z_short" value="0.05"/>
  25. <param name="laser_z_max" value="0.05"/>
  26. <param name="laser_z_rand" value="0.5"/>
  27. <param name="laser_sigma_hit" value="0.2"/>
  28. <param name="laser_lambda_short" value="0.1"/>
  29. <param name="laser_model_type" value="likelihood_field"/>
  30. <!-- <param name="laser_model_type" value="beam"/> -->
  31. <param name="laser_likelihood_max_dist" value="2.0"/>
  32. <param name="update_min_d" value="0.25"/>
  33. <param name="update_min_a" value="0.2"/>
  34. <param name="odom_frame_id" value="odom"/>
  35. <param name="resample_interval" value="1"/>
  36. <!-- Increase tolerance because the computer can get quite busy -->
  37. <param name="transform_tolerance" value="1.0"/>
  38. <param name="recovery_alpha_slow" value="0.0"/>
  39. <param name="recovery_alpha_fast" value="0.0"/>
  40. <remap from="scan" to="$(arg scan_topic)"/>
  41. </node>
  42. </launch>

base_local_planner_params.yaml

  1. controller_frequency: 3.0
  2. recovery_behavior_enabled: false
  3. clearing_rotation_allowed: false
  4.  
  5. TrajectoryPlannerROS:
  6. max_vel_x: 0.3
  7. min_vel_x: 0.05
  8. max_vel_y: 0.0 # zero for a differential drive robot
  9. min_vel_y: 0.0
  10. min_in_place_vel_theta: 0.5
  11. escape_vel: -0.1
  12. acc_lim_x: 2.5
  13. acc_lim_y: 0.0 # zero for a differential drive robot
  14. acc_lim_theta: 3.2
  15.  
  16. holonomic_robot: false
  17. yaw_goal_tolerance: 0.1 # about 6 degrees
  18. xy_goal_tolerance: 0.15 # 10 cm
  19. latch_xy_goal_tolerance: false
  20. pdist_scale: 0.8
  21. gdist_scale: 0.6
  22. meter_scoring: true
  23.  
  24. heading_lookahead: 0.325
  25. heading_scoring: false
  26. heading_scoring_timestep: 0.8
  27. occdist_scale: 0.1
  28. oscillation_reset_dist: 0.05
  29. publish_cost_grid_pc: false
  30. prune_plan: true
  31.  
  32. sim_time: 1.0
  33. sim_granularity: 0.025
  34. angular_sim_granularity: 0.025
  35. vx_samples: 8
  36. vy_samples: 0 # zero for a differential drive robot
  37. vtheta_samples: 20
  38. dwa: true
  39. simple_attractor: false

costmap_common_params.yaml

  1. obstacle_range: 2.5
  2. raytrace_range: 3.0
  3. robot_radius: 0.165
  4. inflation_radius: 0.3
  5. max_obstacle_height: 0.6
  6. min_obstacle_height: 0.0
  7. observation_sources: scan
  8. scan: {data_type: LaserScan, topic: /scan, marking: true, clearing: true, expected_update_rate: 0}

global_costmap_params.yaml

  1. global_costmap:
  2. global_frame: /map
  3. robot_base_frame: /base_footprint
  4. update_frequency: 1.0
  5. publish_frequency: 0
  6. static_map: true
  7. rolling_window: false
  8. resolution: 0.01
  9. transform_tolerance: 1.0
  10. map_type: costmap

local_costmap_params.yaml

  1. local_costmap:
  2. global_frame: /odom
  3. robot_base_frame: /base_footprint
  4. update_frequency: 5.0
  5. publish_frequency: 1.0
  6. static_map: false
  7. rolling_window: true
  8. width: 6.0
  9. height: 6.0
  10. resolution: 0.01
  11. transform_tolerance: 1.0
  12. map_type: costmap

把原先建好的图map.pgm  map.yaml 放在功能包/maps/下

  1. roslaunch odom_tf_package start.launch         机器人启动文件
  2. roscat navigation_tutorials tb_demo_amcl.launch    导航文件
  3. roslaunch navigation_tutorials rviz.launc rviz启动文件

movebase导航的更多相关文章

  1. ros机器人导航设置原点,目标点

    之前利用movebase导航定位都是通过rviz用鼠标指来指去,实验时非常方便,但实际应用总不能也人工指来指去吧,这怎么体现智能呢 启动导航后,用以前使用的rviz设设置目标点来获取map坐标系下的位 ...

  2. Ros学习——移动机器人Ros导航详解及源码解析

    1 执行过程 1.运行仿真机器人fake_turtlebot.launch:加载机器人模型——启动机器人仿真器——发布机器人状态 2.运行amcl节点fake_amcl.launch:加载地图节点ma ...

  3. ROS导航包的介绍

    博客转载自:https://blog.csdn.net/handsome_for_kill/article/details/53130707#t3 ROS导航包的应用 利用ROS Navigation ...

  4. “四核”驱动的“三维”导航 -- 淘宝新UI(需求分析篇)

    前言 孔子说:"软件是对客观世界的抽象". 首先声明,这里的"三维导航"和地图没一毛钱关系,"四核驱动"和硬件也没关系,而是为了复杂的应用而 ...

  5. ABP文档 - 导航

    文档目录 本节内容: 创建菜单 注册导航供应器 显示菜单 每个web应用都有一些菜单用来在页面/屏幕之间导航,ABP提供了一个通用的基础框架创建并显示菜单给用户. 创建菜单 一个应用可能由不同模块组成 ...

  6. 谈谈一些有趣的CSS题目(八)-- 纯CSS的导航栏Tab切换方案

    开本系列,谈谈一些有趣的 CSS 题目,题目类型天马行空,想到什么说什么,不仅为了拓宽一下解决问题的思路,更涉及一些容易忽视的 CSS 细节. 解题不考虑兼容性,题目天马行空,想到什么说什么,如果解题 ...

  7. GJM : C#设计模式汇总整理——导航 【原创】

    感谢您的阅读.喜欢的.有用的就请大哥大嫂们高抬贵手"推荐一下"吧!你的精神支持是博主强大的写作动力以及转载收藏动力.欢迎转载! 版权声明:本文原创发表于 [请点击连接前往] ,未经 ...

  8. SAP CRM 显示消息/在消息中进行导航

    向用户展示消息,在任何软件中都是十分重要的. 在SAP CRM WEB UI中展示消息,不是一项很难的任务,只需要创建消息并在之后调用方法来显示它 消息类和消息号: 我在SE91中创建了如下的消息类和 ...

  9. SAP CRM 将组件整合至导航栏中

    到现在,我们已经可以让组件独立地显示.我们只是运行它.让它显示在Web UI中.让我们把组件整合进导航栏,使我们可以在正常登录Web UI时访问它. 步骤一: 为你的UI组件主窗体创建一个内向插件. ...

随机推荐

  1. C++ 学习笔记(2) —— float 和 double 的精度

    Size Range Precision 4 bytes ±1.18 x 10-38 to ±3.4 x 1038 6-9 significant digits, typically 7 8 byte ...

  2. Git错误non-fast-forward后的冲突解决

    Git错误non-fast-forward后的冲突解决当要push代码到git时,出现提示: error:failed to push some refs to ... Dealing with “n ...

  3. jQuery表单验证插件——jquery.validate.js

    官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation 一.导入js库 <script src="../j ...

  4. 接口测试之HttpClient

    HttpClient使用详解   Http协议的重要性相信不用我多说了,HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性(具体区别,日后我们再讨论),它不仅是客 ...

  5. HDU 5690:2016"百度之星" - 初赛 All X

    原文链接:https://www.dreamwings.cn/hdu5690/2657.html All X Time Limit: 2000/1000 MS (Java/Others)    Mem ...

  6. python基本数据类型之集合set

    一.集合的定义 set集合,是一个无序且不重复的元素集合. 集合对象是一组无序排列的可哈希的值,集合成员可以做字典中的键.集合支持用in和not in操作符检查成员,由len()内建函数得到集合的基数 ...

  7. Flowplayer-Subtitle

    SOURCE URL: https://flowplayer.org/docs/subtitles.html Setting up Subtitles are loaded with a <tr ...

  8. Moving From Top To Bottom in Detailed Block in Oracle Forms

    Suppose you want to scan a tabular grid block (loop through all records in detail block) from top to ...

  9. loadrunner录制脚本方式笔记

    1.脚本录制的基本原则 充分考虑脚本的执行效率 性能测试脚本关注的是如何模拟用户的真实行为.因此,用于测试的脚本应该接近用户的真正操作.这就要求录制后         的脚本在修改的过程中不要增加过多 ...

  10. 如何理解 Java 中的 <T extends Comparable<? super T>>

    Java 中类似 <T extends Comparable<? super T>> 这样的类型参数 (Type Parameter) 在 JDK 中或工具类方法中经常能看到. ...