Skip to content

Commit

Permalink
[hrplib/hrpModel/ForwardDynamicsCBM.cpp] check equation num in solveU…
Browse files Browse the repository at this point in the history
…nknownAccels
  • Loading branch information
Naoki-Hiraoka committed Jun 20, 2021
1 parent 5efda83 commit bf8fce0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hrplib/hrpModel/ForwardDynamicsCBM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,10 @@ void ForwardDynamicsMM::solveUnknownAccels(const Vector3& fext, const Vector3& t
c1 -= d1;
c1 -= b1.col(0);

dvector a(M11.colPivHouseholderQr().solve(c1));
dvector a;
if(c1.size()!=0) {
a = M11.colPivHouseholderQr().solve(c1);
}

if(unknown_rootDof){
Link* root = body->rootLink();
Expand Down

0 comments on commit bf8fce0

Please sign in to comment.