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
016a2094
Verified
Commit
016a2094
authored
6 years ago
by
Justin Carpentier
Committed by
Justin Carpentier
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[LieGroup] Fix type for complete templatization
parent
d801511e
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/multibody/liegroup/special-euclidean.hpp
+15
-13
15 additions, 13 deletions
src/multibody/liegroup/special-euclidean.hpp
with
15 additions
and
13 deletions
src/multibody/liegroup/special-euclidean.hpp
+
15
−
13
View file @
016a2094
...
...
@@ -60,7 +60,7 @@ namespace se3
typedef
VectorSpaceOperationTpl
<
2
,
Scalar
,
Options
>
R2_t
;
typedef
SpecialOrthogonalOperationTpl
<
2
,
Scalar
,
Options
>
SO2_t
;
typedef
CartesianProductOperation
<
R2_t
,
SO2_t
>
R2crossSO2_t
;
typedef
CartesianProductOperation
<
R2_t
,
SO2_t
>
R2crossSO2_t
;
typedef
Eigen
::
Matrix
<
Scalar
,
2
,
2
,
Options
>
Matrix2
;
typedef
Eigen
::
Matrix
<
Scalar
,
2
,
1
,
Options
>
Vector2
;
...
...
@@ -281,7 +281,7 @@ namespace se3
Vector2
t
;
exp
(
v
,
R
,
t
);
toInverseActionMatrix
(
R
,
t
,
Jout
);
toInverseActionMatrix
(
R
,
t
,
Jout
);
}
template
<
class
Config_t
,
class
Tangent_t
,
class
JacobianOut_t
>
...
...
@@ -338,14 +338,14 @@ namespace se3
return
R2crossSO2_t
().
isSameConfiguration
(
q0
,
q1
,
prec
);
}
private
:
template
<
typename
V
>
static
void
forwardKinematics
(
Matrix2
&
R
,
Vector2
&
t
,
const
Eigen
::
MatrixBase
<
V
>
&
q
)
private
:
template
<
typename
V
ector4Like
>
static
void
forwardKinematics
(
Matrix2
&
R
,
Vector2
&
t
,
const
Eigen
::
MatrixBase
<
V
ector4Like
>
&
q
)
{
EIGEN_STATIC_ASSERT_SAME_VECTOR_SIZE
(
ConfigVector_t
,
V
);
EIGEN_STATIC_ASSERT_SAME_VECTOR_SIZE
(
ConfigVector_t
,
V
ector4Like
);
const
double
&
c_theta
=
q
(
2
),
s_theta
=
q
(
3
);
const
typename
Vector4Like
::
Scalar
&
c_theta
=
q
(
2
),
&
s_theta
=
q
(
3
);
R
<<
c_theta
,
-
s_theta
,
s_theta
,
c_theta
;
t
=
q
.
template
head
<
2
>();
...
...
@@ -377,6 +377,7 @@ namespace se3
typedef
Eigen
::
Map
<
Quaternion_t
>
QuaternionMap_t
;
typedef
Eigen
::
Map
<
const
Quaternion_t
>
ConstQuaternionMap_t
;
typedef
SE3Tpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
SE3Tpl
<
Scalar
,
Options
>
SE3
;
/// Get dimension of Lie Group vector representation
///
...
...
@@ -427,15 +428,15 @@ namespace se3
{
ConstQuaternionMap_t
p0
(
q0
.
derived
().
template
tail
<
4
>().
data
());
ConstQuaternionMap_t
p1
(
q1
.
derived
().
template
tail
<
4
>().
data
());
SE3
::
Matrix3
R0
(
p0
.
matrix
()),
R1
(
p1
.
matrix
());
typename
SE3
::
Matrix3
R0
(
p0
.
matrix
()),
R1
(
p1
.
matrix
());
SE3
M
(
SE3
(
R0
,
q0
.
derived
().
template
head
<
3
>()).
inverse
()
*
SE3
(
R1
,
q1
.
derived
().
template
head
<
3
>()));
Jlog6
(
M
,
J1
);
SE3
::
Vector3
p1_p0
(
q1
.
derived
().
template
head
<
3
>()
-
q0
.
derived
().
template
head
<
3
>());
typename
SE3
::
Vector3
p1_p0
(
q1
.
derived
().
template
head
<
3
>()
-
q0
.
derived
().
template
head
<
3
>());
JacobianLOut_t
&
J0v
=
const_cast
<
JacobianLOut_t
&
>
(
J0
.
derived
());
J0v
.
template
topLeftCorner
<
3
,
3
>
().
noalias
()
=
-
M
.
rotation
().
transpose
();
...
...
@@ -455,7 +456,8 @@ namespace se3
QuaternionMap_t
res_quat
(
out
.
template
tail
<
4
>().
data
());
SE3
M0
(
quat
.
matrix
(),
q
.
derived
().
template
head
<
3
>());
SE3
M1
(
M0
*
exp6
(
Motion
(
v
)));
MotionRef
<
Velocity_t
>
mref_v
(
v
);
SE3
M1
(
M0
*
exp6
(
mref_v
));
out
.
template
head
<
3
>()
=
M1
.
translation
();
res_quat
=
M1
.
rotation
();
...
...
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