Guest User

Untitled

a guest
Apr 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. /*===============================
  2. costmap_common_params:
  3. =============================*/
  4.  
  5. map_type: costmap
  6.  
  7. obstacle_range: 2.5
  8. raytrace_range: 3.0
  9.  
  10. transform_tolerance: 0.1
  11.  
  12. footprint: [[-0.15, 0.2], [0.15, 0.2], [0.15, -0.2], [-0.15, -0.2]]
  13. #robot_radius: 0.0
  14. inflation_radius: 0.55
  15.  
  16. observation_sources: laser_scan_sensor
  17.  
  18. laser_scan_sensor: {sensor_frame: hokuyo, data_type: LaserScan, topic: /udacity_bot/laser/scan, marking: true, clearing: true}
  19.  
  20.  
  21. /*===============================
  22. base_local_planner_params
  23. =============================*/
  24.  
  25. TrajectoryPlannerROS:
  26.  
  27. # robot configurations
  28. acc_lim_x: 5.0 # default is 2.5
  29. acc_lim_y: 5.0 # default is 2.5
  30. acc_lim_theta: 3.2 # default is 3.2
  31.  
  32. max_vel_x: 1.0 # default is 0.5
  33. min_vel_x: 0.2 # default is 0.1
  34.  
  35. max_vel_theta: 1.2 # default is 1.0
  36. min_vel_theta: -1.2 # default is -1.0
  37.  
  38. min_in_place_vel_theta: 0.2 # default is 0.4
  39.  
  40. escape_vel: -0.2 # default is -0.1
  41.  
  42. holonomic_robot: false
  43.  
  44. # goal tolerance
  45. yaw_goal_tolerance: 0.08
  46. xy_goal_tolerance: 0.15
  47.  
  48. meter_scoring: true
  49. sim_time: 2.0
  50.  
  51. /*===============================
  52. global_costmap_params
  53. =============================*/
  54.  
  55. global_costmap:
  56. global_frame: map
  57. robot_base_frame: robot_footprint
  58. update_frequency: 5.0
  59. publish_frequency: 2.0
  60. width: 40.0
  61. height: 40.0
  62. resolution: 0.05
  63. static_map: true
  64. rolling_window: false
  65.  
  66. /*===============================
  67. local_costmap_params
  68. =============================*/
  69.  
  70. local_costmap:
  71. global_frame: odom
  72. robot_base_frame: robot_footprint
  73. update_frequency: 5.0
  74. publish_frequency: 2.0
  75. width: 20.0
  76. height: 20.0
  77. resolution: 0.05
  78. static_map: false
  79. rolling_window: true
  80.  
  81.  
  82. /* ==================================
  83. amcl.launch
  84. ================================*/
  85. <?xml version="1.0" ?>
  86.  
  87. <launch>
  88. <!-- Map server -->
  89. <arg name="map_file" default="$(find udacity_bot)/maps/jackal_race.yaml" />
  90. <node name="map_server" pkg="map_server" type="map_server" args="$(arg map_file)" />
  91.  
  92. <!-- localization -->
  93. <node pkg="amcl" type="amcl" name="amcl" output="screen">
  94. <remap from="scan" to="udacity_bot/laser/scan" />
  95. <param name="odom_frame_id" value="odom" />
  96. <param name="odom_model_type" value="diff-corrected" />
  97. <param name="base_frame_id" value="robot_footprint" />
  98. <param name="global_frame_id" value="map" />
  99.  
  100. <!-- tunable params -->
  101. <!-- overall filter -->
  102. <param name="min_particles" value="5" />
  103. <param name="max_particles" value="50" />
  104. <param name="transform_tolerance" value="0.1" />
  105. <param name="initial_pose" value="0 0 0" />
  106.  
  107. <!-- laser -->
  108. <!-- type default to likelihood_field -->
  109. <!-- default is 0.95 -->
  110. <param name="laser_z_hit" value="0.45" />
  111.  
  112. <!-- default is 0.05 -->
  113. <param name="laser_z_rand" value="0.1" />
  114.  
  115.  
  116. <!-- odometry -->
  117. <param name="odom_model_type" value="diff-corrected" />
  118. </node>
  119.  
  120. <!-- Move base -->
  121. <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
  122. <rosparam file="$(find udacity_bot)/config/costmap_common_params.yaml" command="load" ns="global_costmap"/>
  123. <rosparam file="$(find udacity_bot)/config/costmap_common_params.yaml" command="load" ns="local_costmap"/>
  124. <rosparam file="$(find udacity_bot)/config/local_costmap_params.yaml" command="load" />
  125. <rosparam file="$(find udacity_bot)/config/global_costmap_params.yaml" command="load" />
  126. <rosparam file="$(find udacity_bot)/config/base_local_planner_params.yaml" command="load" />
  127.  
  128. <remap from="cmd_vel" to="cmd_vel"/>
  129. <remap from="odom" to="odom"/>
  130. <remap from="scan" to="udacity_bot/laser/scan"/>
  131.  
  132. <param name="base_global_planner" type="string" value="navfn/NavfnROS" />
  133. <param name="base_local_planner" value="base_local_planner/TrajectoryPlannerROS" />
  134. <param name="controller_frequency" type="double" value="15" />
  135. </node>
  136. </launch>
Add Comment
Please, Sign In to add comment