-
Notifications
You must be signed in to change notification settings - Fork 98
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
Setting default parameters for the narrowphase #531
Merged
jcarpent
merged 16 commits into
coal-library:devel
from
lmontaut:louis/topic/narrowphase-defaults
Feb 9, 2024
Merged
Setting default parameters for the narrowphase #531
jcarpent
merged 16 commits into
coal-library:devel
from
lmontaut:louis/topic/narrowphase-defaults
Feb 9, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checking the max coef is incompatible with the first convergence criterion of GJK which checks the norm of the current iterate (see first convergence check in `GJK::evaluate` in `gjk.cpp`). This convergence check is needed, so it's better to adapt the assertion than the GJK check itself.
Also bumped the tolerance of the assertion because asking 1e-16 is way too small.
This PR also fixes additional assertion errors in GJK and BVH thanks to tests provided by #382 |
jcarpent
previously approved these changes
Feb 8, 2024
jcarpent
reviewed
Feb 8, 2024
jcarpent
reviewed
Feb 8, 2024
jcarpent
previously approved these changes
Feb 8, 2024
time I only keep the cases that were previously triggering asserts. Otherwise this test timeout on the CI. All of the other cases don't trigger any assert.
jorisv
requested changes
Feb 9, 2024
lmontaut
force-pushed
the
louis/topic/narrowphase-defaults
branch
from
February 9, 2024 09:55
2176822
to
29273e7
Compare
jorisv
approved these changes
Feb 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is related to #380 where users are sometimes experiencing assertion errors in Debug mode.
This PR is related to one of these assertion triggers:
1e-6
. This PR introduces default values for GJK and EPA and places a warning in Debug mode only for users going below this tolerance.Side note: when working with the default GJK and EPA (default
1e-6
tolerance, default convergence criterion), it is precise up to the micro-meter, which is an extremely low tolerance. In practice, working with1e-4
or even1e-3
should be more than enough.Sorry for the long coming text.
I will use this PR to evoke the 2 main other assertions that sometimes trigger: