Ask Your Question

Change of path planners

asked 2018-04-17 15:29:03 -0500

mrphaell gravatar image

Hi, I'm new to ROS, and I'm having trouble changing the default path planner to some other on my project. The project currently uses the navfn planner, but I was looking to use DWA planner (or other you may suggest). How I'll be able to change that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-18 01:26:29 -0500

mgruhler gravatar image

updated 2018-04-19 02:19:56 -0500

Note that navfn is a global planner, i.e. it computes that path from a start point to an end point, whereas dwa_local_planner is a local planner (as the name suggests) , which is used to avoid obstacles while following a pre-planned (from the global planner) path.

Thus, you cannot substitute one with the other.

Alternatives would be (amongst others):

You can change them by replacing the respective base_global_planner and base_local_planner parameters of move_base to the respective planner plugin name.


About what plan are you talking now? Global or local?

Anyways, the answer is the same. Choose your appropriate planner algorithm and implement that as the respective LocalPlanner/GlobalPlanner plugin to move_base. There is a tutorial about how to do this for a global planner on the wiki. You can also have a look on other planners how they are implemented.

edit flag offensive delete link more


I'm sorry, when I was writing the question I forgot to mention that. I'm using the setup of navfn and TrajectoryPlannerROS. I wanted to use some kind of genetic algorithm to make the path plan, but I'm having trouble with that, so I thought about changing the current one to any other setup.

mrphaell gravatar image mrphaell  ( 2018-04-18 11:17:50 -0500 )edit

Could you by any chance give me a hint of how I could make use of a ga to create the plan?

mrphaell gravatar image mrphaell  ( 2018-04-18 11:19:20 -0500 )edit

see edit above

mgruhler gravatar image mgruhler  ( 2018-04-19 02:20:03 -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



Asked: 2018-04-17 15:29:03 -0500

Seen: 233 times

Last updated: Apr 19 '18