Open traversaro opened 1 year ago
He was using code like:
baseForceAndJointTorques = iDynTree.FreeFloatingGeneralizedTorques()
# baseForceAndJointTorques = iDynTree.MatrixDynSize(6+dofs, 1);
ok = dynComp.inverseDynamics(baseAcc, accelerations_joints[:, time_instant], linkExtForces, baseForceAndJointTorques);
My error was due to the fact I was using iDynTree.FreeFloatingGeneralizedTorques()
and iDynTree.LinkWrenches()
without giving them the model I was using.
The correct use of these classes is:
baseForceAndJointTorques = iDynTree.FreeFloatingGeneralizedTorques(dynComp.model())
linkExtForces = iDynTree.LinkWrenches(dynComp.model())
Thanks for the help, @traversaro !
@fils99 was affected by this.