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-model
Commits
d2ef256e
Commit
d2ef256e
authored
Aug 26, 2015
by
Florent Lamiraux
Browse files
Add a method to convert fcl::Vec3f into fixed size eigen vector.
parent
f7967e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/model/fcl-to-eigen.hh
View file @
d2ef256e
...
...
@@ -32,7 +32,7 @@ inline hpp::model::matrix_t operator* (const hpp::model::matrix_t& m1,
for
(
std
::
size_t
i
=
0
;
i
<
rows
;
++
i
)
{
for
(
std
::
size_t
k
=
0
;
k
<
3
;
++
k
)
{
result
(
i
,
k
)
=
0
;
for
(
std
::
size_t
j
=
0
;
j
<
3
;
++
j
)
{
for
(
std
::
size_t
j
=
0
;
j
<
3
;
++
j
)
{
result
(
i
,
k
)
+=
m1
(
i
,
j
)
*
m2
(
j
,
k
);
}
}
...
...
@@ -42,12 +42,18 @@ inline hpp::model::matrix_t operator* (const hpp::model::matrix_t& m1,
namespace
hpp
{
namespace
model
{
inline
void
toEigen
(
const
hpp
::
model
::
vector3_t
&
v
,
Eigen
::
Matrix
<
value_type
,
3
,
1
>&
res
)
{
res
[
0
]
=
v
[
0
];
res
[
1
]
=
v
[
1
];
res
[
2
]
=
v
[
2
];
}
inline
void
toEigen
(
const
hpp
::
model
::
vector3_t
&
v
,
hpp
::
model
::
vectorOut_t
res
)
{
res
[
0
]
=
v
[
0
];
res
[
1
]
=
v
[
1
];
res
[
2
]
=
v
[
2
];
}
inline
void
toEigen
(
const
hpp
::
model
::
matrix3_t
&
m
,
hpp
::
model
::
matrixOut_t
res
)
{
...
...
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