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
fb34d214
Unverified
Commit
fb34d214
authored
9 months ago
by
Louis Montaut
Browse files
Options
Downloads
Patches
Plain Diff
cmake: add macro for hpp-fcl retro compatibility
parent
c8366034
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
include/coal/data_types.h
+2
-0
2 additions, 0 deletions
include/coal/data_types.h
include/coal/fwd.hh
+2
-0
2 additions, 0 deletions
include/coal/fwd.hh
src/CMakeLists.txt
+4
-0
4 additions, 0 deletions
src/CMakeLists.txt
with
10 additions
and
1 deletion
CMakeLists.txt
+
2
−
1
View file @
fb34d214
...
...
@@ -50,8 +50,9 @@ SET(DOXYGEN_USE_TEMPLATE_CSS TRUE)
# Need to be set before including base.cmake
# ----------------------------------------------------
option
(
INSTALL_DOCUMENTATION
"Generate and install the documentation"
OFF
)
option
(
COAL_TURN_ASSERT_INTO_EXCEPTION
"Turn some critical C
OAL
asserts to exception."
FALSE
)
option
(
COAL_TURN_ASSERT_INTO_EXCEPTION
"Turn some critical C
oal
asserts to exception."
FALSE
)
option
(
COAL_ENABLE_LOGGING
"Activate logging for warnings or error messages. Turned on by default in Debug."
FALSE
)
option
(
COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
"Make Coal retro-compatible with HPP-FCL."
FALSE
)
# Check if the submodule cmake have been initialized
set
(
JRL_CMAKE_MODULES
"
${
CMAKE_CURRENT_LIST_DIR
}
/cmake"
)
...
...
This diff is collapsed.
Click to expand it.
include/coal/data_types.h
+
2
−
0
View file @
fb34d214
...
...
@@ -59,6 +59,7 @@
#endif // COAL_HAS_OCTOMAP
namespace
coal
{
#ifdef COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
// We keep the FCL_REAL typedef and the Vec[..]f typedefs for backward
// compatibility.
typedef
double
FCL_REAL
;
...
...
@@ -70,6 +71,7 @@ typedef Eigen::Matrix<FCL_REAL, 3, 3> Matrix3f;
typedef
Eigen
::
Matrix
<
FCL_REAL
,
Eigen
::
Dynamic
,
3
,
Eigen
::
RowMajor
>
Matrixx3f
;
typedef
Eigen
::
Matrix
<
FCL_REAL
,
Eigen
::
Dynamic
,
2
,
Eigen
::
RowMajor
>
Matrixx2f
;
typedef
Eigen
::
Matrix
<
FCL_REAL
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
>
MatrixXf
;
#endif
typedef
double
CoalScalar
;
typedef
Eigen
::
Matrix
<
CoalScalar
,
3
,
1
>
Vec3s
;
...
...
This diff is collapsed.
Click to expand it.
include/coal/fwd.hh
+
2
−
0
View file @
fb34d214
...
...
@@ -146,11 +146,13 @@ typedef shared_ptr<OcTree> OcTreePtr_t;
typedef
shared_ptr
<
const
OcTree
>
OcTreeConstPtr_t
;
}
// namespace coal
#ifdef COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
namespace
hpp
{
namespace
fcl
{
using
namespace
coal
;
using
Transform3f
=
Transform3s
;
// For backward compatibility
}
// namespace fcl
}
// namespace hpp
#endif
#endif // COAL_FWD_HH
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
4
−
0
View file @
fb34d214
...
...
@@ -234,6 +234,10 @@ if (COAL_TURN_ASSERT_INTO_EXCEPTION)
target_compile_definitions
(
${
LIBRARY_NAME
}
PUBLIC -DCOAL_TURN_ASSERT_INTO_EXCEPTION
)
endif
()
if
(
COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
)
target_compile_definitions
(
${
LIBRARY_NAME
}
PUBLIC -DCOAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
)
endif
()
if
(
COAL_HAS_QHULL
)
target_compile_definitions
(
${
LIBRARY_NAME
}
PRIVATE -DCOAL_HAS_QHULL
)
if
(
COAL_USE_SYSTEM_QHULL
)
...
...
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