-
Notifications
You must be signed in to change notification settings - Fork 421
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
Fix extractClosestPoint method, reset dir variable #251
Fix extractClosestPoint method, reset dir variable #251
Conversation
@avalenzu I have noticed that the EPA technique for extracting nearest points is not always accurate. It looks like it just loops over the vertices's and finds the closest to the witness. Could your method for extracting nearest be applied here to get a more accurate nearest point when in collision? |
Potentially? |
That is correct. I am testing it now and will let you know how it works. |
Ping? |
I'll review this tomorrow morning as well.... |
(oops -- sorry, accidentally clicked close by a gnat's wing.) @Levi-Armstrong you'll need to rebase this as well. |
debfc4d
to
c387d50
Compare
I just rebased. |
A few things:
So, I'm going to lob this back and ask for a unit test (perhaps included in I will note, however, that this change causes the mac CI failure which has been plaguing us to go away. So, that's a strong indicator. But we do need a unit test that would fail without this fix on any OS. Reviewed 1 of 1 files at r1. Comments from Reviewable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. @Levi-Armstrong I believe your problem is now resolved in master. Can you confirm that and then we can close this PR.
Reviewable status: complete! all files reviewed, all discussions resolved
Sure, I will check and confirm that my issue is resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I appreciate it.
Reviewable status: complete! all files reviewed, all discussions resolved
I was able to test it but to completely resolve the issue I had to include #288 also? |
It was difficult to track down but occasionally I would get invalid nearest points being meters off. It turns out
dir
variable gets normalized here. Which becomes an issue at two places. The first, if it makes it into this if statement here it passes an incorrect point to be extracted. The second place, is on the next interation if enters this function and there is not improvement thedir
is not recalculated shown here. Which then if it enters this if statment here it would pass an incorrect point to be extracted.This change is