Skip to content

Commit

Permalink
Merge pull request #155 from Naoki-Hiraoka/PR-fixedrobot
Browse files Browse the repository at this point in the history
[hrplib/hrpModel/ForwardDynamicsCBM.cpp] check equation num in solveUnknownAccels
  • Loading branch information
fkanehiro authored Jun 21, 2021
2 parents 2bfbea7 + bf8fce0 commit eac8c03
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 eac8c03

Please sign in to comment.