-
Notifications
You must be signed in to change notification settings - Fork 417
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
Adding scalar-dependent tolerances to GJK solvers #279
Adding scalar-dependent tolerances to GJK solvers #279
Conversation
1fe1c9f
to
1ba83c8
Compare
FYI -- CI failure looks real for test_fcl_geometric_shapes. Review status: 0 of 5 files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
Reviewed 5 of 5 files at r1. include/fcl/math/constants.h, line 76 at r1 (raw file):
Awesome documentation -- thanks! include/fcl/math/constants.h, line 110 at r1 (raw file):
BTW just to be clear to people who might be skimming this comment, add a comment above this line, like:
include/fcl/math/constants.h, line 112 at r1 (raw file):
BTW "common basis" -> "common but incorrect" include/fcl/math/constants.h, line 135 at r1 (raw file):
BTW missing periods on this and previous sentence. include/fcl/math/constants.h, line 139 at r1 (raw file):
BTW would be worth saying that this is the machine epsilon for the in-use RealType, and that it is much tighter in double -- approx 2e-14 vs 9e-7 for IEEE floating point double vs float, resp. Consider including those numbers in the comment to make it clear what this means. Also, below you used ε rather than epsilon. Consider ε^(7/8) in comments rather than the awkward C "pow" syntax. include/fcl/narrowphase/detail/gjk_solver_libccd-inl.h, line 906 at r1 (raw file):
BTW why is this one still hardcoded? test/test_fcl_constant_eps.cpp, line 67 at r1 (raw file):
BTW consider allowing for a small numerical error here? test/test_fcl_constant_eps.cpp, line 118 at r1 (raw file):
BTW missing newline at eof Comments from Reviewable |
1ba83c8
to
e353be5
Compare
Review status: 3 of 6 files reviewed at latest revision, 7 unresolved discussions. include/fcl/math/constants.h, line 76 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Thanks include/fcl/math/constants.h, line 110 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done include/fcl/math/constants.h, line 112 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done include/fcl/math/constants.h, line 135 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done include/fcl/math/constants.h, line 139 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done include/fcl/narrowphase/detail/gjk_solver_libccd-inl.h, line 906 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Because I'm not addressing distance yet and didn't want to get into distance tests until I'm good and ready. test/test_fcl_constant_eps.cpp, line 67 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done Added document acknowledging the expectation that the two values should match down to the last bit. test/test_fcl_constant_eps.cpp, line 118 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done Comments from Reviewable |
e353be5
to
af4ea57
Compare
1. Extends fcl::constants to have scalar-dependent tolerances a. Documentation b. Tests 2. Modify default constructors for solvers to use default values 3. Modify "osculating" unit test to preserve its current behavior which is otherwise affected by tighter tolerances.
af4ea57
to
175bb11
Compare
Reviewed 2 of 3 files at r2, 1 of 1 files at r3. Comments from Reviewable |
@sherm1 CI failures on the "standard" failures. Merge? Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
Ooops.. CI failures are the "standard" failures. Merge? Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
a. Documentation
b. Tests
Fixes #278
This change is