-
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
SplineMotion collision Regression bug in fcl-0.5 vs 0.6.1 commit b611d50 #501
Comments
Thanks for calling this out and sorry for the regression. The logical thing would be to introduce the test into FCL and do a little bisection. I don't know when we'll have some free cycles to address this, but if you end up discovering the cause, we'd love to help PR it into FCL. |
Ok, we've tracked this down to changes in the sphereSphereDistance function. The change in 0.6.1 tweaked the point computations. |
I'm a little suspicious of the change from the local to global coordinate frame for the returned points. If the conservative advancement algorithm implementation wasn't updated to expect a global coordinate frame, then that could explain a regression being introduced in 0.6. |
This is some really good sleuthing! Thanks for tracking it down. Changing the frame was definitely the right thing to do (see PR #288), but clearly code in FCL that was dependent on that frame was not caught. Lack of unit tests, presumably. The right thing is to make sure that anything calling distance queries recognizes the frame in which the results are reported. So, looking at your test case, the problem is not in the |
Yup, @SeanCurtis-TRI removing the transform multiplication fixes it! Thanks a lot! We've also added a PR for the fix: |
Hi, we've been using fcl's SplineMotion and collisions are being reported incorrectly between versions 0.5 and 0.6.1, commit b611d50. I've noted that fcl::Transform3f was switched to the Eigen version, but besides that I don't know what else changed that affects this.
Here's some unit tests to showcasing this bug:
fcl-0.5
https://github.com/ddengster/fcl/tree/fcl-0.5-splinemotion-bug
fcl-0.5 result:
fcl-0.6.1
https://github.com/ddengster/fcl/tree/0.6.1-splinemotion-bug
fcl-0.6.1 result:
If anyone could provide some insight into this it would be much appreciated. Thanks!
The text was updated successfully, but these errors were encountered: