Closed Woolfrey closed 8 months ago
Added these to KinematicTree
:
// Compute inertial coupling between the base and links
this->_jointBaseInertiaMatrix.block(0,0,k+1,3) += mass * Jv.transpose();
this->_jointBaseInertiaMatrix.block(0,3,k+1,3) += Jw.transpose()*this->base.inertia()
- mass * (SkewSymmetric<DataType>(currentLink->center_of_mass() - this->base.pose().translation()) * Jv).transpose();
this->_jointBaseCoriolisMatrix.block(0,3,k+1,3) += Jw.transpose()*this->base.inertia_derivative()
- mass * (SkewSymmetric<DataType>(currentLink->twist().head(3))*Jv).transpose();
But still need to check if the calcs are correct. Can probably cross-check the results using the parody_mark1
robot from Clyde Webster (◔ヘ◔)
Closing this as complete, but the numbers still need to be verified.
This is the output when running ./Model/urdf_test ../Misc/parody_mark1.urdf
:
Need to add calculations to compute the dynamics for floating base systems.