How can I compute expression with an integral?
Show older comments
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)
Roger Stafford
on 29 Feb 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.
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!