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
Gabriele Buondonno
pinocchio
Commits
54033bd0
Commit
54033bd0
authored
Jan 10, 2018
by
jcarpent
Browse files
[Spatial] Fix compatibility with 17.04
parent
b8991a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/spatial/inertia.hpp
View file @
54033bd0
...
...
@@ -238,7 +238,7 @@ namespace se3
M
.
template
block
<
3
,
3
>(
LINEAR
,
LINEAR
).
diagonal
().
fill
(
m
);
M
.
template
block
<
3
,
3
>(
ANGULAR
,
LINEAR
)
=
alphaSkew
(
m
,
c
);
M
.
template
block
<
3
,
3
>(
LINEAR
,
ANGULAR
)
=
-
M
.
template
block
<
3
,
3
>
(
ANGULAR
,
LINEAR
);
M
.
template
block
<
3
,
3
>(
ANGULAR
,
ANGULAR
)
=
(
typename
Symmetric3
::
Matrix3
)
(
I
-
AlphaSkewSquare
(
m
,
c
));
M
.
template
block
<
3
,
3
>(
ANGULAR
,
ANGULAR
)
=
(
I
-
AlphaSkewSquare
(
m
,
c
))
.
matrix
()
;
return
M
;
}
...
...
@@ -320,7 +320,7 @@ namespace se3
res
.
template
block
<
3
,
3
>(
ANGULAR
,
ANGULAR
)
=
res
.
template
block
<
3
,
3
>(
LINEAR
,
LINEAR
)
-
res
.
template
block
<
3
,
3
>(
LINEAR
,
LINEAR
).
transpose
();
res
.
template
block
<
3
,
3
>(
ANGULAR
,
ANGULAR
)
=
-
skewSquare
(
mv
.
linear
(),
c
)
-
skewSquare
(
c
,
mv
.
linear
());
res
.
template
block
<
3
,
3
>(
LINEAR
,
LINEAR
)
=
(
typename
Symmetric3
::
Matrix3
)
(
I
-
AlphaSkewSquare
(
m
,
c
));
res
.
template
block
<
3
,
3
>(
LINEAR
,
LINEAR
)
=
(
I
-
AlphaSkewSquare
(
m
,
c
))
.
matrix
()
;
res
.
template
block
<
3
,
3
>(
ANGULAR
,
ANGULAR
)
-=
res
.
template
block
<
3
,
3
>(
LINEAR
,
LINEAR
)
*
skew
(
v
.
angular
());
res
.
template
block
<
3
,
3
>(
ANGULAR
,
ANGULAR
)
+=
cross
(
v
.
angular
(),
res
.
template
block
<
3
,
3
>(
LINEAR
,
LINEAR
));
...
...
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