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

Answers (1)

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.

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Asked:

on 29 Feb 2016

Answered:

on 29 Feb 2016

Community Treasure Hunt

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

Start Hunting!