How can I compute expression with an integral?

Hi,
I am trying to estimate the contact force at the end-effector of a robotic manipulator which I'm trying to do with the so called residual method. I'm struggling however to compute the residual which is defined in an analytic expression as:
With 'r(t)' the residual, 'K_i' a constant diagonal gain matrix, M(q) the mass matrix, \tau the control inputs, C^T(q,\dot{q}) the Coriolis matrix, g(q) the gravity vector and q and \dot{q} the joint position and velocities respectively.
The problem is the 'r(t)' within the integral. Is there any way to compute this?
Thanks in advance!
Fransis

回答 (1 件)

Roger Stafford
Roger Stafford 2016 年 2 月 29 日

0 投票

If the derivative with respect to t is taken of your equation, the result is a differential equation in the dependent variable r and independent variable t. You can solve it using 'ode45' or some other ode function. Solving the differential equation takes the place of performing the integration. Just make sure your initial value of r is correct.

カテゴリ

ヘルプ センター および File ExchangeNumerical Integration and Differential Equations についてさらに検索

質問済み:

2016 年 2 月 29 日

回答済み:

2016 年 2 月 29 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by