ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Dynamic Window Approach(dwa) parameter should be false ? true ?

asked 2012-12-18 15:14:29 -0600

moyashi gravatar image

updated 2012-12-18 16:04:34 -0600

Hi, I'm using nav stack with both of my robot and turtlebot.
I have a question about dwa parameter.
Can I set it false ?

Without DWA, the robot moves fast(it's natural) and smoothly,
and can avoid obstacles correctly.
Also, turtlebot's dwa parameter is false(default) though wiki says nav stack uses dwa algorithm.

Don't we need to use DWA algorithm ?
If yes, what kind of algorithm is used as local planner instead of DWA?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-18 21:22:21 -0600

damjan gravatar image

Hi moyashi,

if you set the dwa parameter to false, the local planner will use the Trajectory Rollout (TR) algorithm. The differences between the two are summarized here:

"DWA differs from Trajectory Rollout in how the robot's control space is sampled. Trajectory Rollout samples from the set of achievable velocities over the entire forward simulation period given the acceleration limits of the robot, while DWA samples from the set of achievable velocities for just one simulation step given the acceleration limits of the robot. This means that DWA is a more efficient algorithm because it samples a smaller space, but may be outperformed by Trajectory Rollout for robots with low acceleration limits because DWA does not forward simulate constant accelerations. In practice however, we find DWA and Trajectory Rollout to perform comparably in all our tests and recommend use of DWA for its efficiency gains."

I am using TR on the Pioneer robots in my lab, as I have found that it provides slightly better performance.

Some insightful comments on this subject, by the author of the base_local_planner package, can be found in these posts:


edit flag offensive delete link more


Thank you for your answer. I understood the difference ! My robot's acceleration limit is 1.0m/s^2 and I think it's enough high. However Trajectory Rollout showed better performance. So I set dwa parameter to false.

moyashi gravatar image moyashi  ( 2013-01-29 14:09:56 -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


Asked: 2012-12-18 15:14:29 -0600

Seen: 1,379 times

Last updated: Dec 18 '12