Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
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
Stack Of Tasks
pinocchio
Commits
bf00b109
Commit
bf00b109
authored
7 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Spatial] Make skew functions compatible with block structures
parent
28cfaad1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/spatial/skew.hpp
+4
-4
4 additions, 4 deletions
src/spatial/skew.hpp
with
4 additions
and
4 deletions
src/spatial/skew.hpp
+
4
−
4
View file @
bf00b109
...
...
@@ -87,7 +87,7 @@ namespace se3
/// \return The square cross product C matrix.
///
template
<
typename
D1
,
typename
D2
>
inline
Eigen
::
Matrix
<
typename
D1
::
Scalar
,
3
,
3
,
D1
::
Options
>
inline
Eigen
::
Matrix
<
typename
D1
::
Scalar
,
3
,
3
,
Eigen
::
internal
::
plain_matrix_type
<
D1
>::
type
::
Options
>
skewSquare
(
const
Eigen
::
MatrixBase
<
D1
>
&
u
,
const
Eigen
::
MatrixBase
<
D2
>
&
v
)
{
EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE
(
D1
,
3
);
...
...
@@ -96,20 +96,20 @@ namespace se3
typedef
Eigen
::
DiagonalMatrix
<
typename
D1
::
Scalar
,
3
>
DiagonalMatrix
;
const
typename
D1
::
Scalar
udotv
(
u
.
dot
(
v
));
Eigen
::
Matrix
<
typename
D1
::
Scalar
,
3
,
3
,
D1
::
Options
>
res
(
v
*
u
.
transpose
());
Eigen
::
Matrix
<
typename
D1
::
Scalar
,
3
,
3
,
Eigen
::
internal
::
plain_matrix_type
<
D1
>::
type
::
Options
>
res
(
v
*
u
.
transpose
());
res
-=
DiagonalMatrix
(
udotv
,
udotv
,
udotv
);
return
res
;
}
template
<
typename
V
,
typename
M
>
inline
Eigen
::
Matrix
<
typename
M
::
Scalar
,
3
,
M
::
ColsAtCompileTime
,
M
::
Options
>
inline
Eigen
::
Matrix
<
typename
M
::
Scalar
,
3
,
M
::
ColsAtCompileTime
,
Eigen
::
internal
::
plain_matrix_type
<
M
>::
type
::
Options
>
cross
(
const
Eigen
::
MatrixBase
<
V
>
&
v
,
const
Eigen
::
MatrixBase
<
M
>
&
m
)
{
EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE
(
V
,
3
);
Eigen
::
Matrix
<
typename
M
::
Scalar
,
3
,
M
::
ColsAtCompileTime
,
M
::
Options
>
res
(
3
,
m
.
cols
());
Eigen
::
Matrix
<
typename
M
::
Scalar
,
3
,
M
::
ColsAtCompileTime
,
Eigen
::
internal
::
plain_matrix_type
<
M
>::
type
::
Options
>
res
(
3
,
m
.
cols
());
res
.
row
(
0
)
=
v
[
1
]
*
m
.
row
(
2
)
-
v
[
2
]
*
m
.
row
(
1
);
res
.
row
(
1
)
=
v
[
2
]
*
m
.
row
(
0
)
-
v
[
0
]
*
m
.
row
(
2
);
res
.
row
(
2
)
=
v
[
0
]
*
m
.
row
(
1
)
-
v
[
1
]
*
m
.
row
(
0
);
...
...
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