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
b3490b3b
Unverified
Commit
b3490b3b
authored
Sep 14, 2021
by
Justin Carpentier
Committed by
GitHub
Sep 14, 2021
Browse files
Merge pull request #242 from jcarpent/devel
Fix conversion
parents
1d7556a1
f0957b21
Pipeline
#16036
passed with stage
in 21 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/collision-geometries.cc
View file @
b3490b3b
...
...
@@ -33,6 +33,7 @@
// POSSIBILITY OF SUCH DAMAGE.
#include <eigenpy/eigenpy.hpp>
#include <eigenpy/eigen-to-python.hpp>
#include "fcl.hh"
...
...
@@ -77,8 +78,9 @@ typedef std::vector<Triangle> Triangles;
struct
BVHModelBaseWrapper
{
typedef
Eigen
::
Matrix
<
double
,
Eigen
::
Dynamic
,
3
>
MatrixX3
;
typedef
Eigen
::
Map
<
MatrixX3
>
MapMatrixX3
;
typedef
Eigen
::
Matrix
<
double
,
Eigen
::
Dynamic
,
3
,
Eigen
::
RowMajor
>
RowMatrixX3
;
typedef
Eigen
::
Map
<
RowMatrixX3
>
MapRowMatrixX3
;
typedef
Eigen
::
Ref
<
RowMatrixX3
>
RefRowMatrixX3
;
static
Vec3f
&
vertice
(
BVHModelBase
&
bvh
,
int
i
)
{
...
...
@@ -86,9 +88,9 @@ struct BVHModelBaseWrapper
return
bvh
.
vertices
[
i
];
}
static
Map
MatrixX3
vertices
(
BVHModelBase
&
bvh
)
static
RefRow
MatrixX3
vertices
(
BVHModelBase
&
bvh
)
{
return
MapMatrixX3
(
bvh
.
vertices
[
0
].
data
(),
bvh
.
num_vertices
,
3
);
return
Map
Row
MatrixX3
(
bvh
.
vertices
[
0
].
data
(),
bvh
.
num_vertices
,
3
);
}
static
Triangle
tri_indices
(
const
BVHModelBase
&
bvh
,
int
i
)
...
...
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