Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prevent_look_ahead_poses_near_goal to fix oscillation #332

Conversation

corot
Copy link
Collaborator

@corot corot commented Nov 25, 2021

Never look ahead to the last few poses of the plan in order to prevent oscillating forward and backward over the goal when the xy_goal_tolerance is small. Specified by new parameter prevent_look_ahead_poses_near_goal whose default is zero.

Cherry-picked from #180 for melodic and without the additional reconfigurable parameters, to avoid cluttering the RQT tool.
We can add one-by-one whatever parameters we find useful to, as we did with control_look_ahead_poses.

Thanks to @howardcochran for the contribution

Never look ahead to the last few poses of the plan in order to prevent
oscillating forward and backward over the goal when the
xy_goal_tolerance is small. Specified by new parameter
prevent_look_ahead_poses_near_goal whose default is zero.
@corot corot marked this pull request as ready for review November 26, 2021 11:38
@SteveMacenski SteveMacenski removed their request for review November 26, 2021 19:33
@corot corot merged commit ec5759d into rst-tu-dortmund:melodic-devel Dec 2, 2021
@bxc237
Copy link

bxc237 commented May 6, 2022

@corot Hi, could you explain more about this value? Let's say control_look_ahead_poses was set to 3, what is the reasonable value for prevent_look_ahead_poses_near_goal?

@corot
Copy link
Collaborator Author

corot commented May 10, 2022

@corot Hi, could you explain more about this value? Let's say control_look_ahead_poses was set to 3, what is the reasonable value for prevent_look_ahead_poses_near_goal?

I cherry-picked from PR #180, where the problem is explained in more detail
in your case, if u set prevent_look_ahead_poses_near_goal to 3, that means that lookahead pose will be the 3rd one except near the pose, that it will the 2nd, then 1st

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants