Open cosmicog opened 8 years ago
I found temporal solution when I was poking rqt_reconfigure
:)
~planner_frequency
(double, default: 0.0)The rate in Hz at which to run the global planning loop. If the frequency is set to 0.0, the global planner will only run when a new goal is received or the local planner reports that its path is blocked. New in navigation 1.6.0
Changed /move_base/planner_frequency
from 0.0
to 10.0
.
Now It doesn't stuck with its new plan. But I think It's still an issue.
Which build is your dwa, 1.13?
No, 1.12.7, indigo, but I've tried 1.13.1 too.
My terminal show that DWA planner failes to produce path. What are there possible reason? Thank you very much!
Hi,
I also faced the same issue, so I tried to trace related source codes and found something probably are the causes of the problem. But I am not sure, so maybe someone in here could give me some suggestions?
My opinion (or guessing): the trajectory created by DWA are scoring based on 6 critics, one of it is the distance between current robot pose and local goal. And the local goal is set by the intersection of bounds of "local-cost-map" and global path (could be proven in "map_grid.cpp"). Hence, in the video shown above (also in my case), the local cost map is too big that the local goal is the same as the global goal. Generally, this situation is not a big deal, but when the global path contains "U-turn" shape, it causes problem. When the robot is moving along the U-turn segment and "crossing" the local goal projected point, DWA trajectory generator can not find the best scored result since in this moment, the goal is behind the robot, so it should move backward, but when the robot move a bit back, the goal is now in front of it. This "back and forth" phenomenon can be easily observed by visualizing the DWA-local path. To overcome this issue (if my hypothesis was not wrong), the fast way is to narrow the area of "local cost map". In my case it was working when the local goal does not locate on the U turn segment.
@jim1993 I don't know what is "U-turn" shap?
Hi,
I also faced the same issue, so I tried to trace related source codes and found something probably are the causes of the problem. But I am not sure, so maybe someone in here could give me some suggestions?
My opinion (or guessing): the trajectory created by DWA are scoring based on 6 critics, one of it is the distance between current robot pose and local goal. And the local goal is set by the intersection of bounds of "local-cost-map" and global path (could be proven in "map_grid.cpp"). Hence, in the video shown above (also in my case), the local cost map is too big that the local goal is the same as the global goal. Generally, this situation is not a big deal, but when the global path contains "U-turn" shape, it causes problem. When the robot is moving along the U-turn segment and "crossing" the local goal projected point, DWA trajectory generator can not find the best scored result since in this moment, the goal is behind the robot, so it should move backward, but when the robot move a bit back, the goal is now in front of it. This "back and forth" phenomenon can be easily observed by visualizing the DWA-local path. To overcome this issue (if my hypothesis was not wrong), the fast way is to narrow the area of "local cost map". In my case it was working when the local goal does not locate on the U turn segment.
Thanks to @haochihlin, this is EXACTLY my issue. Awesome explanation!
I tried lowering goal_dist_cost and increasing path_distance_cost, but in short, this do not work. I found out that goal_dist_cost can't be too close to 0 (otherwise the planner might face multiple paths considered "optimal" as they are all close to the global path. Jacking up path_dist_cost alone does not work in my case either.
So, decrease the local costmap size is the best option IMO.
My terminal show that DWA planner failes to produce path. What are there possible reason? Thank you very much!
Hey I have a similar situation. Issue. Could you tell me How did you resolve it?
Here is video, I'm using
dwa_local_planner
and it confuses at near to goal position and some other locations. Especially, when goal point's X and footprint center's X are close, it always confuses.Here is Planner's other crazy movement video.
rqt_console
says at struggling:I've replaced footprint to square but the result didn't change. Dear @DLu, @mikeferguson, still no answer / comment on this 4 days old ROS Answers thread. Is it bug or wrong parameter setting? Thank you!
Here is parameters: