Ask Your Question

how to prohibit global planning through unknown area?

asked 2014-07-16 10:37:24 -0600

dreamcase gravatar image

Hi, All,

occasionally, I found my navigational stack (move_base) plans a route through unknown space.

how do I prohibit such behaviour? I noticed there's a parameter

allow_unknown: false

for this purpose, But where should it be set?

Regards Ray

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-16 19:53:07 -0600

Hi Ray,

You can create a configuration file named base_global_planner_param.yaml on your navigation package (assuming that the package name is my_robot_2dnav and that you are using the default global planner NavfnROS) with the following contents:

  allow_unknown: false

And then load it when you launch the move_base node:

  <node pkg="move_base" type="move_base" name="move_base">
    <rosparam file="$(find my_robot_2dnav)/base_global_planner_param.yaml" command="load"/>

Good luck!

edit flag offensive delete link more


perfect! the global planning works fine now.

dreamcase gravatar imagedreamcase ( 2014-07-17 10:50:07 -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


Asked: 2014-07-16 10:37:24 -0600

Seen: 622 times

Last updated: Jul 16 '14