Ask Your Question
1

How to use the DWB local planner

asked 2019-01-11 09:26:05 -0500

Mobile_robot gravatar image

Dear all,

I was wondering if you can help me to find out how to use the DWB_local_planner in move_base.

I have already installed all the packages in the This.

You can find the part of the launcher where I call the move_base.

<!--- Run move_base -->
<node respawn="false" pkg="move_base" type="move_base" name="move_base" output="screen">
    <rosparam file="$(find dsi_airbus_manager)/conf/move_base/common_costmap_params.yaml" command="load" ns="global_costmap" />
    <rosparam file="$(find dsi_airbus_manager)/conf/move_base/common_costmap_params.yaml" command="load" ns="local_costmap" />
    <rosparam file="$(find dsi_airbus_manager)/conf/move_base/local_costmap_params.yaml" command="load" />
    <rosparam file="$(find dsi_airbus_manager)/conf/move_base/global_costmap_params.yaml" command="load" />
    <rosparam file="$(find dsi_airbus_manager)/conf/move_base/base_local_planner_params.yaml" command="load" />
    <param name="base_local_planner" value="teb_local_planner/TebLocalPlannerROS" />
    <param name="controller_frequency" value="10.0" />
    <param name="base_global_planner" value="global_planner/GlobalPlanner"/>
    <param name="recovery_behavior_enabled" value="false"/>>
    <param name="planner_patience" value="5.0"/>
    <param name="controller_patience" value="15.0"/>
    <param name="shutdown_costmaps" value="false"/>
    <param name="oscillation_timeout" value="30.0"/>
    <param name="oscillation_distance" value="0.4"/>
    <param name="planner_frequency" value="0.5"/>
    <param name="max_planning_retries" value="15"/>
</node>

At the moment I use the TEB_local_planner. But I have no idea how I can call the DWB_local_planner in the launch file.

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-01-11 10:09:40 -0500

David Lu gravatar image

To use DWB in move_base, you need to use the nav_core_adapter (documentation behind that link)

In your case, I would replace the line <param name="base_local_planner" value="teb_local_planner/TebLocalPlannerROS" /> with the following

<param name="base_local_planner" value="nav_core_adapter::LocalPlannerAdapter" />
<param name="LocalPlannerAdapter/planner_name" value="dwb_local_planner::DWBLocalPlanner" />

Then you would need to edit the parameters in local_costmap_params.yaml at the very least to have them loaded in the DWBLocalPlanner namespace.

edit flag offensive delete link more

Comments

Thanks a lot David..

Is it possible to provide a WIKI page for the DWB_local_planner](https://github.com/locusrobotics/robot_navigation/tree/master/dwb_local_planner) in order to avoid these questions?

Mobile_robot gravatar imageMobile_robot ( 2019-01-11 17:46:00 -0500 )edit

Documentation to this effect does exist (below).

https://github.com/locusrobotics/robo...

stevemacenski gravatar imagestevemacenski ( 2019-01-23 13:14:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-01-11 09:26:05 -0500

Seen: 251 times

Last updated: Jan 11