Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Commit

Permalink
init cj to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Barthélémy authored and Olivier Stasse committed Jan 29, 2013
1 parent f8da4fb commit ebf07a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/metapod/tools/joint.hh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ namespace metapod
void jcalc(const Vector1d& qi, const Vector1d& dqi);
};

inline RevoluteAxisXJoint::RevoluteAxisXJoint()
inline RevoluteAxisXJoint::RevoluteAxisXJoint():
cj(Spatial::Motion::Zero())
{
}

Expand Down Expand Up @@ -79,6 +80,7 @@ namespace metapod

inline RevoluteAxisAnyJoint::RevoluteAxisAnyJoint(
double axis_x, double axis_y, double axis_z):
cj(Spatial::Motion::Zero()),
S(axis_x, axis_y, axis_z),
axis_(axis_x, axis_y, axis_z)
{
Expand Down

0 comments on commit ebf07a2

Please sign in to comment.