Skip to content

Commit

Permalink
Merge pull request #1161 from robotology/fixdynlin
Browse files Browse the repository at this point in the history
Fix bug in DynamicsLinearization due to use of ; in place of +
  • Loading branch information
traversaro committed Mar 11, 2024
2 parents 7848e8a + b691625 commit e35f305
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/model/src/DynamicsLinearization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void ForwardDynamicsLinearizationWrtJointPos(const Model& model,
double invD = 1/(bufs.aba.D(dofIndex));
double d_invD = - invD * bufs.dPos[dofDeriv].D(dofIndex) * invD;
double dPos_ddq =
(bufs.aba.u(dofIndex)-bufs.aba.U(dofIndex).dot(bufs.aba.linksAccelerations(visitedLinkIndex)))*d_invD;
(bufs.aba.u(dofIndex)-bufs.aba.U(dofIndex).dot(bufs.aba.linksAccelerations(visitedLinkIndex)))*d_invD+
(bufs.dPos[dofDeriv].u(dofIndex)
-bufs.dPos[dofDeriv].U(dofIndex).dot(bufs.aba.linksAccelerations(visitedLinkIndex))
-bufs.aba.U(dofIndex).dot(bufs.dPos[dofDeriv].linksAccelerations(visitedLinkIndex)))*invD;
Expand Down
1 change: 0 additions & 1 deletion src/tests/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ add_integration_test(Dynamics)
add_integration_test(DenavitHartenberg)
add_integration_test(ReducedModelWithFT)


# See issue https://github.com/robotology/idyntree/issues/367
add_integration_test_no_valgrind(iCubTorqueEstimation)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ int main()
std::cerr << "Checking DynamicsLinearization test on a point mass model" << std::endl;
checkABAandABALinearizationAreConsistent(doubleBodyModel);

return 0;

// Then test random generated chains
for(unsigned int joints =0; joints < 20; joints++)
{
Expand Down

0 comments on commit e35f305

Please sign in to comment.