利用turtlebot 的导航配置文件

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

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

我的配置文件 standalone.yaml

# Example configuration:
# - velocity limits are around a 10% above the physical limits
# - acceleration limits are just low enough to avoid jerking# Mandatory parameters
speed_lim_v: 0.8
speed_lim_w: 5.4accel_lim_v: 0.3
accel_lim_w: 3.5# Optional parameters
frequency: 20.0
decel_factor: 1.0# Robot velocity feedback type:
#  0 - none
#  1 - odometry
#  2 - end robot commands
robot_feedback: 2

我机器人的启动文件

<launch><param name="use_sim_time" value="false" /><node name="link_laser" pkg="tf" type="static_transform_publisher" args="0.15 0 0.15 0 0 0 base_link laser 50"/> <node name="link_footprint" pkg="tf" type="static_transform_publisher" args="0 0 0 0 0 0 base_link base_footprint 50"/><node pkg="odom_tf_package" type="base_controller" name="serial_send_recevice" output="screen"/><include file="$(find odom_tf_package)/launch/include/rplidar.launch" /><arg name="node_name"             value="velocity_smoother"/><arg name="nodelet_manager_name"  value="nodelet_manager"/><arg name="config_file"           value="$(find odom_tf_package)/config/standalone.yaml"/><arg name="raw_cmd_vel_topic"     value="cmd_vel"/><arg name="smooth_cmd_vel_topic"  value="smoother_cmd_vel"/><arg name="robot_cmd_vel_topic"   value="robot_cmd_vel"/><arg name="odom_topic"            value="odom"/><!-- nodelet manager --><node pkg="nodelet" type="nodelet" name="$(arg nodelet_manager_name)" args="manager"/><!-- velocity smoother --><include file="$(find yocs_velocity_smoother)/launch/velocity_smoother.launch"><arg name="node_name"             value="$(arg node_name)"/><arg name="nodelet_manager_name"  value="$(arg nodelet_manager_name)"/><arg name="config_file"           value="$(arg config_file)"/><arg name="raw_cmd_vel_topic"     value="$(arg raw_cmd_vel_topic)"/><arg name="smooth_cmd_vel_topic"  value="$(arg smooth_cmd_vel_topic)"/><arg name="robot_cmd_vel_topic"   value="$(arg robot_cmd_vel_topic)"/><arg name="odom_topic"            value="$(arg odom_topic)"/></include></launch>

建图的启动文件:gmapping.launch

<launch><arg name="scan_topic" default="scan" />  //laser的topic名称,与自己的激光的topic相对应<param name="odom_frame" value="odom"/>  //世界坐标<node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen" clear_params="true">   //启动slam的节点<param name="map_update_interval" value="2.0"/><!-- Set maxUrange < actual maximum range of the Laser --><param name="maxRange" value="5.0"/><param name="maxUrange" value="4.5"/><param name="sigma" value="0.05"/><param name="kernelSize" value="1"/><param name="lstep" value="0.05"/>  //optimize机器人移动的初始值(距离)<param name="astep" value="0.05"/>  //optimize机器人移动的初始值(角度)<param name="iterations" value="5"/>    //icp的迭代次数<param name="lsigma" value="0.075"/><param name="ogain" value="3.0"/><param name="lskip" value="0"/> //为0,表示所有的激光都处理,尽可能为零,如果计算压力过大,可以改成1<param name="srr" value="0.01"/>    //以下四个参数是运动模型的噪声参数<param name="srt" value="0.02"/><param name="str" value="0.01"/><param name="stt" value="0.02"/><param name="linearUpdate" value="0.5"/>    //机器人移动linearUpdate距离,进行scanmatch<param name="angularUpdate" value="0.5"/>   //机器人选装angularUpdate角度,进行scanmatch<param name="temporalUpdate" value="-1.0"/><param name="resampleThreshold" value="0.5"/><param name="particles" value="80"/>        //很重要,粒子个数<!--<param name="xmin" value="-50.0"/><param name="ymin" value="-50.0"/><param name="xmax" value="50.0"/><param name="ymax" value="50.0"/>make the starting size small for the benefit of the Android client's memory...--><param name="xmin" value="-1.0"/>   //map初始化的大小<param name="ymin" value="-1.0"/><param name="xmax" value="1.0"/><param name="ymax" value="1.0"/><param name="delta" value="0.05"/><param name="llsamplerange" value="0.01"/><param name="llsamplestep" value="0.01"/><param name="lasamplerange" value="0.005"/><param name="lasamplestep" value="0.005"/><remap from="scan" to="$(arg scan_topic)"/></node>
</launch>

导航启动文件:tb_demo_amcl.launch

