Ask Your Question
1

how to prevent navigate backwards, and only rotate and move forwards for navigation?

asked 2017-10-06 11:57:06 -0500

vcdanda gravatar image

Hi, I'm using navigation stack and using teb_local_planner for path planning. But when I use it, I found there's problem for the robot because it will move backwards while my laser can only detect the forward area. Is there any parameter that I can adjust to make it only rotate and move forward?

I've searched on the website, someone said they change the min_vel to negative, and someone said to change the escape_vel to 0. I have no idea about these, and maybe other parameters I need to know in advance?

Anyone familiar with teb_local_planner? I'm glad to hear your advice. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2017-10-06 12:35:02 -0500

croesmann gravatar image

I assume you have a differential drive robot.

Unfortunately, we cannot restrict the optimzer's search space to positive velocities only, since our solver does not support hard-constraints. But you can penalize backwards motions by significantly increasing parameter weight_kinematics_forward_drive. Increase the value by using rqt_reconfigure until you find a satisfactory value (too large values might reduce convergence speed).

Furthermore, you can reduce max_vel_x_backwards to 0 (or it is better to reduce this paramter to at least the value of parameter penalty_epsilon from a numerical point of view; the value is 0.1 by default; I am going to improve this behavior in future versions).

edit flag offensive delete link more

Comments

Never thought about this solution. Sounds pretty reasonable, I'll do as what you have said by changing these parameters . Hope I will get a good result.

vcdanda gravatar image vcdanda  ( 2017-10-07 08:09:13 -0500 )edit

@vcdanda did you?

aarontan gravatar image aarontan  ( 2018-06-07 15:53:14 -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

3 followers

Stats

Asked: 2017-10-06 11:57:06 -0500

Seen: 1,410 times

Last updated: Oct 06 '17