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

Another FCL bug that calls EPA while the origin is outside the polytope #398

Closed
hongkai-dai opened this issue Apr 26, 2019 · 3 comments · Fixed by #434
Closed

Another FCL bug that calls EPA while the origin is outside the polytope #398

hongkai-dai opened this issue Apr 26, 2019 · 3 comments · Fixed by #434
Assignees

Comments

@hongkai-dai
Copy link
Contributor

Caught in the wild

terminate called after throwing an instance of 'std::logic_error'
[load_silverware_manual_test]   what():  Error with configuration
[load_silverware_manual_test]   Original error message: external/fcl/include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h:(1612): validateNearestFeatureOfPolytopeBeingEdge(): The origin is outside of the polytope. This should already have been identified as separating.
[load_silverware_manual_test]   Shape 1: Box 0.61399999999999999023                       3 0.036999999999999998168
[load_silverware_manual_test]   X_FS1
[load_silverware_manual_test]                       1                       0                       0 -0.67500000000000004441
[load_silverware_manual_test]                       0                       1                       0                       0
[load_silverware_manual_test]                       0                       0                       1  0.91149999999999997691
[load_silverware_manual_test]                       0                       0                       0                       1
[load_silverware_manual_test]   Shape 2: Box 0.49399999999999999467  0.55200000000000004619 0.010000000000000000208
[load_silverware_manual_test]   X_FS2
[load_silverware_manual_test]                       1                       0                       0 -0.69199999999999994849
[load_silverware_manual_test]                       0                       1                       0                       0
[load_silverware_manual_test]                       0                       0                       1  0.93500000000000005329
[load_silverware_manual_test]                       0                       0                       0                       1
[load_silverware_manual_test]   Solver: GjkSolver_libccd
[load_silverware_manual_test]     collision_tolerance:      2.0097183471152322134e-14
[load_silverware_manual_test]     max collision iterations: 500
[load_silverware_manual_test]     distance tolerance:       9.9999999999999995475e-07
[load_silverware_manual_test]     max distance iterations:  1000
@hongkai-dai hongkai-dai self-assigned this Apr 26, 2019
@sherm1
Copy link
Member

sherm1 commented Apr 26, 2019

😢

@hongkai-dai
Copy link
Contributor Author

I cannot reproduce this error.

These two boxes are axis-aligned. It is easy to see that they are in perfect touching contact, along z direction.

@hongkai-dai
Copy link
Contributor Author

I can reproduce this error with 09f846c. And the commit 2112037 which returns vertex as the support of the box also gets rid of the error reported in this issue.

But this could be an error in our code, that perfect touching contact can call either GJK or EPA. EPA might think that the origin is not strictly inside the polytope (EPA handles penetration contact).

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 a pull request may close this issue.

2 participants