Ask Your Question

How do I make the local planner rotate in place?

asked 2015-08-12 14:40:06 -0600

updated 2018-05-05 11:49:39 -0600

How can I get the local planner to turn in place and then head towards a goal instead of moving forward and turning at the same time? I am facing issues when the robot is able to reach a goal but cannot come back to the same point by doing a turn in place and following a similar global plan. The local planner tries to make the robot move forward and turn. But it then comes too close to an obstacle and get stuck.

edit retag flag offensive close merge delete


Does anyone have a suggestion about this please? It would be really helpful.

DanThe gravatar imageDanThe ( 2016-03-17 16:14:27 -0600 )edit

If you have a comment please post it as a comment; not an answer.

ahendrix gravatar imageahendrix ( 2016-03-17 16:26:23 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-03-17 16:28:17 -0600

ahendrix gravatar image

If your robot gets too close to obstacles, you should figure out why it's doing that; not try to force complicated heuristics on the planner.

You may want to adjust your footprint or the obstacle distance bias in the local planner.

edit flag offensive delete link more


Thanks for your answer. The problem is not that it is getting too close to obstacles but when working in confined spaces, I would like to prevent the robot from doing large translations when trying to rotate to avoid collisions. Which is the obstacle distance bias parameter for trajectory rollout?

DanThe gravatar imageDanThe ( 2016-03-17 16:37:46 -0600 )edit

Just in case it is helpful to anyone, in the parameters for TrajectoryPlannerROS - setting the occdist_scale parameter to a value higher than the default value, helps to control the turning radius of the robot.

DanThe gravatar imageDanThe ( 2016-03-19 08:40:35 -0600 )edit

answered 2016-04-07 19:47:38 -0600

pgigioli gravatar image

updated 2016-04-07 19:48:54 -0600

Have you tried allowing the planner to move the robot backwards? I was having a similar problem except even with an in place rotation the robot would get stuck when too close to obstacles. Simply change the min_vel_x param for the dwa_local_planner to a negative value to allow backwards planning.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-08-12 14:40:06 -0600

Seen: 1,182 times

Last updated: May 05 '18