-
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
Change shape-shape intersection API to return multiple contacts #52
Merged
jslee02
merged 15 commits into
flexible-collision-library:master
from
dartsim:shape_shape_collision_api
Nov 22, 2015
Merged
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
66d678b
Change shape-shape intersection API to return multiple contacts
jslee02 33ff703
Fix bug in adding node-node contact result to the total contact result
jslee02 c4fe4d9
Merge remote-tracking branch 'upstream/master' into shape_shape_colli…
jslee02 3cd9219
Merge remote-tracking branch 'upstream/master' into shape_shape_colli…
jslee02 4f5b857
Assign default values of query information for shape[~][Intersect/Dis…
jslee02 3c4954f
Change contact point comparison function to follow the convention: re…
jslee02 e9d9c44
Merge remote-tracking branch 'origin/master' into shape_shape_collisi…
jslee02 2eb2a49
Update shape collision test suit for multiple contacts -- only sphere…
jslee02 6247ed0
Fix normal direction of boxbox collision to point to second object
jslee02 60f380d
Update boxbox intersection tests
jslee02 17f72c8
Update other shape-shape intersection tests
jslee02 a14dd80
Update plane-[shape] intersection tests
jslee02 10abbd2
Update all the rest intersection tests
jslee02 d083df2
Give more tolerance for clang build
jslee02 75b59e6
Remove a legacy function in test_fcl_geometric_shapes.cpp
jslee02 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comparison functions used by
std::min_element
andstd::max_element
return true if the first element is less than the second. The logic of this function appears to be the opposite of that. It would be nice to match the existing convention.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's intended. This comparison function is used to partially sort contact points in descending order using
partial_sort()
. I couldn't find a way to do it without passing this customized greater-like function.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I learned a way using
boost::bind
. The comparison function was fixed to follow the existing convention in 3c4954f.