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

Exposing gjk utils #302

Merged
merged 25 commits into from
Jun 3, 2022
Merged

Conversation

lmontaut
Copy link
Contributor

@lmontaut lmontaut commented Jun 1, 2022

  • make tolerance & max_iterations available in QueryRequests
  • removing setGJKVariant/ConvergenceCriterion in GJKSolver to keep consistency with tolerance and max_iterations
  • better naming for convergence criterion in GJKSolver

@lmontaut lmontaut marked this pull request as draft June 2, 2022 11:34
@lmontaut lmontaut force-pushed the feature/exposing_gjk_utils branch from c749e7a to db25e42 Compare June 2, 2022 13:15
@lmontaut
Copy link
Contributor Author

lmontaut commented Jun 2, 2022

I added an enum gjk_initial_guess in GJKSolver so that the user can choose between

  • Default: vector (1, 0, 0)
  • cached: set by the user or previous GJK result
  • aabb centers: vector center aabb1 - center aabb2

Regarding the API, the user sets request.gjk_initial_guess = GJKInitialGuess::DefaultGuess/CachedGuess/BoundingVolumeGuess.
When either the collision/distance functions or functors are used, request passes the user's settings down to GJKSolver which in turn passes it down to GJK which actually runs the gjk algorithm.

The previous enable_cached_guess is still there but deprecated.

src/collision.cpp Outdated Show resolved Hide resolved
src/collision.cpp Outdated Show resolved Hide resolved
@lmontaut lmontaut marked this pull request as ready for review June 2, 2022 14:34
include/hpp/fcl/collision_data.h Outdated Show resolved Hide resolved
include/hpp/fcl/collision_data.h Show resolved Hide resolved
include/hpp/fcl/narrowphase/narrowphase.h Show resolved Hide resolved
@lmontaut lmontaut force-pushed the feature/exposing_gjk_utils branch from dce544c to 1d92924 Compare June 3, 2022 09:03
@jcarpent jcarpent merged commit c4639f8 into coal-library:devel Jun 3, 2022
@lmontaut lmontaut deleted the feature/exposing_gjk_utils branch June 3, 2022 15:15
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 this pull request may close these issues.

3 participants