Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-fcl
Commits
c2bea4e4
Verified
Commit
c2bea4e4
authored
May 25, 2021
by
Justin Carpentier
Browse files
python: expose computeMemoryFootprint
parent
4684a156
Pipeline
#14684
failed with stage
in 44 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/collision-geometries.cc
View file @
c2bea4e4
//
// Software License Agreement (BSD License)
//
// Copyright (c) 2019-202
0
CNRS-LAAS INRIA
// Copyright (c) 2019-202
1
CNRS-LAAS INRIA
// Author: Joseph Mirabel
// All rights reserved.
//
...
...
@@ -156,6 +156,29 @@ struct ConvexWrapper
}
};
template
<
typename
T
>
void
defComputeMemoryFootprint
()
{
doxygen
::
def
(
"computeMemoryFootprint"
,
&
computeMemoryFootprint
<
T
>
);
}
void
exposeComputeMemoryFootprint
()
{
defComputeMemoryFootprint
<
Sphere
>
();
defComputeMemoryFootprint
<
Cone
>
();
defComputeMemoryFootprint
<
Capsule
>
();
defComputeMemoryFootprint
<
Cylinder
>
();
defComputeMemoryFootprint
<
Box
>
();
defComputeMemoryFootprint
<
Plane
>
();
defComputeMemoryFootprint
<
Halfspace
>
();
defComputeMemoryFootprint
<
TriangleP
>
();
defComputeMemoryFootprint
<
BVHModel
<
OBB
>
>
();
defComputeMemoryFootprint
<
BVHModel
<
RSS
>
>
();
defComputeMemoryFootprint
<
BVHModel
<
OBBRSS
>
>
();
}
void
exposeShapes
()
{
class_
<
ShapeBase
,
bases
<
CollisionGeometry
>
,
shared_ptr
<
ShapeBase
>
,
noncopyable
>
...
...
@@ -470,6 +493,7 @@ void exposeCollisionGeometries ()
;
exposeBVHModel
<
OBB
>
(
"OBB"
);
exposeBVHModel
<
OBBRSS
>
(
"OBBRSS"
);
exposeComputeMemoryFootprint
();
}
void
exposeCollisionObject
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment