Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
coal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coal
coal
Commits
29273e79
Commit
29273e79
authored
1 year ago
by
Louis Montaut
Browse files
Options
Downloads
Patches
Plain Diff
Narrowphase: globals instead of macros for default parameters
parent
836eec17
No related branches found
No related tags found
No related merge requests found
Pipeline
#36162
passed with warnings
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hpp/fcl/narrowphase/narrowphase_defaults.h
+16
-8
16 additions, 8 deletions
include/hpp/fcl/narrowphase/narrowphase_defaults.h
with
16 additions
and
8 deletions
include/hpp/fcl/narrowphase/narrowphase_defaults.h
+
16
−
8
View file @
29273e79
...
...
@@ -38,21 +38,29 @@
#ifndef HPP_FCL_NARROWPHASE_DEFAULTS
#define HPP_FCL_NARROWPHASE_DEFAULTS
#include
<hpp/fcl/data_types.h>
namespace
hpp
{
namespace
fcl
{
/// GJK
#define
GJK_DEFAULT_MAX_ITERATIONS 128
#define
GJK_DEFAULT_TOLERANCE 1e-6
constexpr
size_t
GJK_DEFAULT_MAX_ITERATIONS
=
128
;
constexpr
FCL_REAL
GJK_DEFAULT_TOLERANCE
=
1e-6
;
/// Note: if the considered shapes are on the order of the meter, and the
/// convergence criterion of GJK is the default VDB criterion,
/// setting a tolerance of 1e-6 on the GJK algorithm makes it precise up to
/// the micro-meter.
/// The same is true for EPA.
#define
GJK_MINIMUM_TOLERANCE 1e-6
constexpr
FCL_REAL
GJK_MINIMUM_TOLERANCE
=
1e-6
;
/// EPA
#define EPA_DEFAULT_MAX_ITERATIONS 255
#define EPA_DEFAULT_TOLERANCE 1e-6
#define EPA_MINIMUM_TOLERANCE 1e-6
#define EPA_DEFAULT_MAX_FACES 128
#define EPA_DEFAULT_MAX_VERTICES 64
constexpr
size_t
EPA_DEFAULT_MAX_ITERATIONS
=
255
;
constexpr
FCL_REAL
EPA_DEFAULT_TOLERANCE
=
1e-6
;
constexpr
FCL_REAL
EPA_MINIMUM_TOLERANCE
=
1e-6
;
constexpr
size_t
EPA_DEFAULT_MAX_FACES
=
128
;
constexpr
size_t
EPA_DEFAULT_MAX_VERTICES
=
64
;
}
// namespace fcl
}
// namespace hpp
#endif // HPP_FCL_NARROWPHASE_DEFAULTS
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment