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
44e369a8
Commit
44e369a8
authored
8 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Spatial] Add temporary operator to act ont Eigen object
parent
21ce818d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/spatial/se3.hpp
+16
-0
16 additions, 0 deletions
src/spatial/se3.hpp
with
16 additions
and
0 deletions
src/spatial/se3.hpp
+
16
−
0
View file @
44e369a8
...
...
@@ -277,6 +277,22 @@ namespace se3
return
d
.
se3ActionInverse
(
*
this
);
}
template
<
typename
EigenDerived
>
typename
EigenDerived
::
PlainObject
actOnEigenObject
(
const
Eigen
::
MatrixBase
<
EigenDerived
>
&
p
)
{
return
EigenDerived
::
PlainObject
(
rot
*
p
+
trans
);
}
template
<
typename
MapDerived
>
Vector3
actOnEigenObject
(
const
Eigen
::
MapBase
<
MapDerived
>
&
p
)
{
return
Vector3
(
rot
*
p
+
trans
);
}
template
<
typename
EigenDerived
>
typename
EigenDerived
::
PlainObject
actInvOnEigenObject
(
const
Eigen
::
MatrixBase
<
EigenDerived
>
&
p
)
{
return
EigenDerived
::
PlainObject
(
rot
.
transpose
()
*
(
p
-
trans
));
}
template
<
typename
MapDerived
>
Vector3
actInvOnEigenObject
(
const
Eigen
::
MapBase
<
MapDerived
>
&
p
)
{
return
Vector3
(
rot
.
transpose
()
*
(
p
-
trans
));
}
Vector3
act_impl
(
const
Vector3
&
p
)
const
{
return
Vector3
(
rot
*
p
+
trans
);
}
Vector3
actInv_impl
(
const
Vector3
&
p
)
const
{
return
Vector3
(
rot
.
transpose
()
*
(
p
-
trans
));
}
...
...
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