ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to use dwa_local_planner in move_base? [closed]

asked 2015-05-18 03:17:04 -0500

scopus gravatar image

updated 2015-05-18 04:49:41 -0500

hello, everyone, I am trying to use DWA local planner in my project. I want to use the one in dwa_local_planner, not the one in base_local_planner. Parts of my launch file are listed below.

However, I found that the source code in dwa_planner_ros.cpp is not run, i.e. the functions like " DWAPlannerROS::dwaComputeVelocityCommands" in dwa_planner_ros.cpp is not implemented when running move_base node.

<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
      <rosparam command="load" file="$(find simulator)/move_base_config/costmap_common_params.yaml" ns="global_costmap" />
      <rosparam command="load" file="$(find simulator)/move_base_config/costmap_common_params.yaml" ns="local_costmap"/>
      <rosparam command="load" file="$(find simulator)/move_base_config/local_costmap_params.yaml"/>
      <rosparam command="load" file="$(find simulator)/move_base_config/global_costmap_params.yaml"/>
      <!--rosparam command="load" file="$(find simulator)/move_base_config/base_local_planner_params.yaml"/-->
      <rosparam command="load" file="$(find simulator)/move_base_config/dwa_local_planner_params.yaml"/>

      <remap from = "map" to ="/map"/>
      <param name= "controller_frequency" value="10" type="double"/>  </node>

The content of dwa_local_planner_params.yaml is listed below:

DWAPlannerROS: 
  acc_lim_th: 3.2 
  acc_lim_x: 2.5 
  acc_lim_y: 2.5 


  max_vel_x: 0.65 
   min_vel_x: 0.0 

   max_vel_y: 0.1 
   min_vel_y: -0.1 

   max_trans_vel: 0.65 
   min_trans_vel: 0.1 
   max_rot_vel: 1.0 
   min_rot_vel: 0.4 
   sim_time: 1.7 
   sim_granularity: 0.025 
   goal_distance_bias: 32.0 
   path_distance_bias: 24.0 
   occdist_scale: 0.01 
   stop_time_buffer: 0.2 
   oscillation_reset_dist: 0.05 
   forward_point_distance: 0.325 
   scaling_speed: 0.25 
   max_scaling_factor: 0.2 
   vx_samples: 3 
   vy_samples: 10 
   vtheta_samples: 20 
   sim_period: 0.1 
   xy_goal_tolerance: 0.2 
   yaw_goal_tolerance: 0.17 
    rot_stopped_vel: 0.01 
   trans_stopped_vel: 0.01

Could someone tell me why ? Thank you!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by scopus
close date 2015-05-18 21:05:08.612678

Comments

Is the dwa parameter in your base_local_planner_params.yaml true?

Naman gravatar image Naman  ( 2015-05-18 07:09:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
6

answered 2015-05-18 10:00:03 -0500

David Lu gravatar image

You need to set the parameter /move_base/base_local_planner to dwa_local_planner/DWAPlannerROS

 <param name="base_local_planner" value="dwa_local_planner/DWAPlannerROS" />
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-05-18 03:17:04 -0500

Seen: 5,393 times

Last updated: May 18 '15