Ask Your Question
0

Global planner passes through the wall

asked 2015-03-16 12:37:09 -0600

heng gravatar image

updated 2015-03-16 18:43:35 -0600

David Lu gravatar image

When I give a navigation goal to my robot, the global path is just a simple straight between the goal point and my robot current location, even pass through the wall between them. The local planner works well, it is able to navigate to goal point when a short and simple navigation goal is given to it. The following is my move_base launch file:

<launch>
  <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
    <param name="base_global_planner" value="carrot_planner/CarrotPlanner"/>   <!--- new added -->
    <rosparam file="$(find my_robot_2dnav)/move_base_config/costmap_common_params.yaml" command="load" ns="global_costmap" />

    <rosparam file="$(find my_robot_2dnav)/move_base_config/costmap_common_params.yaml" command="load" ns="local_costmap" />

    <rosparam file="$(find my_robot_2dnav)/move_base_config/local_costmap_params.yaml" command="load" />

    <rosparam file="$(find my_robot_2dnav)/move_base_config/global_costmap_params.yaml" command="load" />

    <rosparam file="$(find my_robot_2dnav)/move_base_config/base_local_planner_params.yaml" command="load" />

    <remap from="cmd_vel" to="linear_angular"/>
  </node>
</launch>
edit retag flag offensive close merge delete

Comments

Is it because I am using carrot_planner? Is there any other planner I can use to solve this problem?

heng gravatar imageheng ( 2015-03-16 12:57:34 -0600 )edit

Yes. The carrot_planner is (intentionally) very simple, and the behavior you describe is well-documented.

ahendrix gravatar imageahendrix ( 2015-03-17 01:34:20 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-03-16 13:45:27 -0600

Remove the base_global_planner line. The navfn/NavfnROS global planner will then be used.

edit flag offensive delete link more

Comments

Thanks! It works!

heng gravatar imageheng ( 2015-03-17 03:08:08 -0600 )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

1 follower

Stats

Asked: 2015-03-16 12:37:09 -0600

Seen: 276 times

Last updated: Mar 16 '15