Skip to content

Commit

Permalink
Added reset() to AngularMomentum
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMingo committed Apr 16, 2024
1 parent e17056c commit a2f2ef2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tasks/acceleration/AngularMomentum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ const std::string& AngularMomentum::getDistalLink() const
return _distal_link;
}

bool AngularMomentum::reset()
{
_is_init = false; //this reset _L_d;
_Ldot_d.setZero();

return true;
}

bool AngularMomentum::isAngularMomentum(OpenSoT::Task<Eigen::MatrixXd, Eigen::VectorXd>::TaskPtr task)
{
return (bool)std::dynamic_pointer_cast<AngularMomentum>(task);
Expand Down

0 comments on commit a2f2ef2

Please sign in to comment.