turtlebot3_world_waffle_pi.yaml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. amcl:
  2. ros__parameters:
  3. use_sim_time: False
  4. alpha1: 0.2
  5. alpha2: 0.2
  6. alpha3: 0.2
  7. alpha4: 0.2
  8. alpha5: 0.2
  9. base_frame_id: "base_footprint"
  10. beam_skip_distance: 0.5
  11. beam_skip_error_threshold: 0.9
  12. beam_skip_threshold: 0.3
  13. do_beamskip: false
  14. global_frame_id: "map"
  15. lambda_short: 0.1
  16. laser_likelihood_max_dist: 2.0
  17. laser_max_range: 100.0
  18. laser_min_range: -1.0
  19. laser_model_type: "likelihood_field"
  20. max_beams: 60
  21. max_particles: 2000
  22. min_particles: 500
  23. odom_frame_id: "odom"
  24. pf_err: 0.05
  25. pf_z: 0.99
  26. recovery_alpha_fast: 0.0
  27. recovery_alpha_slow: 0.0
  28. resample_interval: 1
  29. robot_model_type: "nav2_amcl::DifferentialMotionModel"
  30. save_pose_rate: 0.5
  31. sigma_hit: 0.2
  32. tf_broadcast: true
  33. transform_tolerance: 1.0
  34. update_min_a: 0.2
  35. update_min_d: 0.25
  36. z_hit: 0.5
  37. z_max: 0.05
  38. z_rand: 0.5
  39. z_short: 0.05
  40. set_initial_pose: true
  41. initial_pose:
  42. x: -1.8949996233
  43. y: -0.419999837875
  44. z: 0.0
  45. a: -0.0208304
  46. amcl_map_client:
  47. ros__parameters:
  48. use_sim_time: False
  49. amcl_rclcpp_node:
  50. ros__parameters:
  51. use_sim_time: False
  52. bt_navigator:
  53. ros__parameters:
  54. use_sim_time: False
  55. global_frame: map
  56. robot_base_frame: base_link
  57. odom_topic: /odom
  58. default_bt_xml_filename: "navigate_w_replanning_and_recovery.xml"
  59. bt_loop_duration: 10
  60. default_server_timeout: 20
  61. enable_groot_monitoring: True
  62. groot_zmq_publisher_port: 1666
  63. groot_zmq_server_port: 1667
  64. plugin_lib_names:
  65. - nav2_compute_path_to_pose_action_bt_node
  66. - nav2_compute_path_through_poses_action_bt_node
  67. - nav2_follow_path_action_bt_node
  68. - nav2_back_up_action_bt_node
  69. - nav2_spin_action_bt_node
  70. - nav2_wait_action_bt_node
  71. - nav2_clear_costmap_service_bt_node
  72. - nav2_is_stuck_condition_bt_node
  73. - nav2_goal_reached_condition_bt_node
  74. - nav2_goal_updated_condition_bt_node
  75. - nav2_initial_pose_received_condition_bt_node
  76. - nav2_reinitialize_global_localization_service_bt_node
  77. - nav2_rate_controller_bt_node
  78. - nav2_distance_controller_bt_node
  79. - nav2_speed_controller_bt_node
  80. - nav2_truncate_path_action_bt_node
  81. - nav2_goal_updater_node_bt_node
  82. - nav2_recovery_node_bt_node
  83. - nav2_pipeline_sequence_bt_node
  84. - nav2_round_robin_node_bt_node
  85. - nav2_transform_available_condition_bt_node
  86. - nav2_time_expired_condition_bt_node
  87. - nav2_distance_traveled_condition_bt_node
  88. - nav2_single_trigger_bt_node
  89. - nav2_is_battery_low_condition_bt_node
  90. - nav2_navigate_through_poses_action_bt_node
  91. - nav2_navigate_to_pose_action_bt_node
  92. - nav2_remove_passed_goals_action_bt_node
  93. - nav2_planner_selector_bt_node
  94. - nav2_controller_selector_bt_node
  95. - nav2_goal_checker_selector_bt_node
  96. bt_navigator_rclcpp_node:
  97. ros__parameters:
  98. use_sim_time: False
  99. controller_server:
  100. ros__parameters:
  101. use_sim_time: False
  102. controller_frequency: 20.0
  103. min_x_velocity_threshold: 0.001
  104. min_y_velocity_threshold: 0.5
  105. min_theta_velocity_threshold: 0.001
  106. failure_tolerance: 0.3
  107. progress_checker_plugin: "progress_checker"
  108. goal_checker_plugins: ["general_goal_checker"]
  109. controller_plugins: ["FollowPath"]
  110. # Progress checker parameters
  111. progress_checker:
  112. plugin: "nav2_controller::SimpleProgressChecker"
  113. required_movement_radius: 0.5
  114. movement_time_allowance: 10.0
  115. general_goal_checker:
  116. stateful: True
  117. plugin: "nav2_controller::SimpleGoalChecker"
  118. xy_goal_tolerance: 0.25
  119. yaw_goal_tolerance: 0.25
  120. # DWB parameters
  121. FollowPath:
  122. plugin: "dwb_core::DWBLocalPlanner"
  123. debug_trajectory_details: True
  124. min_vel_x: 0.0
  125. min_vel_y: 0.0
  126. max_vel_x: 0.22
  127. max_vel_y: 0.0
  128. max_vel_theta: 1.0
  129. min_speed_xy: 0.0
  130. max_speed_xy: 0.22
  131. min_speed_theta: 0.0
  132. # Add high threshold velocity for turtlebot 3 issue.
  133. # https://github.com/ROBOTIS-GIT/turtlebot3_simulations/issues/75
  134. acc_lim_x: 2.5
  135. acc_lim_y: 0.0
  136. acc_lim_theta: 3.2
  137. decel_lim_x: -2.5
  138. decel_lim_y: 0.0
  139. decel_lim_theta: -3.2
  140. vx_samples: 20
  141. vy_samples: 5
  142. vtheta_samples: 20
  143. sim_time: 1.7
  144. linear_granularity: 0.05
  145. angular_granularity: 0.025
  146. transform_tolerance: 0.2
  147. xy_goal_tolerance: 0.25
  148. trans_stopped_velocity: 0.25
  149. short_circuit_trajectory_evaluation: True
  150. stateful: True
  151. critics: ["RotateToGoal", "Oscillation", "BaseObstacle", "GoalAlign", "PathAlign", "PathDist", "GoalDist"]
  152. BaseObstacle.scale: 0.02
  153. PathAlign.scale: 32.0
  154. PathAlign.forward_point_distance: 0.1
  155. GoalAlign.scale: 24.0
  156. GoalAlign.forward_point_distance: 0.1
  157. PathDist.scale: 32.0
  158. GoalDist.scale: 24.0
  159. RotateToGoal.scale: 32.0
  160. RotateToGoal.slowing_factor: 5.0
  161. RotateToGoal.lookahead_time: -1.0
  162. controller_server_rclcpp_node:
  163. ros__parameters:
  164. use_sim_time: False
  165. local_costmap:
  166. local_costmap:
  167. ros__parameters:
  168. update_frequency: 5.0
  169. publish_frequency: 2.0
  170. global_frame: odom
  171. robot_base_frame: base_link
  172. use_sim_time: False
  173. rolling_window: true
  174. width: 3
  175. height: 3
  176. resolution: 0.05
  177. robot_radius: 0.22
  178. plugins: ["obstacle_layer", "voxel_layer", "inflation_layer"]
  179. inflation_layer:
  180. plugin: "nav2_costmap_2d::InflationLayer"
  181. cost_scaling_factor: 1.0
  182. inflation_radius: 0.55
  183. obstacle_layer:
  184. plugin: "nav2_costmap_2d::ObstacleLayer"
  185. enabled: True
  186. observation_sources: scan
  187. scan:
  188. topic: /scan
  189. max_obstacle_height: 2.0
  190. clearing: True
  191. marking: True
  192. data_type: "LaserScan"
  193. voxel_layer:
  194. plugin: "nav2_costmap_2d::VoxelLayer"
  195. enabled: True
  196. publish_voxel_map: True
  197. origin_z: 0.0
  198. z_resolution: 0.05
  199. z_voxels: 16
  200. max_obstacle_height: 2.0
  201. mark_threshold: 0
  202. observation_sources: scan
  203. scan:
  204. topic: /scan
  205. max_obstacle_height: 2.0
  206. clearing: True
  207. marking: True
  208. data_type: "LaserScan"
  209. raytrace_max_range: 3.0
  210. raytrace_min_range: 0.0
  211. obstacle_max_range: 2.5
  212. obstacle_min_range: 0.0
  213. static_layer:
  214. map_subscribe_transient_local: True
  215. always_send_full_costmap: True
  216. local_costmap_client:
  217. ros__parameters:
  218. use_sim_time: False
  219. local_costmap_rclcpp_node:
  220. ros__parameters:
  221. use_sim_time: False
  222. global_costmap:
  223. global_costmap:
  224. ros__parameters:
  225. update_frequency: 1.0
  226. publish_frequency: 1.0
  227. global_frame: map
  228. robot_base_frame: base_link
  229. use_sim_time: True
  230. robot_radius: 0.22
  231. resolution: 0.05
  232. track_unknown_space: true
  233. plugins: ["static_layer", "obstacle_layer", "voxel_layer", "inflation_layer"]
  234. obstacle_layer:
  235. plugin: "nav2_costmap_2d::ObstacleLayer"
  236. enabled: True
  237. observation_sources: scan
  238. scan:
  239. topic: /scan
  240. max_obstacle_height: 2.0
  241. clearing: True
  242. marking: True
  243. data_type: "LaserScan"
  244. raytrace_max_range: 3.0
  245. raytrace_min_range: 0.0
  246. obstacle_max_range: 2.5
  247. obstacle_min_range: 0.0
  248. voxel_layer:
  249. plugin: "nav2_costmap_2d::VoxelLayer"
  250. enabled: True
  251. publish_voxel_map: True
  252. origin_z: 0.0
  253. z_resolution: 0.05
  254. z_voxels: 16
  255. max_obstacle_height: 2.0
  256. mark_threshold: 0
  257. observation_sources: scan
  258. scan:
  259. topic: /scan
  260. max_obstacle_height: 2.0
  261. clearing: True
  262. marking: True
  263. data_type: "LaserScan"
  264. raytrace_max_range: 3.0
  265. raytrace_min_range: 0.0
  266. obstacle_max_range: 2.5
  267. obstacle_min_range: 0.0
  268. static_layer:
  269. plugin: "nav2_costmap_2d::StaticLayer"
  270. map_subscribe_transient_local: True
  271. inflation_layer:
  272. plugin: "nav2_costmap_2d::InflationLayer"
  273. cost_scaling_factor: 3.0
  274. inflation_radius: 0.55
  275. always_send_full_costmap: True
  276. global_costmap_client:
  277. ros__parameters:
  278. use_sim_time: False
  279. global_costmap_rclcpp_node:
  280. ros__parameters:
  281. use_sim_time: False
  282. map_server:
  283. ros__parameters:
  284. use_sim_time: False
  285. yaml_filename: "map.yaml"
  286. map_saver:
  287. ros__parameters:
  288. use_sim_time: False
  289. save_map_timeout: 5.0
  290. free_thresh_default: 0.25
  291. occupied_thresh_default: 0.65
  292. map_subscribe_transient_local: True
  293. planner_server:
  294. ros__parameters:
  295. expected_planner_frequency: 20.0
  296. use_sim_time: False
  297. planner_plugins: ["GridBased"]
  298. GridBased:
  299. plugin: "nav2_navfn_planner/NavfnPlanner"
  300. tolerance: 0.5
  301. use_astar: false
  302. allow_unknown: true
  303. planner_server_rclcpp_node:
  304. ros__parameters:
  305. use_sim_time: False
  306. recoveries_server:
  307. ros__parameters:
  308. costmap_topic: local_costmap/costmap_raw
  309. footprint_topic: local_costmap/published_footprint
  310. cycle_frequency: 10.0
  311. recovery_plugins: ["spin", "backup", "wait"]
  312. spin:
  313. plugin: "nav2_recoveries/Spin"
  314. backup:
  315. plugin: "nav2_recoveries/BackUp"
  316. wait:
  317. plugin: "nav2_recoveries/Wait"
  318. global_frame: odom
  319. robot_base_frame: base_link
  320. transform_timeout: 0.1
  321. use_sim_time: true
  322. simulate_ahead_time: 2.0
  323. max_rotational_vel: 1.0
  324. min_rotational_vel: 0.4
  325. rotational_acc_lim: 3.2
  326. robot_state_publisher:
  327. ros__parameters:
  328. use_sim_time: False
  329. waypoint_follower:
  330. ros__parameters:
  331. loop_rate: 200
  332. stop_on_failure: false
  333. waypoint_task_executor_plugin: "wait_at_waypoint"
  334. wait_at_waypoint:
  335. plugin: "nav2_waypoint_follower::WaitAtWaypoint"
  336. enabled: True
  337. waypoint_pause_duration: 200