Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-fcl
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
Guilhem Saurel
hpp-fcl
Commits
36604bee
Unverified
Commit
36604bee
authored
5 years ago
by
Joseph Mirabel
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #94 from gabrielebndn/topic/version
Add version support
parents
dffbd8fb
1ba93d41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
cmake
+1
-1
1 addition, 1 deletion
cmake
python/CMakeLists.txt
+1
-0
1 addition, 0 deletions
python/CMakeLists.txt
python/fcl.cc
+1
-0
1 addition, 0 deletions
python/fcl.cc
python/fcl.hh
+7
-5
7 additions, 5 deletions
python/fcl.hh
python/version.cc
+44
-0
44 additions, 0 deletions
python/version.cc
with
54 additions
and
6 deletions
cmake
@
46dc4a57
Compare
efa25a99
...
46dc4a57
Subproject commit
efa25a9976b8a6fc9f51d26924d4238d0d4820b1
Subproject commit
46dc4a57521bde14ea75c959b6b4f887af50c65d
This diff is collapsed.
Click to expand it.
python/CMakeLists.txt
+
1
−
0
View file @
36604bee
...
...
@@ -39,6 +39,7 @@ SET(LIBRARY_NAME hppfcl)
INCLUDE_DIRECTORIES
(
"
${
Boost_INCLUDE_DIRS
}
"
${
PYTHON_INCLUDE_DIRS
}
)
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
version.cc
math.cc
collision-geometries.cc
collision.cc
...
...
This diff is collapsed.
Click to expand it.
python/fcl.cc
+
1
−
0
View file @
36604bee
...
...
@@ -62,6 +62,7 @@ void exposeMeshLoader ()
BOOST_PYTHON_MODULE
(
hppfcl
)
{
exposeVersion
();
exposeMaths
();
exposeCollisionGeometries
();
exposeMeshLoader
();
...
...
This diff is collapsed.
Click to expand it.
python/fcl.hh
+
7
−
5
View file @
36604bee
void
expose
Maths
();
void
expose
Version
();
void
expose
CollisionGeometries
();
void
expose
Maths
();
void
expose
MeshLoader
();
void
expose
CollisionGeometries
();
void
expose
CollisionAPI
();
void
expose
MeshLoader
();
void
exposeDistanceAPI
();
void
exposeCollisionAPI
();
void
exposeDistanceAPI
();
This diff is collapsed.
Click to expand it.
python/version.cc
0 → 100644
+
44
−
0
View file @
36604bee
//
// Copyright (c) 2019 CNRS
//
#include
"hpp/fcl/config.hh"
#include
<boost/python.hpp>
#include
<boost/preprocessor/stringize.hpp>
namespace
bp
=
boost
::
python
;
inline
bool
checkVersionAtLeast
(
unsigned
int
major
,
unsigned
int
minor
,
unsigned
int
patch
)
{
return
HPP_FCL_VERSION_AT_LEAST
(
major
,
minor
,
patch
);
}
inline
bool
checkVersionAtMost
(
unsigned
int
major
,
unsigned
int
minor
,
unsigned
int
patch
)
{
return
HPP_FCL_VERSION_AT_MOST
(
major
,
minor
,
patch
);
}
void
exposeVersion
()
{
// Define release numbers of the current hpp-fcl version.
bp
::
scope
().
attr
(
"__version__"
)
=
BOOST_PP_STRINGIZE
(
HPP_FCL_MAJOR_VERSION
)
"."
BOOST_PP_STRINGIZE
(
HPP_FCL_MINOR_VERSION
)
"."
BOOST_PP_STRINGIZE
(
HPP_FCL_PATCH_VERSION
);
bp
::
scope
().
attr
(
"HPP_FCL_MAJOR_VERSION"
)
=
HPP_FCL_MAJOR_VERSION
;
bp
::
scope
().
attr
(
"HPP_FCL_MINOR_VERSION"
)
=
HPP_FCL_MINOR_VERSION
;
bp
::
scope
().
attr
(
"HPP_FCL_PATCH_VERSION"
)
=
HPP_FCL_PATCH_VERSION
;
bp
::
def
(
"checkVersionAtLeast"
,
&
checkVersionAtLeast
,
bp
::
args
(
"major"
,
"minor"
,
"patch"
),
"Checks if the current version of hpp-fcl is at least"
" the version provided by the input arguments."
);
bp
::
def
(
"checkVersionAtMost"
,
&
checkVersionAtMost
,
bp
::
args
(
"major"
,
"minor"
,
"patch"
),
"Checks if the current version of hpp-fcl is at most"
" the version provided by the input arguments."
);
}
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