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
c7e55d79
Commit
c7e55d79
authored
8 years ago
by
Javier V. Gomez
Committed by
Florent Lamiraux florent@laas.fr
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Octomap <1.8.0 compatible but not working
parent
b7ce8b11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+5
-0
5 additions, 0 deletions
CMakeLists.txt
include/hpp/fcl/math/vec_3f.h
+16
-0
16 additions, 0 deletions
include/hpp/fcl/math/vec_3f.h
include/hpp/fcl/octree.h
+16
-0
16 additions, 0 deletions
include/hpp/fcl/octree.h
with
37 additions
and
0 deletions
CMakeLists.txt
+
5
−
0
View file @
c7e55d79
...
...
@@ -80,6 +80,11 @@ if (OCTOMAP_INCLUDE_DIRS AND OCTOMAP_LIBRARY_DIRS)
include_directories
(
${
OCTOMAP_INCLUDE_DIRS
}
)
link_directories
(
${
OCTOMAP_LIBRARY_DIRS
}
)
set
(
FCL_HAVE_OCTOMAP 1
)
string
(
REPLACE
"."
";"
VERSION_LIST
${
OCTOMAP_VERSION
}
)
list
(
GET VERSION_LIST 0 OCTOMAP_MAJOR_VERSION
)
list
(
GET VERSION_LIST 1 OCTOMAP_MINOR_VERSION
)
list
(
GET VERSION_LIST 2 OCTOMAP_PATCH_VERSION
)
message
(
STATUS
"FCL uses Octomap"
)
else
()
message
(
STATUS
"FCL does not use Octomap"
)
...
...
This diff is collapsed.
Click to expand it.
include/hpp/fcl/math/vec_3f.h
+
16
−
0
View file @
c7e55d79
...
...
@@ -56,4 +56,20 @@ namespace fcl
}
#if FCL_HAVE_OCTOMAP
#define OCTOMAP_MAJOR_VERSION @OCTOMAP_MAJOR_VERSION@
#define OCTOMAP_MINOR_VERSION @OCTOMAP_MINOR_VERSION@
#define OCTOMAP_PATCH_VERSION @OCTOMAP_PATCH_VERSION@
#define OCTOMAP_VERSION_AT_LEAST(x,y,z) \
(OCTOMAP_MAJOR_VERSION > x || (OCTOMAP_MAJOR_VERSION >= x && \
(OCTOMAP_MINOR_VERSION > y || (OCTOMAP_MINOR_VERSION >= y && \
OCTOMAP_PATCH_VERSION >= z))))
#define OCTOMAP_VERSION_AT_MOST(x,y,z) \
(OCTOMAP_MAJOR_VERSION < x || (OCTOMAP_MAJOR_VERSION <= x && \
(OCTOMAP_MINOR_VERSION < y || (OCTOMAP_MINOR_VERSION <= y && \
OCTOMAP_PATCH_VERSION <= z))))
#endif // FCL_HAVE_OCTOMAP
#endif
This diff is collapsed.
Click to expand it.
include/hpp/fcl/octree.h
+
16
−
0
View file @
c7e55d79
...
...
@@ -190,25 +190,41 @@ public:
/// @return ptr to child number childIdx of node
OcTreeNode
*
getNodeChild
(
OcTreeNode
*
node
,
unsigned
int
childIdx
)
{
#if OCTOMAP_VERSION_AT_LEAST(1,8,0)
return
tree
->
getNodeChild
(
node
,
childIdx
);
#else
return
node
->
getChild
(
childIdx
);
#endif
}
/// @return const ptr to child number childIdx of node
const
OcTreeNode
*
getNodeChild
(
const
OcTreeNode
*
node
,
unsigned
int
childIdx
)
const
{
#if OCTOMAP_VERSION_AT_LEAST(1,8,0)
return
tree
->
getNodeChild
(
node
,
childIdx
);
#else
return
node
->
getChild
(
childIdx
);
#endif
}
/// @brief return true if the child at childIdx exists
bool
nodeChildExists
(
const
OcTreeNode
*
node
,
unsigned
int
childIdx
)
const
{
#if OCTOMAP_VERSION_AT_LEAST(1,8,0)
return
tree
->
nodeChildExists
(
node
,
childIdx
);
#else
return
node
->
childExists
(
childIdx
);
#endif
}
/// @brief return true if node has at least one child
bool
nodeHasChildren
(
const
OcTreeNode
*
node
)
const
{
#if OCTOMAP_VERSION_AT_LEAST(1,8,0)
return
tree
->
nodeHasChildren
(
node
);
#else
return
node
->
hasChildren
();
#endif
}
/// @brief return object type, it is an octree
...
...
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