Page 1 of 1

How can I get gravity torque?

Posted: 18 Feb 2021, 12:46
by yanxj20
Hi Coppelia:

I need Joint torques that compensate gravity at certain joint configuration. Is there any API in CoppeliaSim like

Code: Select all

gravTorq = gravityTorque(robot,configuration)
in MATLAB?

If not, I also tried to load the same manipulator model in MATLAB and use gravityTorque to calculate it. However, the COM and Inertia is quite different. And the ways to describe COM and inertia are quite different between MATLAB and CoppeliaSim.(in CoppeliaSim we have an inertia frame relative to body frame, and then we set principal moments of inertia/mass in inertia frame. In MATLAB we only have a body frame, then we set COM and inertia matrix relative to the body frame). I don't know how to convert. How can I achieve this?

Thanks in advance.

Re: How can I get gravity torque?

Posted: 18 Feb 2021, 13:15
by yanxj20
Or can I get the .urdf file of certain .ttm file?

Re: How can I get gravity torque?

Posted: 19 Feb 2021, 06:25
by yanxj20
Can anyone help? Any help is greatly appreciated.

Re: How can I get gravity torque?

Posted: 19 Feb 2021, 11:15
by coppelia
Hello,

did you have a look at this post about inertia frames?

Cheers