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

Réponses (1)

Roger Stafford
Roger Stafford le 29 Fév 2016

0 votes

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.

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by