Skip to content

Commit

Permalink
[inverse-kinematics] Re-initialize the problem if addCenterOfMassCons…
Browse files Browse the repository at this point in the history
…traint is called again
  • Loading branch information
traversaro committed Sep 7, 2018
1 parent 99567f1 commit ed9684b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/inverse-kinematics/src/InverseKinematics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ namespace iDynTree {
IK_PIMPL(m_pimpl)->m_comHullConstraint_yAxisOfPlaneInWorld = yAxisOfPlaneInWorld;
IK_PIMPL(m_pimpl)->m_comHullConstraint_originOfPlaneInWorld = originOfPlaneInWorld;

// If this method is called again to reconfigure the constraint, the problem need to be reinitialized
IK_PIMPL(m_pimpl)->m_problemInitialized = false;

return true;
}

Expand Down

0 comments on commit ed9684b

Please sign in to comment.