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

What is the difference DWAPlannerROS/global_plan and DWAPlannerROS/local_plan?

asked 2018-03-27 04:21:07 -0500

fighterxi gravatar image

Hi there, can anybody tell me the difference between these two topics in DWA Planner?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2018-03-27 06:27:36 -0500

mgruhler gravatar image

To Quote the wiki:

2.1.1 Published Topics

~<name>/global_plan (nav_msgs/Path) The portion of the global plan that the local planner is currently attempting to follow. Used primarily for visualization purposes.

~<name>/local_plan (nav_msgs/Path) The local plan or trajectory that scored the highest on the last cycle. Used primarily for visualization purposes.

Basically, global_plan is what is currently viewed as "follow this path", i.e. the Input to the planner, which is not the full path to the goal. Otherwise, it might be that tremendous shortcuts could appear. How long this is depends on several Parameters, maily those in 2.2.3 of the wiki.

The local plan is the adjusted/sampled trajectory which is executed in the following, i.e. the Output. The execution, however, happens in terms of velocities that are published through move_base.

edit flag offensive delete link more

Comments

It sometimes helps to think of the local_planner as a "controller" -- it's really generating direct commands to the base by figuring out how to follow the global plan (while still avoiding collisions, etc).

fergs gravatar image fergs  ( 2018-03-27 17:38:33 -0500 )edit

@fergs good point, though I'd rather see it as collision avoidance (in terms of which way to go around obstacles) + controller. IMO, this is one of those things I experienced to be of a constant source of confusion in beginning with ROS. One could probably argue that this could be split, though some

mgruhler gravatar image mgruhler  ( 2018-03-28 01:01:24 -0500 )edit

local planners (as dwa) work directly in velocity space and thus splitting makes no sense, as the computations are interleaved. But others, (e.g. eband_local_planner) work in configuration space and then require controllers generating the velocities.

mgruhler gravatar image mgruhler  ( 2018-03-28 01:04:34 -0500 )edit

Question Tools

Stats

Asked: 2018-03-27 04:21:07 -0500

Seen: 30,340 times

Last updated: Mar 27 '18