<launch>

  <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" />

  <!-- 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)"/>

  <!-- Start move_base  -->  <include file="$(find navigation_tutorials)/launch/tb_move_base.launch" />

  <!-- Fire up AMCL -->  <include file="$(find navigation_tutorials)/launch/tb_amcl.launch" />

</launch>

tb_move_base.launch

<launch><node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen" clear_params="true"><rosparam file="$(find rbx1_nav)/config/turtlebot/costmap_common_params.yaml" command="load" ns="global_costmap" /><rosparam file="$(find rbx1_nav)/config/turtlebot/costmap_common_params.yaml" command="load" ns="local_costmap" /><rosparam file="$(find rbx1_nav)/config/turtlebot/local_costmap_params.yaml" command="load" /><rosparam file="$(find rbx1_nav)/config/turtlebot/global_costmap_params.yaml" command="load" /><rosparam file="$(find rbx1_nav)/config/turtlebot/base_local_planner_params.yaml" command="load" /></node></launch>

tb_amcl.launch

<launch><arg name="use_map_topic" default="false"/><arg name="scan_topic" default="scan"/><node pkg="amcl" type="amcl" name="amcl" clear_params="true"><param name="use_map_topic" value="$(arg use_map_topic)"/><!-- Publish scans from best pose at a max of 10 Hz --><param name="odom_model_type" value="diff"/><param name="odom_alpha5" value="0.1"/><param name="gui_publish_rate" value="10.0"/><param name="laser_max_beams" value="60"/><param name="laser_max_range" value="12.0"/><param name="min_particles" value="500"/><param name="max_particles" value="2000"/><param name="kld_err" value="0.05"/><param name="kld_z" value="0.99"/><param name="odom_alpha1" value="0.2"/><param name="odom_alpha2" value="0.2"/><!-- translation std dev, m --><param name="odom_alpha3" value="0.2"/><param name="odom_alpha4" value="0.2"/><param name="laser_z_hit" value="0.5"/><param name="laser_z_short" value="0.05"/><param name="laser_z_max" value="0.05"/><param name="laser_z_rand" value="0.5"/><param name="laser_sigma_hit" value="0.2"/><param name="laser_lambda_short" value="0.1"/><param name="laser_model_type" value="likelihood_field"/><!-- <param name="laser_model_type" value="beam"/> --><param name="laser_likelihood_max_dist" value="2.0"/><param name="update_min_d" value="0.25"/><param name="update_min_a" value="0.2"/><param name="odom_frame_id" value="odom"/><param name="resample_interval" value="1"/><!-- Increase tolerance because the computer can get quite busy --><param name="transform_tolerance" value="1.0"/><param name="recovery_alpha_slow" value="0.0"/><param name="recovery_alpha_fast" value="0.0"/><remap from="scan" to="$(arg scan_topic)"/></node>
</launch>

base_local_planner_params.yaml

controller_frequency: 3.0
recovery_behavior_enabled: false
clearing_rotation_allowed: falseTrajectoryPlannerROS:max_vel_x: 0.3min_vel_x: 0.05max_vel_y: 0.0  # zero for a differential drive robotmin_vel_y: 0.0min_in_place_vel_theta: 0.5escape_vel: -0.1acc_lim_x: 2.5acc_lim_y: 0.0 # zero for a differential drive robotacc_lim_theta: 3.2holonomic_robot: falseyaw_goal_tolerance: 0.1 # about 6 degreesxy_goal_tolerance: 0.15  # 10 cmlatch_xy_goal_tolerance: falsepdist_scale: 0.8gdist_scale: 0.6meter_scoring: trueheading_lookahead: 0.325heading_scoring: falseheading_scoring_timestep: 0.8occdist_scale: 0.1oscillation_reset_dist: 0.05publish_cost_grid_pc: falseprune_plan: truesim_time: 1.0sim_granularity: 0.025angular_sim_granularity: 0.025vx_samples: 8vy_samples: 0 # zero for a differential drive robotvtheta_samples: 20dwa: truesimple_attractor: false

costmap_common_params.yaml

obstacle_range: 2.5
raytrace_range: 3.0
robot_radius: 0.165
inflation_radius: 0.3
max_obstacle_height: 0.6
min_obstacle_height: 0.0
observation_sources: scan
scan: {data_type: LaserScan, topic: /scan, marking: true, clearing: true, expected_update_rate: 0}

global_costmap_params.yaml

global_costmap:global_frame: /maprobot_base_frame: /base_footprintupdate_frequency: 1.0publish_frequency: 0static_map: truerolling_window: falseresolution: 0.01transform_tolerance: 1.0map_type: costmap

local_costmap_params.yaml

