how to calculate the gravity torque of a still legged robot? #2738
-
|
Dear Sir: import pinocchio as pin np.set_printoptions(suppress=True, precision=6) def main(): However ,the output of these code is Best regards! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hello @zdpisadaniu, and thanks for your interest in Pinocchio! I took the liberty of moving your issue to the discussion tab of the repo to avoid gunking up the issue tracker. If I understand correctly, what you want to do is compute the gravity compensation torque for the underactuated humanoid, correct? The function you called is not that, not only because the Pinocchio model isn't aware of the foot contact constraint, but because the function you called computed the generalized gravity joint torque (the term Furthermore you can't just get the motor torques because that is ill-posed, you'll need to compute the ground reaction forces along with that. Joint torques aren't enough to hold up your body on the ground, the reaction force the ground exerts on you is what stops you from clipping through it 😉 What you want to do probably is formulate bilateral contact constraints (you may use A small remark: you didn't need to redefine the |
Beta Was this translation helpful? Give feedback.
Hello @zdpisadaniu, and thanks for your interest in Pinocchio!
I took the liberty of moving your issue to the discussion tab of the repo to avoid gunking up the issue tracker.
If I understand correctly, what you want to do is compute the gravity compensation torque for the underactuated humanoid, correct?
The function you called is not that, not only because the Pinocchio model isn't aware of the foot contact constraint, but because the function you called computed the generalized gravity joint torque (the term$G(q)$ in the classical Lagrangian multibody equation, if you don't know what that is, look it up).
Furthermore you can't just get the motor torques because that is ill-posed, you'…