-
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
Remove duplicated code between GJKDistance and GJKSignedDistance #292
Remove duplicated code between GJKDistance and GJKSignedDistance #292
Conversation
Nice -- with a few BTWs, and pending CI. Reviewed 1 of 1 files at r1. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1746 at r1 (raw file):
BTW you don't really need a struct here. Consider: template <typename S>
using SignedDistanceFn =
std::function<S(const void*, const void*, const ccd_t*,
ccd_vec3_t*, ccd_vec3_t*)>; You could also use the C-style function type declaration -- it's the "using" rather than "typedef" that allows you to templatize. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1749 at r1 (raw file):
BTW more common to use Comments from Reviewable |
You have some unique CI issues.
It appears related to the fact that the mac is using a 32-bit build. Review status: all files reviewed at latest revision, 2 unresolved discussions. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1741 at r1 (raw file):
BTW FCL doesn't have any other instances of include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1743 at r1 (raw file):
BTW A couple of things:
include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1744 at r1 (raw file):
BTW Related to your mac CI failure, you probably need to have this return a include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1748 at r1 (raw file):
BTW As before, I'd ask for docs. :) Let's leave the code better than when we found it. Comments from Reviewable |
Clang builds finished -- original failure does seem to have been a transient execution problem. Now you just have the Mac issue. Review status: all files reviewed at latest revision, 6 unresolved discussions, some commit checks failed. Comments from Reviewable |
Review status: all files reviewed at latest revision, 6 unresolved discussions, some commit checks failed. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1741 at r1 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
I tried to swap to include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1743 at r1 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1744 at r1 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1746 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1748 at r1 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1749 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. Comments from Reviewable |
A few more comments ... Reviewed 2 of 2 files at r2. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 215 at r2 (raw file):
BTW res -> dist include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 223 at r2 (raw file):
BTW what is the include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 238 at r2 (raw file):
BTW res -> dist include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1760 at r2 (raw file):
BTW "of not" -> "or not" include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1761 at r2 (raw file):
BTW include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1766 at r2 (raw file):
FYI I like the (Also for the API methods in gjk_libccd.h.) include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1767 at r2 (raw file):
BTW return bool needs documentation. Comments from Reviewable |
Also looks like it needs a manual merge. Review status: all files reviewed at latest revision, 11 unresolved discussions, some commit checks failed. Comments from Reviewable |
6173306
to
dd1f2bf
Compare
Review status: 0 of 2 files reviewed at latest revision, 11 unresolved discussions. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 215 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 223 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 238 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1741 at r1 (raw file): Previously, hongkai-dai (Hongkai Dai) wrote…
Removed the namespace. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1760 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1761 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Inside the function it has a local variable also named as include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1766 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1767 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. Comments from Reviewable |
Reviewed 2 of 2 files at r3. Comments from Reviewable |
Few last comments Reviewed 1 of 2 files at r3. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 244 at r3 (raw file):
BTW s/nagation/negation include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1710 at r3 (raw file):
BTW missing space include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1730 at r3 (raw file):
BTW I'd say the "actual meaning of the negative distance is defined by include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1773 at r3 (raw file):
BTW funky indentation Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd.h, line 244 at r3 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1710 at r3 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1730 at r3 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
Done. include/fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h, line 1773 at r3 (raw file): Previously, SeanCurtis-TRI (Sean Curtis) wrote…
Done. Comments from Reviewable |
We'll do one last reality check on the CI when it's done. But should be in a mergeable state. Reviewed 2 of 2 files at r4. Comments from Reviewable |
CI confirmed; ready for merging. @sherm1 Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
…xible-collision-library#292) Remove duplicated code.
Resolves #289
This change is