local_costmap:global_frame: /odomrobot_base_frame: /base_footprintupdate_frequency: 5.0publish_frequency: 1.0static_map: falserolling_window: truewidth: 6.0height: 6.0resolution: 0.01transform_tolerance: 1.0map_type: costmap

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

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

转载于:https://www.cnblogs.com/CZM-/p/6036445.html

movebase导航相关推荐

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

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

  2. 【SLAM】基于explore_lite的移动机器人自主建图

    系列文章目录 ·[SLAM]基于explore_lite的移动机器人自主建图 ·[SLAM]基于rrt_explore的移动机器人自主建图 ·[问题解决]rrt_exploration功能包使用过程中 ...

  3. (七)turtlebot3导航包解析

    地图导航需要启动amcl节点和move_base节点,rviz节点. 1.amcl节点 (1)amcl接收从rviz中传送过来的初始化位置. initial_pose_sub_ = nh_.subsc ...

  4. Chapter7 机器人导航仿真(Ⅰ)----导航实现

    目录 一.机器人导航实现 1.1 本章简介 1.1.1 本章主要内容介绍 1.1.2 预期达成的学习目标 1.1.3 导航模块简介 1.1.4 导航之坐标系 1.1.5 导航条件要求 1.2 导航实现 ...

  5. ROS学习笔记08、机器人导航仿真(slam、map_server、amcl、move_base与导航消息介绍)

    文章目录 前言 一.导航概述 1.1.导航模块 1.2.导航之坐标系 二.导航实现 准备工作(安装导航包和新建工程包) 2.1.SLAM建图 2.1.1.认识gmapping 2.1.2.实操 2.2 ...

  6. 深入理解如何不费吹灰之力搭建一个无人驾驶车(二)2D-小车其他部分(独创导航各参数解析)

    2.4 读取激光雷达信息 你有了轮式里程计wheel_odom且到base_link的转换,然后我需要激光雷达的数据 看你什么雷达了,比如思岚科技,按官网教程,他写了节点能输出pointcloud2信 ...

  7. navigation导航框架

    1.dwa得分函数 /*** @brief Compute the components and total cost for a map grid cell 计算地图网格单元的代价* @param ...

  8. 机器人操作系统ROS—深度相机+激光雷达实现vSLAM建图与导航 转载

    原文:机器人操作系统ROS-深度相机+激光雷达实现vSLAM建图与导航_wx5d23599e462fa的技术博客_51CTO博客 这次将带大家学习如何使用深度相机实现机器人的视觉SLAM建图及导航. ...

  9. MoveBase源码阅读笔记

    1 构造函数 MoveBase 构造函数MoveBase::MoveBase()为该节点的入口,初始化了相关变量,加载recovery behaviors,局部和全局的地图.路径规划器等plugin, ...

最新文章

  1. MIT机器学习种菜项目永久关停
  2. 给定下面的java代码_则运行_会产生类型的异常_JavaSE_笔试题_单选选择题
  3. nosuchelementexception 是什么异常_有甲状腺结节的人为什么越来越多?
  4. C#调用存储过程的通用类
  5. IE8采用IE7模式
  6. ps中对齐,历史记录,图层
  7. 计算机指令int,汇编入门学习笔记 (十二)—— int指令、端口
  8. 【SQL】去除表中的重复行
  9. 模拟任务调度算法 C语言 【留学生作业】
  10. Win7/Win8/IIS7/IIS8配置ASP/ACCESS
  11. ExtJs4学习(一):正确认识ExtJs4
  12. C++中的gotoxy函数
  13. matlab2010激活问题
  14. 对于目标文件系统,文件过大放不到U盘里
  15. Android TV 开发之 TV视频播放器
  16. [BZOJ2827]千山鸟飞绝
  17. 浅谈“互联网+”浪潮下传统行业的战略转型
  18. 微信小程序开发笔记 进阶篇⑤——getPhoneNumber 获取用户手机号码(基础库 2.21.2 之前)
  19. mysql数据库实验+cmd界面运行基本操作总结(sql:数据增删改查,表格,视图,备份恢复)
  20. 异贝,通过移动互联网技术,为中小微实体企业联盟、线上链接、线上线下自定义营销方案推送。案例55

热门文章

  1. DevExpress 创建EXCEL
  2. fshc模块fsch2mcu_if理解
  3. 由一个网站注册验证码带来的思考
  4. pytorch---在训练中动态的调整学习率
  5. linux文件内核目录,Linux内核目录文件简介
  6. java自动封箱_java自动封箱是什么意思
  7. uuid会重复吗_UUID的版本你知道吗
  8. linux搜索命令有哪些,linux五大搜索命令学习
  9. python正则表达式提取字符串密码_用python正则表达式提取字符串
  10. linux自动切换tty,Linux 中不适用功能键切换TTY