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
Humanoid Path Planner
hpp-model
Commits
7207542c
Commit
7207542c
authored
Sep 23, 2014
by
Florent Lamiraux
Browse files
Replace double by value_type.
parent
769cabc1
Changes
9
Hide whitespace changes
Inline
Side-by-side
include/hpp/model/body.hh
View file @
7207542c
...
...
@@ -178,13 +178,13 @@ namespace hpp {
}
/// Get mass.
inline
doubl
e
mass
()
const
inline
value_typ
e
mass
()
const
{
return
mass_
;
}
/// Set mass.
inline
void
mass
(
doubl
e
mass
)
inline
void
mass
(
value_typ
e
mass
)
{
mass_
=
mass
;
}
...
...
@@ -201,7 +201,7 @@ namespace hpp {
/// Inertial information
fcl
::
Vec3f
localCom_
;
matrix3_t
inertiaMatrix_
;
doubl
e
mass_
;
value_typ
e
mass_
;
value_type
radius_
;
};
// class Body
}
// namespace model
...
...
include/hpp/model/device.hh
View file @
7207542c
...
...
@@ -203,7 +203,7 @@ namespace hpp {
/// \{
/// Get mass of robot
const
doubl
e
&
mass
()
const
const
value_typ
e
&
mass
()
const
{
return
mass_
;
}
...
...
@@ -342,7 +342,7 @@ namespace hpp {
vector_t
currentAcceleration_
;
vector3_t
com_
;
ComJacobian_t
jacobianCom_
;
doubl
e
mass_
;
value_typ
e
mass_
;
bool
upToDate_
;
Computation_t
computationFlag_
;
// Collision pairs between bodies
...
...
include/hpp/model/distance-result.hh
View file @
7207542c
...
...
@@ -29,7 +29,7 @@ namespace hpp {
/// Result of distance computation between two CollisionObject.
struct
HPP_MODEL_DLLAPI
DistanceResult
{
/// Get distance between objects
const
doubl
e
&
distance
()
const
const
value_typ
e
&
distance
()
const
{
return
fcl
.
min_distance
;
}
...
...
include/hpp/model/extra-config-space.hh
View file @
7207542c
...
...
@@ -69,8 +69,8 @@ namespace hpp {
dimension_
=
dimension
;
lowerBounds_
.
resize
(
dimension
);
upperBounds_
.
resize
(
dimension
);
lowerBounds_
.
setConstant
(
-
std
::
numeric_limits
<
doubl
e
>::
infinity
());
upperBounds_
.
setConstant
(
+
std
::
numeric_limits
<
doubl
e
>::
infinity
());
lowerBounds_
.
setConstant
(
-
std
::
numeric_limits
<
value_typ
e
>::
infinity
());
upperBounds_
.
setConstant
(
+
std
::
numeric_limits
<
value_typ
e
>::
infinity
());
}
size_type
dimension_
;
vector_t
lowerBounds_
;
...
...
include/hpp/model/fwd.hh
View file @
7207542c
...
...
@@ -47,19 +47,19 @@ namespace hpp {
enum
Request_t
{
COLLISION
,
DISTANCE
};
typedef
double
value_type
;
typedef
Eigen
::
Matrix
<
doubl
e
,
Eigen
::
Dynamic
,
1
>
vector_t
;
typedef
Eigen
::
Matrix
<
value_typ
e
,
Eigen
::
Dynamic
,
1
>
vector_t
;
typedef
vector_t
Configuration_t
;
typedef
Eigen
::
Ref
<
const
Configuration_t
>
ConfigurationIn_t
;
typedef
Eigen
::
Ref
<
Configuration_t
>
ConfigurationOut_t
;
typedef
Eigen
::
Ref
<
const
vector_t
>
vectorIn_t
;
typedef
Eigen
::
Ref
<
vector_t
>
vectorOut_t
;
typedef
Eigen
::
Matrix
<
doubl
e
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
>
matrix_t
;
typedef
Eigen
::
Matrix
<
value_typ
e
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
>
matrix_t
;
typedef
Eigen
::
Ref
<
matrix_t
>
matrixOut_t
;
typedef
matrix_t
::
Index
size_type
;
typedef
fcl
::
Matrix3f
matrix3_t
;
typedef
fcl
::
Vec3f
vector3_t
;
typedef
Eigen
::
Matrix
<
doubl
e
,
6
,
Eigen
::
Dynamic
>
JointJacobian_t
;
typedef
Eigen
::
Matrix
<
doubl
e
,
3
,
Eigen
::
Dynamic
>
ComJacobian_t
;
typedef
Eigen
::
Matrix
<
value_typ
e
,
6
,
Eigen
::
Dynamic
>
JointJacobian_t
;
typedef
Eigen
::
Matrix
<
value_typ
e
,
3
,
Eigen
::
Dynamic
>
ComJacobian_t
;
typedef
Eigen
::
Block
<
JointJacobian_t
,
3
,
Eigen
::
Dynamic
>
HalfJointJacobian_t
;
...
...
include/hpp/model/joint-configuration.hh
View file @
7207542c
...
...
@@ -63,7 +63,7 @@ namespace hpp {
/// \li x, y, z, roll, pitch, yaw for freeflyer joints.
virtual
void
interpolate
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
doubl
e
&
u
,
const
value_typ
e
&
u
,
const
size_type
&
index
,
ConfigurationOut_t
result
)
=
0
;
...
...
@@ -71,9 +71,9 @@ namespace hpp {
/// \param q1, q2 two configurations of the robot
/// \param index index of first component of q1 and q2 corresponding to
/// the joint.
virtual
doubl
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
=
0
;
virtual
value_typ
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
=
0
;
/// Integrate constant derivative during unit time
/// \param q initial configuration
...
...
@@ -123,13 +123,13 @@ namespace hpp {
/// Get whether given degree of freedom is bounded
bool
isBounded
(
size_type
rank
)
const
;
/// Get lower bound of given degree of freedom
doubl
e
lowerBound
(
size_type
rank
)
const
;
value_typ
e
lowerBound
(
size_type
rank
)
const
;
/// Get upper bound of given degree of freedom
doubl
e
upperBound
(
size_type
rank
)
const
;
value_typ
e
upperBound
(
size_type
rank
)
const
;
/// Set lower bound of given degree of freedom
void
lowerBound
(
size_type
rank
,
doubl
e
lowerBound
);
void
lowerBound
(
size_type
rank
,
value_typ
e
lowerBound
);
/// Set upper bound of given degree of freedom
void
upperBound
(
size_type
rank
,
doubl
e
upperBound
);
void
upperBound
(
size_type
rank
,
value_typ
e
upperBound
);
/// @}
private:
...
...
@@ -146,7 +146,7 @@ namespace hpp {
virtual
~
AnchorJointConfig
();
virtual
void
interpolate
(
ConfigurationIn_t
,
ConfigurationIn_t
,
const
doubl
e
&
,
const
value_typ
e
&
,
const
size_type
&
,
ConfigurationOut_t
);
...
...
@@ -155,9 +155,9 @@ namespace hpp {
/// \param index index of first component of q1 and q2 corresponding to
/// the joint.
/// \return 0
virtual
doubl
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
value_typ
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
void
integrate
(
ConfigurationIn_t
q
,
vectorIn_t
v
,
...
...
@@ -181,7 +181,7 @@ namespace hpp {
virtual
~
SO3JointConfig
();
virtual
void
interpolate
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
doubl
e
&
u
,
const
value_typ
e
&
u
,
const
size_type
&
index
,
ConfigurationOut_t
result
);
...
...
@@ -190,9 +190,9 @@ namespace hpp {
/// \param index index of first component of q1 and q2 corresponding to
/// the joint.
/// \return the angle between the joint orientations
virtual
doubl
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
value_typ
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
void
integrate
(
ConfigurationIn_t
q
,
vectorIn_t
v
,
const
size_type
&
indexConfig
,
...
...
@@ -237,7 +237,7 @@ namespace hpp {
virtual
~
RotationJointConfig
();
virtual
void
interpolate
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
doubl
e
&
u
,
const
value_typ
e
&
u
,
const
size_type
&
index
,
ConfigurationOut_t
result
);
...
...
@@ -246,9 +246,9 @@ namespace hpp {
/// \param index index of first component of q1 and q2 corresponding to
/// the joint.
/// \return the angle between the joint orientations
virtual
doubl
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
value_typ
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
void
integrate
(
ConfigurationIn_t
q
,
vectorIn_t
v
,
const
size_type
&
indexConfig
,
...
...
@@ -298,7 +298,7 @@ namespace hpp {
virtual
~
TranslationJointConfig
();
virtual
void
interpolate
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
doubl
e
&
u
,
const
value_typ
e
&
u
,
const
size_type
&
index
,
ConfigurationOut_t
result
);
...
...
@@ -307,9 +307,9 @@ namespace hpp {
/// \param index index of first component of q1 and q2 corresponding to
/// the joint.
/// \return the absolute value of the joint value difference.
virtual
doubl
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
value_typ
e
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
;
virtual
void
integrate
(
ConfigurationIn_t
q
,
vectorIn_t
v
,
...
...
include/hpp/model/joint.hh
View file @
7207542c
...
...
@@ -168,13 +168,13 @@ namespace hpp {
/// Get whether given degree of freedom is bounded
bool
isBounded
(
size_type
rank
)
const
;
/// Get lower bound of given degree of freedom
doubl
e
lowerBound
(
size_type
rank
)
const
;
value_typ
e
lowerBound
(
size_type
rank
)
const
;
/// Get upper bound of given degree of freedom
doubl
e
upperBound
(
size_type
rank
)
const
;
value_typ
e
upperBound
(
size_type
rank
)
const
;
/// Set lower bound of given degree of freedom
void
lowerBound
(
size_type
rank
,
doubl
e
lowerBound
);
void
lowerBound
(
size_type
rank
,
value_typ
e
lowerBound
);
/// Set upper bound of given degree of freedom
void
upperBound
(
size_type
rank
,
doubl
e
upperBound
);
void
upperBound
(
size_type
rank
,
value_typ
e
upperBound
);
/// \}
/// \name Jacobian
...
...
@@ -215,7 +215,7 @@ namespace hpp {
Transform3f
positionInParentFrame_
;
mutable
Transform3f
T3f_
;
/// Mass of this and all descendants
doubl
e
mass_
;
value_typ
e
mass_
;
/// Mass time center of mass of this and all descendants
fcl
::
Vec3f
massCom_
;
private:
...
...
@@ -236,14 +236,14 @@ namespace hpp {
virtual
void
writeSubJacobian
(
const
JointPtr_t
&
child
)
=
0
;
void
computeJacobian
();
/// Compute mass of this and all descendants
doubl
e
computeMass
();
value_typ
e
computeMass
();
/// Compute the product m * com
///
/// \li m is the mass of the joint and all descendants,
/// \li com is the center of mass of the joint and all descendants.
void
computeMassTimesCenterOfMass
();
virtual
void
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
)
=
0
;
const
value_typ
e
&
totalMass
)
=
0
;
size_type
configSize_
;
size_type
numberDof_
;
Transform3f
initialPosition_
;
...
...
@@ -285,7 +285,7 @@ namespace hpp {
private:
virtual
void
writeSubJacobian
(
const
JointPtr_t
&
child
);
virtual
void
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
);
const
value_typ
e
&
totalMass
);
};
// class JointAnchor
/// Spherical Joint
...
...
@@ -310,7 +310,7 @@ namespace hpp {
private:
virtual
void
writeSubJacobian
(
const
JointPtr_t
&
child
);
virtual
void
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
);
const
value_typ
e
&
totalMass
);
mutable
fcl
::
Vec3f
com_
;
};
// class JointSO3
...
...
@@ -337,9 +337,9 @@ namespace hpp {
private:
virtual
void
writeSubJacobian
(
const
JointPtr_t
&
child
);
virtual
void
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
);
const
value_typ
e
&
totalMass
);
mutable
fcl
::
Matrix3f
R_
;
mutable
doubl
e
angle_
;
mutable
value_typ
e
angle_
;
mutable
fcl
::
Vec3f
axis_
;
mutable
fcl
::
Vec3f
O2O1_
;
mutable
fcl
::
Vec3f
cross_
;
...
...
@@ -369,7 +369,7 @@ namespace hpp {
private:
virtual
void
writeSubJacobian
(
const
JointPtr_t
&
child
);
virtual
void
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
);
const
value_typ
e
&
totalMass
);
mutable
fcl
::
Vec3f
t_
;
mutable
fcl
::
Vec3f
axis_
[
dimension
];
mutable
fcl
::
Vec3f
com_
;
...
...
src/joint-configuration.cc
View file @
7207542c
...
...
@@ -28,7 +28,7 @@
namespace
hpp
{
namespace
model
{
typedef
Eigen
::
AngleAxis
<
doubl
e
>
AngleAxis_t
;
typedef
Eigen
::
AngleAxis
<
value_typ
e
>
AngleAxis_t
;
typedef
fcl
::
Quaternion3f
Quaternion_t
;
JointConfiguration
::
JointConfiguration
(
size_type
numberDof
)
...
...
@@ -55,22 +55,22 @@ namespace hpp {
return
bounded_
[
rank
];
}
doubl
e
JointConfiguration
::
lowerBound
(
size_type
rank
)
const
value_typ
e
JointConfiguration
::
lowerBound
(
size_type
rank
)
const
{
return
lowerBounds_
[
rank
];
}
doubl
e
JointConfiguration
::
upperBound
(
size_type
rank
)
const
value_typ
e
JointConfiguration
::
upperBound
(
size_type
rank
)
const
{
return
upperBounds_
[
rank
];
}
void
JointConfiguration
::
lowerBound
(
size_type
rank
,
doubl
e
lowerBound
)
void
JointConfiguration
::
lowerBound
(
size_type
rank
,
value_typ
e
lowerBound
)
{
lowerBounds_
[
rank
]
=
lowerBound
;
}
void
JointConfiguration
::
upperBound
(
size_type
rank
,
doubl
e
upperBound
)
void
JointConfiguration
::
upperBound
(
size_type
rank
,
value_typ
e
upperBound
)
{
upperBounds_
[
rank
]
=
upperBound
;
}
...
...
@@ -112,15 +112,15 @@ namespace hpp {
void
AnchorJointConfig
::
interpolate
(
ConfigurationIn_t
,
ConfigurationIn_t
,
const
doubl
e
&
,
const
value_typ
e
&
,
const
size_type
&
,
ConfigurationOut_t
)
{
}
doubl
e
AnchorJointConfig
::
distance
(
ConfigurationIn_t
,
ConfigurationIn_t
,
const
size_type
&
)
const
value_typ
e
AnchorJointConfig
::
distance
(
ConfigurationIn_t
,
ConfigurationIn_t
,
const
size_type
&
)
const
{
return
0
;
}
...
...
@@ -152,26 +152,26 @@ namespace hpp {
/// \param index index of joint configuration in robot configuration vector
/// \param unit quaternion corresponding to both joint configuration
/// \return angle between both joint configuration
static
doubl
e
angleBetweenQuaternions
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
static
value_typ
e
angleBetweenQuaternions
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
{
doubl
e
innerprod
=
q1
.
segment
(
index
,
4
).
dot
(
q2
.
segment
(
index
,
4
));
value_typ
e
innerprod
=
q1
.
segment
(
index
,
4
).
dot
(
q2
.
segment
(
index
,
4
));
assert
(
fabs
(
innerprod
)
<
1.0001
);
if
(
innerprod
<
-
1
)
innerprod
=
-
1
;
if
(
innerprod
>
1
)
innerprod
=
1
;
doubl
e
theta
=
acos
(
innerprod
);
value_typ
e
theta
=
acos
(
innerprod
);
return
theta
;
}
void
SO3JointConfig
::
interpolate
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
doubl
e
&
u
,
const
value_typ
e
&
u
,
const
size_type
&
index
,
ConfigurationOut_t
result
)
{
// for rotation part, transform roll pitch yaw into quaternion
doubl
e
theta
=
angleBetweenQuaternions
(
q1
,
q2
,
index
);
value_typ
e
theta
=
angleBetweenQuaternions
(
q1
,
q2
,
index
);
if
(
fabs
(
theta
)
>
1e-6
)
{
result
.
segment
(
index
,
4
)
=
...
...
@@ -183,11 +183,11 @@ namespace hpp {
}
}
doubl
e
SO3JointConfig
::
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
value_typ
e
SO3JointConfig
::
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
{
doubl
e
theta
=
angleBetweenQuaternions
(
q1
,
q2
,
index
);
value_typ
e
theta
=
angleBetweenQuaternions
(
q1
,
q2
,
index
);
assert
(
theta
>=
0
);
return
theta
;
}
...
...
@@ -201,7 +201,7 @@ namespace hpp {
vector3_t
omega
(
v
[
indexVelocity
+
0
],
v
[
indexVelocity
+
1
],
v
[
indexVelocity
+
2
]);
doubl
e
angle
=
.5
*
omega
.
norm
();
value_typ
e
angle
=
.5
*
omega
.
norm
();
if
(
angle
==
0
)
{
result
.
segment
(
indexConfig
,
4
)
=
q
.
segment
(
indexConfig
,
4
);
return
;
...
...
@@ -234,7 +234,7 @@ namespace hpp {
Quaternion_t
p2
(
q2
[
indexConfig
+
0
],
q2
[
indexConfig
+
1
],
q2
[
indexConfig
+
2
],
q2
[
indexConfig
+
3
]);
Quaternion_t
p
(
p1
);
p
.
conj
();
p
*=
p2
;
doubl
e
angle
;
fcl
::
Vec3f
axis
;
value_typ
e
angle
;
fcl
::
Vec3f
axis
;
p
.
toAxisAngle
(
axis
,
angle
);
result
[
indexVelocity
+
0
]
=
angle
*
axis
[
0
];
result
[
indexVelocity
+
1
]
=
angle
*
axis
[
1
];
...
...
@@ -244,9 +244,9 @@ namespace hpp {
void
SO3JointConfig
::
uniformlySample
(
const
size_type
&
index
,
ConfigurationOut_t
result
)
const
{
double
u1
=
(
doubl
e
)
rand
()
/
RAND_MAX
;
double
u2
=
(
doubl
e
)
rand
()
/
RAND_MAX
;
double
u3
=
(
doubl
e
)
rand
()
/
RAND_MAX
;
value_type
u1
=
(
value_typ
e
)
rand
()
/
RAND_MAX
;
value_type
u2
=
(
value_typ
e
)
rand
()
/
RAND_MAX
;
value_type
u3
=
(
value_typ
e
)
rand
()
/
RAND_MAX
;
result
[
index
]
=
sqrt
(
1
-
u1
)
*
sin
(
2
*
M_PI
*
u2
);
result
[
index
+
1
]
=
sqrt
(
1
-
u1
)
*
cos
(
2
*
M_PI
*
u2
);
result
[
index
+
2
]
=
sqrt
(
u1
)
*
sin
(
2
*
M_PI
*
u3
);
...
...
@@ -255,7 +255,7 @@ namespace hpp {
template
<
size_type
dimension
>
void
TranslationJointConfig
<
dimension
>::
interpolate
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
doubl
e
&
u
,
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
value_typ
e
&
u
,
const
size_type
&
index
,
ConfigurationOut_t
result
)
{
result
.
segment
<
dimension
>
(
index
)
=
...
...
@@ -264,7 +264,7 @@ namespace hpp {
}
template
<
size_type
dimension
>
doubl
e
TranslationJointConfig
<
dimension
>::
distance
value_typ
e
TranslationJointConfig
<
dimension
>::
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
{
if
(
dimension
==
1
)
{
...
...
@@ -326,7 +326,7 @@ namespace hpp {
void
RotationJointConfig
::
interpolate
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
doubl
e
&
u
,
const
value_typ
e
&
u
,
const
size_type
&
index
,
ConfigurationOut_t
result
)
{
...
...
@@ -341,9 +341,9 @@ namespace hpp {
}
}
doubl
e
RotationJointConfig
::
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
value_typ
e
RotationJointConfig
::
distance
(
ConfigurationIn_t
q1
,
ConfigurationIn_t
q2
,
const
size_type
&
index
)
const
{
if
(
isBounded
(
0
))
{
// linearly interpolate
...
...
@@ -363,7 +363,7 @@ namespace hpp {
ConfigurationOut_t
result
)
const
{
using
jrlMathTools
::
Angle
;
doubl
e
omega
=
v
[
indexVelocity
];
value_typ
e
omega
=
v
[
indexVelocity
];
result
[
indexConfig
]
=
Angle
(
q
[
indexConfig
])
+
Angle
(
omega
);
if
(
isBounded
(
0
))
{
if
(
result
[
indexConfig
]
<
lowerBound
(
0
))
{
...
...
src/joint.cc
View file @
7207542c
...
...
@@ -107,22 +107,22 @@ namespace hpp {
return
configuration_
->
isBounded
(
rank
);
}
doubl
e
Joint
::
lowerBound
(
size_type
rank
)
const
value_typ
e
Joint
::
lowerBound
(
size_type
rank
)
const
{
return
configuration_
->
lowerBound
(
rank
);
}
doubl
e
Joint
::
upperBound
(
size_type
rank
)
const
value_typ
e
Joint
::
upperBound
(
size_type
rank
)
const
{
return
configuration_
->
upperBound
(
rank
);
}
void
Joint
::
lowerBound
(
size_type
rank
,
doubl
e
lower
)
void
Joint
::
lowerBound
(
size_type
rank
,
value_typ
e
lower
)
{
configuration_
->
lowerBound
(
rank
,
lower
);
}
void
Joint
::
upperBound
(
size_type
rank
,
doubl
e
upper
)
void
Joint
::
upperBound
(
size_type
rank
,
value_typ
e
upper
)
{
configuration_
->
upperBound
(
rank
,
upper
);
}
...
...
@@ -162,7 +162,7 @@ namespace hpp {
}
}
doubl
e
Joint
::
computeMass
()
value_typ
e
Joint
::
computeMass
()
{
mass_
=
0
;
if
(
body_
)
{
...
...
@@ -222,7 +222,7 @@ namespace hpp {
}
void
JointAnchor
::
writeComSubjacobian
(
ComJacobian_t
&
,
const
doubl
e
&
)
const
value_typ
e
&
)
{
}
...
...
@@ -286,7 +286,7 @@ namespace hpp {
}
void
JointSO3
::
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
)
const
value_typ
e
&
totalMass
)
{
if
(
mass_
>
0
)
{
const
fcl
::
Vec3f
&
center
(
currentTransformation_
.
getTranslation
());
...
...
@@ -347,7 +347,7 @@ namespace hpp {
}
void
JointRotation
::
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
)
const
value_typ
e
&
totalMass
)
{
if
(
mass_
>
0
)
{
size_type
col
=
rankInVelocity
();
...
...
@@ -489,7 +489,7 @@ namespace hpp {
template
<
size_type
dimension
>
void
JointTranslation
<
dimension
>::
writeComSubjacobian
(
ComJacobian_t
&
jacobian
,
const
doubl
e
&
totalMass
)
(
ComJacobian_t
&
jacobian
,
const
value_typ
e
&
totalMass
)
{
if
(
mass_
>
0
)
{
size_type
col
=
rankInVelocity
();
...
...
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