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
Stack Of Tasks
pinocchio
Commits
b5695f3e
Verified
Commit
b5695f3e
authored
Dec 14, 2019
by
Justin Carpentier
Browse files
core: rename BiasZeroTpl into MotionZeroTpl
parent
3b361f53
Changes
12
Show whitespace changes
Inline
Side-by-side
src/multibody/joint/joint-free-flyer.hpp
View file @
b5695f3e
...
...
@@ -147,7 +147,7 @@ namespace pinocchio
typedef
ConstraintIdentityTpl
<
Scalar
,
Options
>
Constraint_t
;
typedef
SE3Tpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
MotionTpl
<
Scalar
,
Options
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-planar.hpp
View file @
b5695f3e
...
...
@@ -390,7 +390,7 @@ namespace pinocchio
typedef
ConstraintPlanarTpl
<
Scalar
,
Options
>
Constraint_t
;
typedef
SE3Tpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
MotionPlanarTpl
<
Scalar
,
Options
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-prismatic-unaligned.hpp
View file @
b5695f3e
...
...
@@ -392,7 +392,7 @@ namespace pinocchio
typedef
ConstraintPrismaticUnalignedTpl
<
Scalar
,
Options
>
Constraint_t
;
typedef
TransformTranslationTpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
MotionPrismaticUnalignedTpl
<
Scalar
,
Options
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-prismatic.hpp
View file @
b5695f3e
...
...
@@ -494,7 +494,7 @@ namespace pinocchio
typedef
ConstraintPrismaticTpl
<
Scalar
,
Options
,
axis
>
Constraint_t
;
typedef
TransformPrismaticTpl
<
Scalar
,
Options
,
axis
>
Transformation_t
;
typedef
MotionPrismaticTpl
<
Scalar
,
Options
,
axis
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-revolute-unaligned.hpp
View file @
b5695f3e
...
...
@@ -414,7 +414,7 @@ namespace pinocchio
typedef
ConstraintRevoluteUnalignedTpl
<
Scalar
,
Options
>
Constraint_t
;
typedef
SE3Tpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
MotionRevoluteUnalignedTpl
<
Scalar
,
Options
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-revolute-unbounded-unaligned.hpp
View file @
b5695f3e
...
...
@@ -35,7 +35,7 @@ namespace pinocchio
typedef
ConstraintRevoluteUnalignedTpl
<
Scalar
,
Options
>
Constraint_t
;
typedef
SE3Tpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
MotionRevoluteUnalignedTpl
<
Scalar
,
Options
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
F_t
;
// [ABA]
...
...
src/multibody/joint/joint-revolute-unbounded.hpp
View file @
b5695f3e
...
...
@@ -30,7 +30,7 @@ namespace pinocchio
typedef
ConstraintRevoluteTpl
<
Scalar
,
Options
,
axis
>
Constraint_t
;
typedef
TransformRevoluteTpl
<
Scalar
,
Options
,
axis
>
Transformation_t
;
typedef
MotionRevoluteTpl
<
Scalar
,
Options
,
axis
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-revolute.hpp
View file @
b5695f3e
...
...
@@ -587,7 +587,7 @@ namespace pinocchio
typedef
ConstraintRevoluteTpl
<
Scalar
,
Options
,
axis
>
Constraint_t
;
typedef
TransformRevoluteTpl
<
Scalar
,
Options
,
axis
>
Transformation_t
;
typedef
MotionRevoluteTpl
<
Scalar
,
Options
,
axis
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-spherical.hpp
View file @
b5695f3e
...
...
@@ -337,7 +337,7 @@ namespace pinocchio
typedef
ConstraintSphericalTpl
<
Scalar
,
Options
>
Constraint_t
;
typedef
SE3Tpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
MotionSphericalTpl
<
Scalar
,
Options
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/multibody/joint/joint-translation.hpp
View file @
b5695f3e
...
...
@@ -405,7 +405,7 @@ namespace pinocchio
typedef
ConstraintTranslationTpl
<
Scalar
,
Options
>
Constraint_t
;
typedef
TransformTranslationTpl
<
Scalar
,
Options
>
Transformation_t
;
typedef
MotionTranslationTpl
<
Scalar
,
Options
>
Motion_t
;
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
Bias_t
;
// [ABA]
typedef
Eigen
::
Matrix
<
Scalar
,
6
,
NV
,
Options
>
U_t
;
...
...
src/spatial/fwd.hpp
View file @
b5695f3e
...
...
@@ -18,7 +18,8 @@ namespace pinocchio
template
<
typename
Derived
>
class
MotionDense
;
template
<
typename
Vector6ArgType
>
class
MotionRef
;
template
<
typename
Scalar
,
int
Options
=
0
>
class
MotionTpl
;
template
<
typename
Scalar
,
int
Options
=
0
>
struct
BiasZeroTpl
;
template
<
typename
Scalar
,
int
Options
=
0
>
struct
MotionZeroTpl
;
template
<
typename
Scalar
,
int
Options
=
0
>
struct
PINOCCHIO_DEPRECATED
BiasZeroTpl
;
template
<
typename
Derived
>
class
ForceBase
;
template
<
typename
Derived
>
class
ForceDense
;
...
...
@@ -55,7 +56,12 @@ namespace pinocchio
typedef
ForceTpl
<
double
,
0
>
Force
;
typedef
InertiaTpl
<
double
,
0
>
Inertia
;
typedef
Symmetric3Tpl
<
double
,
0
>
Symmetric3
;
typedef
MotionZeroTpl
<
double
,
0
>
MotionZero
;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
typedef
BiasZeroTpl
<
double
,
0
>
BiasZero
;
#pragma GCC diagnostic pop
/**
* @}
...
...
src/spatial/motion-zero.hpp
View file @
b5695f3e
...
...
@@ -10,19 +10,19 @@ namespace pinocchio
{
template
<
typename
Scalar
,
int
Options
>
struct
SE3GroupAction
<
Bias
ZeroTpl
<
Scalar
,
Options
>
>
struct
SE3GroupAction
<
Motion
ZeroTpl
<
Scalar
,
Options
>
>
{
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
ReturnType
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
ReturnType
;
};
template
<
typename
Scalar
,
int
Options
,
typename
MotionDerived
>
struct
MotionAlgebraAction
<
Bias
ZeroTpl
<
Scalar
,
Options
>
,
MotionDerived
>
struct
MotionAlgebraAction
<
Motion
ZeroTpl
<
Scalar
,
Options
>
,
MotionDerived
>
{
typedef
Bias
ZeroTpl
<
Scalar
,
Options
>
ReturnType
;
typedef
Motion
ZeroTpl
<
Scalar
,
Options
>
ReturnType
;
};
template
<
typename
_Scalar
,
int
_Options
>
struct
traits
<
Bias
ZeroTpl
<
_Scalar
,
_Options
>
>
struct
traits
<
Motion
ZeroTpl
<
_Scalar
,
_Options
>
>
{
enum
{
Options
=
_Options
,
...
...
@@ -44,14 +44,14 @@ namespace pinocchio
typedef
Motion
MotionPlain
;
typedef
MotionPlain
PlainReturnType
;
};
// traits
Bias
ZeroTpl
};
// traits
Motion
ZeroTpl
template
<
typename
Scalar
,
int
Options
>
struct
Bias
ZeroTpl
:
public
MotionBase
<
Bias
ZeroTpl
<
Scalar
,
Options
>
>
struct
Motion
ZeroTpl
:
public
MotionBase
<
Motion
ZeroTpl
<
Scalar
,
Options
>
>
{
typedef
typename
traits
<
Bias
ZeroTpl
>::
MotionPlain
MotionPlain
;
typedef
typename
traits
<
Bias
ZeroTpl
>::
PlainReturnType
PlainReturnType
;
typedef
typename
traits
<
Motion
ZeroTpl
>::
MotionPlain
MotionPlain
;
typedef
typename
traits
<
Motion
ZeroTpl
>::
PlainReturnType
PlainReturnType
;
static
PlainReturnType
plain
()
{
return
MotionPlain
::
Zero
();
}
...
...
@@ -69,9 +69,9 @@ namespace pinocchio
}
template
<
typename
M1
>
Bias
ZeroTpl
motionAction
(
const
MotionBase
<
M1
>
&
)
const
Motion
ZeroTpl
motionAction
(
const
MotionBase
<
M1
>
&
)
const
{
return
Bias
ZeroTpl
();
return
Motion
ZeroTpl
();
}
template
<
typename
S2
,
int
O2
,
typename
D2
>
...
...
@@ -81,9 +81,9 @@ namespace pinocchio
}
template
<
typename
S2
,
int
O2
>
Bias
ZeroTpl
se3Action_impl
(
const
SE3Tpl
<
S2
,
O2
>
&
)
const
Motion
ZeroTpl
se3Action_impl
(
const
SE3Tpl
<
S2
,
O2
>
&
)
const
{
return
Bias
ZeroTpl
();
return
Motion
ZeroTpl
();
}
template
<
typename
S2
,
int
O2
,
typename
D2
>
...
...
@@ -93,23 +93,28 @@ namespace pinocchio
}
template
<
typename
S2
,
int
O2
>
Bias
ZeroTpl
se3ActionInverse_impl
(
const
SE3Tpl
<
S2
,
O2
>
&
)
const
Motion
ZeroTpl
se3ActionInverse_impl
(
const
SE3Tpl
<
S2
,
O2
>
&
)
const
{
return
Bias
ZeroTpl
();
return
Motion
ZeroTpl
();
}
};
// struct
Bias
ZeroTpl
};
// struct
Motion
ZeroTpl
template
<
typename
M1
,
typename
Scalar
,
int
Options
>
inline
const
M1
&
operator
+
(
const
MotionBase
<
M1
>
&
v
,
const
Bias
ZeroTpl
<
Scalar
,
Options
>
&
)
const
Motion
ZeroTpl
<
Scalar
,
Options
>
&
)
{
return
v
.
derived
();
}
template
<
typename
Scalar
,
int
Options
,
typename
M1
>
inline
const
M1
&
operator
+
(
const
Bias
ZeroTpl
<
Scalar
,
Options
>
&
,
inline
const
M1
&
operator
+
(
const
Motion
ZeroTpl
<
Scalar
,
Options
>
&
,
const
MotionBase
<
M1
>
&
v
)
{
return
v
.
derived
();
}
/// \brief BiasZeroTpl has been replaced by MotionZeroTpl. Please use this naming instead.
template
<
typename
Scalar
,
int
Options
>
struct
PINOCCHIO_DEPRECATED
BiasZeroTpl
:
MotionZeroTpl
<
Scalar
,
Options
>
{};
}
// namespace pinocchio
#endif // ifndef __pinocchio_motion_zero_hpp__
Write
Preview
Supports
Markdown
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