Ask Your Question

Problem of PR2 turning around when using local planner

asked 2013-07-16 12:00:23 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi! I am facing a problem that when I am using nav stack and dwa local planner to navigate the PR2 in gazebo. I have the map for navigation, but if I set the goal to close to some obstacles, the robot will start turning around and lose its goal. Is there any solution to this problem?

edit retag flag offensive close merge delete



How close are you setting the goal to the obstacles? Is it closer than the radius of the robot?

ahendrix gravatar image ahendrix  ( 2013-07-16 13:21:44 -0500 )edit

Maybe it is smaller than the radius of the robot. But the planner still generate a valid global plan. And the robot begins to circle over 2 meters ahead of the goal. Is there any way that we can do to force the robot to follow its global plan?

HanXiao gravatar image HanXiao  ( 2013-07-17 12:12:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-07-17 15:09:46 -0500

ahendrix gravatar image

If the obstacle is not in the robot's global map, and the goal is too close to the obstacle (within the radius of the robot), the global planner will produce a valid path, but the local planner will not be able to execute it because it would put the robot in collision with the obstacle.

If the goal is too close to the obstacle, the robot will behave OK until it gets within sensor range of the obstacle, at which point the local planner will start issuing warnings about the goal point being in collision. It will also start executing the recovery behaviors in an attempt to clear out sensor noise. The recovery behaviors are probably causing the rotating that you're seeing.

If you aren't already, it's probably worth watching the console output or rosout from navigation while the robot is navigating.

edit flag offensive delete link more


Thanks. We found that the reason is the goal was too close to the obstacle in the global map that made it spin. We fixed that by increasing the distance between the goal and obstacle.

HanXiao gravatar image HanXiao  ( 2013-07-24 12:34:07 -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: 2013-07-16 12:00:23 -0500

Seen: 175 times

Last updated: Jul 17 '13