2020-09-21 13:08:36 +02:00
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2020-11-23 18:01:13 +01:00
<!-- 2020 - 11 - 23 lun. 18:00 -->
2020-09-21 13:08:36 +02:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< title > SVD Control< / title >
< meta name = "generator" content = "Org mode" / >
< meta name = "author" content = "Dehaeze Thomas" / >
2020-11-12 10:18:50 +01:00
< link rel = "stylesheet" type = "text/css" href = "https://research.tdehaeze.xyz/css/style.css" / >
< script type = "text/javascript" src = "https://research.tdehaeze.xyz/js/script.js" > < / script >
2020-09-21 18:03:40 +02:00
< script > M a t h J a x = {
tex: {
tags: 'ams',
macros: {bm: ["\\boldsymbol{#1}",1],}
}
};
< / script >
< script type = "text/javascript" src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" > < / script >
2020-09-21 13:08:36 +02:00
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "../index.html" > UP < / a >
|
< a accesskey = "H" href = "../index.html" > HOME < / a >
< / div > < div id = "content" >
< h1 class = "title" > SVD Control< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
2020-11-23 18:01:13 +01:00
< li > < a href = "#orgf2587b5" > 1. Gravimeter - Simscape Model< / a >
2020-09-21 13:08:36 +02:00
< ul >
2020-11-23 18:01:13 +01:00
< li > < a href = "#org008a0a5" > 1.1. Introduction< / a > < / li >
< li > < a href = "#org433ef4e" > 1.2. Simscape Model - Parameters< / a > < / li >
< li > < a href = "#orge6c3f27" > 1.3. System Identification - Without Gravity< / a > < / li >
< li > < a href = "#org34b5cef" > 1.4. Physical Decoupling using the Jacobian< / a > < / li >
< li > < a href = "#orgf6c4a25" > 1.5. Real Approximation of \(G\) at the decoupling frequency< / a > < / li >
< li > < a href = "#org850bcb9" > 1.6. SVD Decoupling< / a > < / li >
< li > < a href = "#orgb4036b5" > 1.7. Verification of the decoupling using the “ Gershgorin Radii” < / a > < / li >
< li > < a href = "#org54e1362" > 1.8. Obtained Decoupled Plants< / a > < / li >
< li > < a href = "#org26917c3" > 1.9. Diagonal Controller< / a > < / li >
< li > < a href = "#orge573ff6" > 1.10. Closed-Loop system Performances< / a > < / li >
2020-09-21 18:03:40 +02:00
< / ul >
< / li >
2020-11-23 18:01:13 +01:00
< li > < a href = "#orgb4d9d19" > 2. Stewart Platform - Simscape Model< / a >
2020-09-21 18:03:40 +02:00
< ul >
2020-11-23 18:01:13 +01:00
< li > < a href = "#org1066cea" > 2.1. Simscape Model - Parameters< / a > < / li >
< li > < a href = "#org57d9045" > 2.2. Identification of the plant< / a > < / li >
< li > < a href = "#org81abdfe" > 2.3. Physical Decoupling using the Jacobian< / a > < / li >
< li > < a href = "#org1a7fde2" > 2.4. Real Approximation of \(G\) at the decoupling frequency< / a > < / li >
< li > < a href = "#org8b0f922" > 2.5. SVD Decoupling< / a > < / li >
< li > < a href = "#orga02b880" > 2.6. Verification of the decoupling using the “ Gershgorin Radii” < / a > < / li >
< li > < a href = "#org4813b1f" > 2.7. Verification of the decoupling using the “ Relative Gain Array” < / a > < / li >
< li > < a href = "#org82cfc11" > 2.8. Obtained Decoupled Plants< / a > < / li >
< li > < a href = "#org75580ea" > 2.9. Diagonal Controller< / a > < / li >
< li > < a href = "#org9f0f788" > 2.10. Closed-Loop system Performances< / a > < / li >
< li > < a href = "#orga629e4c" > 2.11. Small error on the sensor location      < span class = "tag" > < span class = "no_export" > no_export< / span > < / span > < / a > < / li >
2020-09-21 13:08:36 +02:00
< / ul >
< / li >
< / ul >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-orgf2587b5" class = "outline-2" >
< h2 id = "orgf2587b5" > < span class = "section-number-2" > 1< / span > Gravimeter - Simscape Model< / h2 >
2020-09-21 13:08:36 +02:00
< div class = "outline-text-2" id = "text-1" >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org008a0a5" class = "outline-3" >
< h3 id = "org008a0a5" > < span class = "section-number-3" > 1.1< / span > Introduction< / h3 >
2020-09-21 13:08:36 +02:00
< div class = "outline-text-3" id = "text-1-1" >
2020-10-05 18:06:49 +02:00
2020-11-23 18:01:13 +01:00
< div id = "org7c9ba62" class = "figure" >
2020-10-05 18:06:49 +02:00
< p > < img src = "figs/gravimeter_model.png" alt = "gravimeter_model.png" / >
< / p >
< p > < span class = "figure-number" > Figure 1: < / span > Model of the gravimeter< / p >
< / div >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org433ef4e" class = "outline-3" >
< h3 id = "org433ef4e" > < span class = "section-number-3" > 1.2< / span > Simscape Model - Parameters< / h3 >
2020-10-05 18:06:49 +02:00
< div class = "outline-text-3" id = "text-1-2" >
2020-09-21 13:08:36 +02:00
< div class = "org-src-container" >
2020-10-05 18:06:49 +02:00
< pre class = "src src-matlab" > open(< span class = "org-string" > 'gravimeter.slx'< / span > )
2020-09-21 13:08:36 +02:00
< / pre >
< / div >
2020-09-30 17:16:30 +02:00
< p >
Parameters
< / p >
< div class = "org-src-container" >
2020-10-05 18:06:49 +02:00
< pre class = "src src-matlab" > l = 1.0; < span class = "org-comment" > % Length of the mass [m]< / span >
2020-11-16 14:58:26 +01:00
h = 1.7; < span class = "org-comment" > % Height of the mass [m]< / span >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
la = l< span class = "org-type" > /< / span > 2; < span class = "org-comment" > % Position of Act. [m]< / span >
ha = h< span class = "org-type" > /< / span > 2; < span class = "org-comment" > % Position of Act. [m]< / span >
2020-09-30 17:16:30 +02:00
2020-10-05 18:06:49 +02:00
m = 400; < span class = "org-comment" > % Mass [kg]< / span >
I = 115; < span class = "org-comment" > % Inertia [kg m^2]< / span >
2020-09-30 17:16:30 +02:00
2020-10-05 18:06:49 +02:00
k = 15e3; < span class = "org-comment" > % Actuator Stiffness [N/m]< / span >
c = 0.03; < span class = "org-comment" > % Actuator Damping [N/(m/s)]< / span >
2020-09-30 17:16:30 +02:00
2020-10-05 18:06:49 +02:00
deq = 0.2; < span class = "org-comment" > % Length of the actuators [m]< / span >
2020-09-30 17:16:30 +02:00
2020-10-05 18:06:49 +02:00
g = 0; < span class = "org-comment" > % Gravity [m/s2]< / span >
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-orge6c3f27" class = "outline-3" >
< h3 id = "orge6c3f27" > < span class = "section-number-3" > 1.3< / span > System Identification - Without Gravity< / h3 >
2020-10-05 18:06:49 +02:00
< div class = "outline-text-3" id = "text-1-3" >
2020-09-21 13:08:36 +02:00
< div class = "org-src-container" >
2020-10-05 18:06:49 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > < span class = "org-comment" > %% Name of the Simulink File< / span > < / span >
mdl = < span class = "org-string" > 'gravimeter'< / span > ;
2020-09-21 13:08:36 +02:00
2020-10-05 18:06:49 +02:00
< span class = "org-matlab-cellbreak" > < span class = "org-comment" > %% Input/Output definition< / span > < / span >
2020-09-21 13:08:36 +02:00
clear io; io_i = 1;
2020-10-05 18:06:49 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/F1'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/F2'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/F3'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/Acc_side'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/Acc_side'< / span > ], 2, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/Acc_top'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/Acc_top'< / span > ], 2, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1;
2020-09-21 13:08:36 +02:00
G = linearize(mdl, io);
2020-10-05 18:06:49 +02:00
G.InputName = {< span class = "org-string" > 'F1'< / span > , < span class = "org-string" > 'F2'< / span > , < span class = "org-string" > 'F3'< / span > };
G.OutputName = {< span class = "org-string" > 'Ax1'< / span > , < span class = "org-string" > 'Az1'< / span > , < span class = "org-string" > 'Ax2'< / span > , < span class = "org-string" > 'Az2'< / span > };
2020-09-21 13:08:36 +02:00
< / pre >
< / div >
2020-11-16 14:58:26 +01:00
< p >
2020-11-23 18:01:13 +01:00
The inputs and outputs of the plant are shown in Figure < a href = "#orgda64392" > 2< / a > .
2020-11-16 14:58:26 +01:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "orgda64392" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/gravimeter_plant_schematic.png" alt = "gravimeter_plant_schematic.png" / >
< / p >
< p > < span class = "figure-number" > Figure 2: < / span > Schematic of the gravimeter plant< / p >
< / div >
\begin{equation}
\bm{a} = \begin{bmatrix} a_{1x} \\ a_{1z} \\ a_{2x} \\ a_{2z} \end{bmatrix}
\end{equation}
\begin{equation}
\bm{\tau} = \begin{bmatrix}\tau_1 \\ \tau_2 \\ \tau_2 \end{bmatrix}
\end{equation}
< p >
We can check the poles of the plant:
< / p >
2020-11-23 18:01:13 +01:00
< pre class = "example" id = "org39bce68" >
2020-11-16 14:58:26 +01:00
-0.000183495485977108 + 13.546056874877i
-0.000183495485977108 - 13.546056874877i
-7.49842878906757e-05 + 8.65934902322567i
-7.49842878906757e-05 - 8.65934902322567i
-1.33171230256362e-05 + 3.64924169037897i
-1.33171230256362e-05 - 3.64924169037897i
2020-09-30 17:16:30 +02:00
< / pre >
2020-09-21 13:08:36 +02:00
< p >
The plant as 6 states as expected (2 translations + 1 rotation)
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > size(G)
< / pre >
< / div >
< pre class = "example" >
State-space model with 4 outputs, 3 inputs, and 6 states.
< / pre >
2020-11-16 14:58:26 +01:00
< p >
2020-11-23 18:01:13 +01:00
The bode plot of all elements of the plant are shown in Figure < a href = "#orgdd01904" > 3< / a > .
2020-11-16 14:58:26 +01:00
< / p >
2020-09-21 13:08:36 +02:00
2020-11-23 18:01:13 +01:00
< div id = "orgdd01904" class = "figure" >
2020-09-21 13:08:36 +02:00
< p > < img src = "figs/open_loop_tf.png" alt = "open_loop_tf.png" / >
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 3: < / span > Open Loop Transfer Function from 3 Actuators to 4 Accelerometers< / p >
2020-09-21 13:08:36 +02:00
< / div >
< / div >
< / div >
2020-09-30 17:16:30 +02:00
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org34b5cef" class = "outline-3" >
< h3 id = "org34b5cef" > < span class = "section-number-3" > 1.4< / span > Physical Decoupling using the Jacobian< / h3 >
2020-10-05 18:06:49 +02:00
< div class = "outline-text-3" id = "text-1-4" >
2020-11-16 14:58:26 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org6fa0ce5" > < / a >
2020-11-16 14:58:26 +01:00
< / p >
< p >
2020-11-23 18:01:13 +01:00
Consider the control architecture shown in Figure < a href = "#org08a3c55" > 4< / a > .
2020-11-16 14:58:26 +01:00
< / p >
< p >
The Jacobian matrix \(J_{\tau}\) is used to transform forces applied by the three actuators into forces/torques applied on the gravimeter at its center of mass.
The Jacobian matrix \(J_{a}\) is used to compute the vertical acceleration, horizontal acceleration and rotational acceleration of the mass with respect to its center of mass.
< / p >
< p >
2020-11-23 18:01:13 +01:00
We thus define a new plant as defined in Figure < a href = "#org08a3c55" > 4< / a > .
2020-11-16 14:58:26 +01:00
\[ G_x(s) = J_a G(s) J_{\tau}^{-T} \]
< / p >
< p >
\(G_x(s)\) correspond to the transfer function from forces and torques applied to the gravimeter at its center of mass to the absolute acceleration of the gravimeter’ s center of mass.
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org08a3c55" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/gravimeter_decouple_jacobian.png" alt = "gravimeter_decouple_jacobian.png" / >
< / p >
< p > < span class = "figure-number" > Figure 4: < / span > Decoupled plant \(\bm{G}_x\) using the Jacobian matrix \(J\)< / p >
< / div >
< p >
The jacobian corresponding to the sensors and actuators are defined below.
< / p >
2020-09-30 17:16:30 +02:00
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > Ja = [1 0 h< span class = "org-type" > /< / span > 2
0 1 < span class = "org-type" > -< / span > l< span class = "org-type" > /< / span > 2
1 0 < span class = "org-type" > -< / span > h< span class = "org-type" > /< / span > 2
0 1 0];
Jt = [1 0 ha
0 1 < span class = "org-type" > -< / span > la
0 1 la];
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > Gx = pinv(Ja)< span class = "org-type" > *< / span > G< span class = "org-type" > *< / span > pinv(Jt< span class = "org-type" > '< / span > );
Gx.InputName = {< span class = "org-string" > 'Fx'< / span > , < span class = "org-string" > 'Fz'< / span > , < span class = "org-string" > 'My'< / span > };
Gx.OutputName = {< span class = "org-string" > 'Dx'< / span > , < span class = "org-string" > 'Dz'< / span > , < span class = "org-string" > 'Ry'< / span > };
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
< p >
2020-11-23 18:01:13 +01:00
The diagonal and off-diagonal elements of \(G_x\) are shown in Figure < a href = "#org0177a74" > 5< / a > .
2020-09-30 17:16:30 +02:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org0177a74" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/gravimeter_jacobian_plant.png" alt = "gravimeter_jacobian_plant.png" / >
2020-09-30 17:16:30 +02:00
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 5: < / span > Diagonal and off-diagonal elements of \(G_x\)< / p >
2020-09-30 17:16:30 +02:00
< / div >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-orgf6c4a25" class = "outline-3" >
< h3 id = "orgf6c4a25" > < span class = "section-number-3" > 1.5< / span > Real Approximation of \(G\) at the decoupling frequency< / h3 >
2020-10-05 18:06:49 +02:00
< div class = "outline-text-3" id = "text-1-5" >
2020-09-30 17:16:30 +02:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org00aca6c" > < / a >
2020-11-16 14:58:26 +01:00
< / p >
< p >
Let’ s compute a real approximation of the complex matrix \(H_1\) which corresponds to the the transfer function \(G_u(j\omega_c)\) from forces applied by the actuators to the measured acceleration of the top platform evaluated at the frequency \(\omega_c\).
2020-09-30 17:16:30 +02:00
< / p >
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > wc = 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > 10; < span class = "org-comment" > % Decoupling frequency [rad/s]< / span >
H1 = evalfr(G, < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc);
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
< p >
2020-11-16 14:58:26 +01:00
The real approximation is computed as follows:
2020-09-30 17:16:30 +02:00
< / p >
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > D = pinv(real(H1< span class = "org-type" > '*< / span > H1));
H1 = inv(D< span class = "org-type" > *< / span > real(H1< span class = "org-type" > '*< / span > diag(exp(< span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > angle(diag(H1< span class = "org-type" > *< / span > D< span class = "org-type" > *< / span > H1< span class = "org-type" > .'< / span > ))< span class = "org-type" > /< / span > 2))));
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
2020-11-16 14:58:26 +01:00
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< caption class = "t-above" > < span class = "table-number" > Table 1:< / span > Real approximate of \(G\) at the decoupling frequency \(\omega_c\)< / caption >
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > 0.0026< / td >
< td class = "org-right" > -3.7e-05< / td >
< td class = "org-right" > 3.7e-05< / td >
< / tr >
< tr >
< td class = "org-right" > 1.9e-10< / td >
< td class = "org-right" > 0.0025< / td >
< td class = "org-right" > 0.0025< / td >
< / tr >
< tr >
< td class = "org-right" > -0.0078< / td >
< td class = "org-right" > 0.0045< / td >
< td class = "org-right" > -0.0045< / td >
< / tr >
< / tbody >
< / table >
2020-09-30 17:16:30 +02:00
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org850bcb9" class = "outline-3" >
< h3 id = "org850bcb9" > < span class = "section-number-3" > 1.6< / span > SVD Decoupling< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-1-6" >
2020-10-05 18:28:44 +02:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org85886da" > < / a >
2020-10-05 18:28:44 +02:00
< / p >
2020-09-30 17:16:30 +02:00
2020-10-05 18:28:44 +02:00
< p >
2020-11-16 14:58:26 +01:00
First, the Singular Value Decomposition of \(H_1\) is performed:
\[ H_1 = U \Sigma V^H \]
2020-10-05 18:28:44 +02:00
< / p >
2020-11-16 14:58:26 +01:00
2020-10-05 18:28:44 +02:00
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > [U,< span class = "org-type" > ~< / span > ,V] = svd(H1);
2020-10-05 18:28:44 +02:00
< / pre >
< / div >
< p >
2020-11-23 18:01:13 +01:00
The obtained matrices \(U\) and \(V\) are used to decouple the system as shown in Figure < a href = "#org55bc905" > 6< / a > .
2020-10-05 18:28:44 +02:00
< / p >
2020-10-05 18:06:49 +02:00
2020-11-16 14:58:26 +01:00
2020-11-23 18:01:13 +01:00
< div id = "org55bc905" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/gravimeter_decouple_svd.png" alt = "gravimeter_decouple_svd.png" / >
2020-10-05 18:28:44 +02:00
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 6: < / span > Decoupled plant \(\bm{G}_{SVD}\) using the Singular Value Decomposition< / p >
2020-10-05 18:28:44 +02:00
< / div >
< p >
2020-11-16 14:58:26 +01:00
The decoupled plant is then:
\[ G_{SVD}(s) = U^{-1} G_u(s) V^{-H} \]
2020-10-05 18:28:44 +02:00
< / p >
2020-11-16 14:58:26 +01:00
2020-10-05 18:28:44 +02:00
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > Gsvd = inv(U)< span class = "org-type" > *< / span > G< span class = "org-type" > *< / span > inv(V< span class = "org-type" > '< / span > );
2020-10-05 18:28:44 +02:00
< / pre >
< / div >
2020-09-30 17:16:30 +02:00
2020-10-05 18:28:44 +02:00
< p >
2020-11-23 18:01:13 +01:00
The diagonal and off-diagonal elements of the “ SVD” plant are shown in Figure < a href = "#orgfeb8a07" > 7< / a > .
2020-10-05 18:28:44 +02:00
< / p >
2020-09-30 17:16:30 +02:00
2020-11-23 18:01:13 +01:00
< div id = "orgfeb8a07" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/gravimeter_svd_plant.png" alt = "gravimeter_svd_plant.png" / >
< / p >
< p > < span class = "figure-number" > Figure 7: < / span > Diagonal and off-diagonal elements of \(G_{svd}\)< / p >
< / div >
< / div >
< / div >
2020-09-30 17:16:30 +02:00
2020-11-23 18:01:13 +01:00
< div id = "outline-container-orgb4036b5" class = "outline-3" >
< h3 id = "orgb4036b5" > < span class = "section-number-3" > 1.7< / span > Verification of the decoupling using the “ Gershgorin Radii” < / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-1-7" >
< p >
2020-11-23 18:01:13 +01:00
< a id = "orgcd062a0" > < / a >
2020-11-16 14:58:26 +01:00
< / p >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
< p >
The “ Gershgorin Radii” is computed for the coupled plant \(G(s)\), for the “ Jacobian plant” \(G_x(s)\) and the “ SVD Decoupled Plant” \(G_{SVD}(s)\):
< / p >
2020-09-30 17:16:30 +02:00
2020-10-05 18:28:44 +02:00
< p >
2020-11-16 14:58:26 +01:00
The “ Gershgorin Radii” of a matrix \(S\) is defined by:
\[ \zeta_i(j\omega) = \frac{\sum\limits_{j\neq i}|S_{ij}(j\omega)|}{|S_{ii}(j\omega)|} \]
2020-10-05 18:28:44 +02:00
< / p >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
< p >
This is computed over the following frequencies.
< / p >
2020-10-05 18:28:44 +02:00
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > freqs = logspace(< span class = "org-type" > -< / span > 2, 2, 1000); < span class = "org-comment" > % [Hz]< / span >
2020-10-05 18:28:44 +02:00
< / pre >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "org0314de2" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/simscape_model_gershgorin_radii.png" alt = "simscape_model_gershgorin_radii.png" / >
< / p >
< p > < span class = "figure-number" > Figure 8: < / span > Gershgorin Radii of the Coupled and Decoupled plants< / p >
2020-09-30 17:16:30 +02:00
< / div >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org54e1362" class = "outline-3" >
< h3 id = "org54e1362" > < span class = "section-number-3" > 1.8< / span > Obtained Decoupled Plants< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-1-8" >
< p >
2020-11-23 18:01:13 +01:00
< a id = "orgf879bb8" > < / a >
2020-11-16 14:58:26 +01:00
< / p >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
< p >
2020-11-23 18:01:13 +01:00
The bode plot of the diagonal and off-diagonal elements of \(G_{SVD}\) are shown in Figure < a href = "#org8050d23" > 9< / a > .
2020-09-30 17:16:30 +02:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org8050d23" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/simscape_model_decoupled_plant_svd.png" alt = "simscape_model_decoupled_plant_svd.png" / >
< / p >
< p > < span class = "figure-number" > Figure 9: < / span > Decoupled Plant using SVD< / p >
2020-09-30 17:16:30 +02:00
< / div >
2020-11-16 14:58:26 +01:00
< p >
2020-11-23 18:01:13 +01:00
Similarly, the bode plots of the diagonal elements and off-diagonal elements of the decoupled plant \(G_x(s)\) using the Jacobian are shown in Figure < a href = "#orge87ae5f" > 10< / a > .
2020-11-16 14:58:26 +01:00
< / p >
2020-09-30 17:16:30 +02:00
2020-11-23 18:01:13 +01:00
< div id = "orge87ae5f" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/simscape_model_decoupled_plant_jacobian.png" alt = "simscape_model_decoupled_plant_jacobian.png" / >
< / p >
< p > < span class = "figure-number" > Figure 10: < / span > Gravimeter Platform Plant from forces (resp. torques) applied by the legs to the acceleration (resp. angular acceleration) of the platform as well as all the coupling terms between the two (non-diagonal terms of the transfer function matrix)< / p >
2020-09-30 17:16:30 +02:00
< / div >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org26917c3" class = "outline-3" >
< h3 id = "org26917c3" > < span class = "section-number-3" > 1.9< / span > Diagonal Controller< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-1-9" >
< p >
2020-11-23 18:01:13 +01:00
< a id = "org244fb34" > < / a >
The control diagram for the centralized control is shown in Figure < a href = "#orgccd3480" > 11< / a > .
2020-11-16 14:58:26 +01:00
< / p >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
< p >
The controller \(K_c\) is “ working” in an cartesian frame.
The Jacobian is used to convert forces in the cartesian frame to forces applied by the actuators.
< / p >
2020-09-30 17:16:30 +02:00
2020-11-23 18:01:13 +01:00
< div id = "orgccd3480" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/centralized_control.png" alt = "centralized_control.png" / >
< / p >
< p > < span class = "figure-number" > Figure 11: < / span > Control Diagram for the Centralized control< / p >
2020-09-30 17:16:30 +02:00
< / div >
2020-11-16 14:58:26 +01:00
< p >
2020-11-23 18:01:13 +01:00
The SVD control architecture is shown in Figure < a href = "#org6576aea" > 12< / a > .
2020-11-16 14:58:26 +01:00
The matrices \(U\) and \(V\) are used to decoupled the plant \(G\).
< / p >
2020-09-30 17:16:30 +02:00
2020-11-23 18:01:13 +01:00
< div id = "org6576aea" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/svd_control.png" alt = "svd_control.png" / >
< / p >
< p > < span class = "figure-number" > Figure 12: < / span > Control Diagram for the SVD control< / p >
2020-09-30 17:16:30 +02:00
< / div >
2020-11-16 14:58:26 +01:00
< p >
We choose the controller to be a low pass filter:
\[ K_c(s) = \frac{G_0}{1 + \frac{s}{\omega_0}} \]
< / p >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
< p >
\(G_0\) is tuned such that the crossover frequency corresponding to the diagonal terms of the loop gain is equal to \(\omega_c\)
< / p >
2020-09-30 17:16:30 +02:00
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > wc = 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > 80; < span class = "org-comment" > % Crossover Frequency [rad/s]< / span >
w0 = 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > 0.1; < span class = "org-comment" > % Controller Pole [rad/s]< / span >
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > K_cen = diag(1< span class = "org-type" > ./< / span > diag(abs(evalfr(Gx, < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc))))< span class = "org-type" > *< / span > (1< span class = "org-type" > /< / span > abs(evalfr(1< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0), < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc)))< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0);
L_cen = K_cen< span class = "org-type" > *< / span > Gx;
G_cen = feedback(G, pinv(J< span class = "org-type" > '< / span > )< span class = "org-type" > *< / span > K_cen, [7< span class = "org-type" > :< / span > 12], [1< span class = "org-type" > :< / span > 6]);
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > K_svd = diag(1< span class = "org-type" > ./< / span > diag(abs(evalfr(Gsvd, < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc))))< span class = "org-type" > *< / span > (1< span class = "org-type" > /< / span > abs(evalfr(1< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0), < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc)))< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0);
L_svd = K_svd< span class = "org-type" > *< / span > Gsvd;
G_svd = feedback(G, inv(V< span class = "org-type" > '< / span > )< span class = "org-type" > *< / span > K_svd< span class = "org-type" > *< / span > inv(U), [7< span class = "org-type" > :< / span > 12], [1< span class = "org-type" > :< / span > 6]);
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
2020-11-16 14:58:26 +01:00
< p >
2020-11-23 18:01:13 +01:00
The obtained diagonal elements of the loop gains are shown in Figure < a href = "#orgb2b6eea" > 13< / a > .
2020-11-16 14:58:26 +01:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "orgb2b6eea" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/gravimeter_comp_loop_gain_diagonal.png" alt = "gravimeter_comp_loop_gain_diagonal.png" / >
< / p >
< p > < span class = "figure-number" > Figure 13: < / span > Comparison of the diagonal elements of the loop gains for the SVD control architecture and the Jacobian one< / p >
2020-09-30 17:16:30 +02:00
< / div >
< / div >
2020-09-21 13:08:36 +02:00
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-orge573ff6" class = "outline-3" >
< h3 id = "orge573ff6" > < span class = "section-number-3" > 1.10< / span > Closed-Loop system Performances< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-1-10" >
2020-09-21 13:08:36 +02:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org18928c3" > < / a >
2020-09-30 17:16:30 +02:00
< / p >
< p >
2020-11-16 14:58:26 +01:00
Let’ s first verify the stability of the closed-loop systems:
2020-09-30 17:16:30 +02:00
< / p >
< div class = "org-src-container" >
2020-11-16 14:58:26 +01:00
< pre class = "src src-matlab" > isstable(G_cen)
< / pre >
< / div >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
< pre class = "example" >
ans =
logical
1
< / pre >
2020-09-30 17:16:30 +02:00
2020-11-16 14:58:26 +01:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > isstable(G_svd)
2020-09-30 17:16:30 +02:00
< / pre >
< / div >
2020-11-16 14:58:26 +01:00
< pre class = "example" >
ans =
logical
1
< / pre >
2020-09-30 17:16:30 +02:00
< p >
2020-11-23 18:01:13 +01:00
The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure < a href = "#org25d5c08" > 14< / a > .
2020-09-30 17:16:30 +02:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org25d5c08" class = "figure" >
2020-11-16 14:58:26 +01:00
< p > < img src = "figs/gravimeter_platform_simscape_cl_transmissibility.png" alt = "gravimeter_platform_simscape_cl_transmissibility.png" / >
< / p >
< p > < span class = "figure-number" > Figure 14: < / span > Obtained Transmissibility< / p >
2020-09-30 17:16:30 +02:00
< / div >
< / div >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-orgb4d9d19" class = "outline-2" >
< h2 id = "orgb4d9d19" > < span class = "section-number-2" > 2< / span > Stewart Platform - Simscape Model< / h2 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-2" id = "text-2" >
2020-09-30 17:16:30 +02:00
< p >
2020-11-23 18:01:13 +01:00
In this analysis, we wish to applied SVD control to the Stewart Platform shown in Figure < a href = "#org6082884" > 15< / a > .
2020-09-21 13:08:36 +02:00
< / p >
2020-11-06 16:59:03 +01:00
< p >
Some notes about the system:
< / p >
< ul class = "org-ul" >
< li > 6 voice coils actuators are used to control the motion of the top platform.< / li >
< li > the motion of the top platform is measured with a 6-axis inertial unit (3 acceleration + 3 angular accelerations)< / li >
< li > the control objective is to isolate the top platform from vibrations coming from the bottom platform< / li >
< / ul >
2020-09-21 13:08:36 +02:00
2020-11-23 18:01:13 +01:00
< div id = "org6082884" class = "figure" >
2020-11-06 11:59:09 +01:00
< p > < img src = "figs/SP_assembly.png" alt = "SP_assembly.png" / >
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 15: < / span > Stewart Platform CAD View< / p >
2020-09-21 13:08:36 +02:00
< / div >
2020-11-06 11:59:09 +01:00
< p >
The analysis of the SVD control applied to the Stewart platform is performed in the following sections:
< / p >
< ul class = "org-ul" >
2020-11-23 18:01:13 +01:00
< li > Section < a href = "#orgc34b644" > 2.1< / a > : The parameters of the Simscape model of the Stewart platform are defined< / li >
< li > Section < a href = "#org4dd4aa8" > 2.2< / a > : The plant is identified from the Simscape model and the system coupling is shown< / li >
< li > Section < a href = "#org958ba75" > 2.3< / a > : The plant is first decoupled using the Jacobian< / li >
< li > Section < a href = "#org2cabea8" > 2.4< / a > : A real approximation of the plant is computed for further decoupling using the Singular Value Decomposition (SVD)< / li >
< li > Section < a href = "#orga695d46" > 2.5< / a > : The decoupling is performed thanks to the SVD< / li >
< li > Section < a href = "#orgcd062a0" > 1.7< / a > : The effectiveness of the decoupling with the Jacobian and SVD are compared using the Gershorin Radii< / li >
< li > Section < a href = "#org2c91af2" > 2.8< / a > : The dynamics of the decoupled plants are shown< / li >
< li > Section < a href = "#orgb78ff99" > 2.9< / a > : A diagonal controller is defined to control the decoupled plant< / li >
< li > Section < a href = "#org5abf7ce" > 2.10< / a > : Finally, the closed loop system properties are studied< / li >
2020-11-06 11:59:09 +01:00
< / ul >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org1066cea" class = "outline-3" >
< h3 id = "org1066cea" > < span class = "section-number-3" > 2.1< / span > Simscape Model - Parameters< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-2-1" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "orgc34b644" > < / a >
2020-11-06 11:59:09 +01:00
< / p >
2020-09-21 13:08:36 +02:00
< div class = "org-src-container" >
2020-10-13 15:01:42 +02:00
< pre class = "src src-matlab" > open(< span class = "org-string" > 'drone_platform.slx'< / span > );
2020-09-21 13:08:36 +02:00
< / pre >
< / div >
< p >
2020-11-06 16:59:03 +01:00
Definition of spring parameters:
2020-09-21 13:08:36 +02:00
< / p >
< div class = "org-src-container" >
2020-10-13 15:01:42 +02:00
< pre class = "src src-matlab" > kx = 0.5< span class = "org-type" > *< / span > 1e3< span class = "org-type" > /< / span > 3; < span class = "org-comment" > % [N/m]< / span >
ky = 0.5< span class = "org-type" > *< / span > 1e3< span class = "org-type" > /< / span > 3;
kz = 1e3< span class = "org-type" > /< / span > 3;
2020-09-21 13:08:36 +02:00
2020-10-05 18:06:49 +02:00
cx = 0.025; < span class = "org-comment" > % [Nm/rad]< / span >
2020-09-21 13:08:36 +02:00
cy = 0.025;
cz = 0.025;
< / pre >
< / div >
2020-11-23 18:01:13 +01:00
< p >
We suppose the sensor is perfectly positioned.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > sens_pos_error = zeros(3,1);
< / pre >
< / div >
2020-09-21 13:08:36 +02:00
< p >
2020-11-06 11:59:09 +01:00
Gravity:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > g = 0;
< / pre >
< / div >
< p >
2020-11-06 16:59:03 +01:00
We load the Jacobian (previously computed from the geometry):
2020-09-21 13:08:36 +02:00
< / p >
< div class = "org-src-container" >
2020-11-23 18:01:13 +01:00
< pre class = "src src-matlab" > load(< span class = "org-string" > 'jacobian.mat'< / span > , < span class = "org-string" > 'Aa'< / span > , < span class = "org-string" > 'Ab'< / span > , < span class = "org-string" > 'As'< / span > , < span class = "org-string" > 'l'< / span > , < span class = "org-string" > 'J'< / span > );
2020-09-21 13:08:36 +02:00
< / pre >
< / div >
2020-11-06 15:06:25 +01:00
< p >
We initialize other parameters:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > U = eye(6);
V = eye(6);
Kc = tf(zeros(6));
< / pre >
< / div >
2020-11-06 17:02:58 +01:00
2020-11-23 18:01:13 +01:00
< div id = "orgd582e26" class = "figure" >
2020-11-06 17:02:58 +01:00
< p > < img src = "figs/stewart_simscape.png" alt = "stewart_simscape.png" / >
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 16: < / span > General view of the Simscape Model< / p >
2020-11-06 17:02:58 +01:00
< / div >
2020-11-23 18:01:13 +01:00
< div id = "orga3a63d0" class = "figure" >
2020-11-06 17:02:58 +01:00
< p > < img src = "figs/stewart_platform_details.png" alt = "stewart_platform_details.png" / >
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 17: < / span > Simscape model of the Stewart platform< / p >
2020-11-06 17:02:58 +01:00
< / div >
2020-09-21 18:03:40 +02:00
< / div >
< / div >
2020-09-21 13:08:36 +02:00
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org57d9045" class = "outline-3" >
< h3 id = "org57d9045" > < span class = "section-number-3" > 2.2< / span > Identification of the plant< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-2-2" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org4dd4aa8" > < / a >
2020-11-06 16:59:03 +01:00
< / p >
< p >
2020-11-23 18:01:13 +01:00
The plant shown in Figure < a href = "#orgcd356a6" > 18< / a > is identified from the Simscape model.
2020-11-06 16:59:03 +01:00
< / p >
< p >
The inputs are:
2020-11-06 11:59:09 +01:00
< / p >
2020-11-06 16:59:03 +01:00
< ul class = "org-ul" >
< li > \(D_w\) translation and rotation of the bottom platform (with respect to the center of mass of the top platform)< / li >
< li > \(\tau\) the 6 forces applied by the voice coils< / li >
< / ul >
2020-11-06 11:59:09 +01:00
2020-09-21 13:08:36 +02:00
< p >
2020-11-06 16:59:03 +01:00
The outputs are the 6 accelerations measured by the inertial unit.
2020-09-21 13:08:36 +02:00
< / p >
2020-11-06 16:59:03 +01:00
2020-11-23 18:01:13 +01:00
< div id = "orgcd356a6" class = "figure" >
2020-11-06 16:59:03 +01:00
< p > < img src = "figs/stewart_platform_plant.png" alt = "stewart_platform_plant.png" / >
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 18: < / span > Considered plant \(\bm{G} = \begin{bmatrix}G_d\\G_u\end{bmatrix}\). \(D_w\) is the translation/rotation of the support, \(\tau\) the actuator forces, \(a\) the acceleration/angular acceleration of the top platform< / p >
2020-11-06 16:59:03 +01:00
< / div >
2020-09-21 13:08:36 +02:00
< div class = "org-src-container" >
2020-10-05 18:06:49 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > < span class = "org-comment" > %% Name of the Simulink File< / span > < / span >
mdl = < span class = "org-string" > 'drone_platform'< / span > ;
2020-09-21 13:08:36 +02:00
2020-10-05 18:06:49 +02:00
< span class = "org-matlab-cellbreak" > < span class = "org-comment" > %% Input/Output definition< / span > < / span >
2020-09-21 13:08:36 +02:00
clear io; io_i = 1;
2020-11-06 16:59:03 +01:00
io(io_i) = linio([mdl, < span class = "org-string" > '/Dw'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1; < span class = "org-comment" > % Ground Motion< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/V-T'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1; < span class = "org-comment" > % Actuator Forces< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/Inertial Sensor'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-type" > +< / span > 1; < span class = "org-comment" > % Top platform acceleration< / span >
2020-09-21 13:08:36 +02:00
G = linearize(mdl, io);
2020-10-05 18:06:49 +02:00
G.InputName = {< span class = "org-string" > 'Dwx'< / span > , < span class = "org-string" > 'Dwy'< / span > , < span class = "org-string" > 'Dwz'< / span > , < span class = "org-string" > 'Rwx'< / span > , < span class = "org-string" > 'Rwy'< / span > , < span class = "org-string" > 'Rwz'< / span > , ...
< span class = "org-string" > 'F1'< / span > , < span class = "org-string" > 'F2'< / span > , < span class = "org-string" > 'F3'< / span > , < span class = "org-string" > 'F4'< / span > , < span class = "org-string" > 'F5'< / span > , < span class = "org-string" > 'F6'< / span > };
G.OutputName = {< span class = "org-string" > 'Ax'< / span > , < span class = "org-string" > 'Ay'< / span > , < span class = "org-string" > 'Az'< / span > , < span class = "org-string" > 'Arx'< / span > , < span class = "org-string" > 'Ary'< / span > , < span class = "org-string" > 'Arz'< / span > };
2020-11-09 14:37:04 +01:00
< span class = "org-comment" > % Plant< / span >
Gu = G(< span class = "org-type" > :< / span > , {< span class = "org-string" > 'F1'< / span > , < span class = "org-string" > 'F2'< / span > , < span class = "org-string" > 'F3'< / span > , < span class = "org-string" > 'F4'< / span > , < span class = "org-string" > 'F5'< / span > , < span class = "org-string" > 'F6'< / span > });
< span class = "org-comment" > % Disturbance dynamics< / span >
Gd = G(< span class = "org-type" > :< / span > , {< span class = "org-string" > 'Dwx'< / span > , < span class = "org-string" > 'Dwy'< / span > , < span class = "org-string" > 'Dwz'< / span > , < span class = "org-string" > 'Rwx'< / span > , < span class = "org-string" > 'Rwy'< / span > , < span class = "org-string" > 'Rwz'< / span > });
2020-09-21 13:08:36 +02:00
< / pre >
< / div >
2020-09-21 18:03:40 +02:00
< p >
There are 24 states (6dof for the bottom platform + 6dof for the top platform).
< / p >
2020-09-21 13:14:25 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > size(G)
< / pre >
< / div >
< pre class = "example" >
2020-09-21 18:03:40 +02:00
State-space model with 6 outputs, 12 inputs, and 24 states.
2020-09-21 13:14:25 +02:00
< / pre >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
The elements of the transfer matrix \(\bm{G}\) corresponding to the transfer function from actuator forces \(\tau\) to the measured acceleration \(a\) are shown in Figure < a href = "#orgec39a5e" > 19< / a > .
2020-11-06 11:59:09 +01:00
< / p >
2020-11-06 16:59:03 +01:00
< p >
One can easily see that the system is strongly coupled.
2020-11-06 11:59:09 +01:00
< / p >
2020-09-21 18:03:40 +02:00
2020-11-06 16:59:03 +01:00
2020-11-23 18:01:13 +01:00
< div id = "orgec39a5e" class = "figure" >
2020-11-06 16:59:03 +01:00
< p > < img src = "figs/stewart_platform_coupled_plant.png" alt = "stewart_platform_coupled_plant.png" / >
2020-09-21 13:08:36 +02:00
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 19: < / span > Magnitude of all 36 elements of the transfer function matrix \(G_u\)< / p >
2020-09-21 13:08:36 +02:00
< / div >
2020-09-21 18:03:40 +02:00
< / div >
< / div >
2020-09-21 13:08:36 +02:00
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org81abdfe" class = "outline-3" >
< h3 id = "org81abdfe" > < span class = "section-number-3" > 2.3< / span > Physical Decoupling using the Jacobian< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-2-3" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org958ba75" > < / a >
Consider the control architecture shown in Figure < a href = "#org6474419" > 20< / a > .
2020-11-06 16:59:03 +01:00
The Jacobian matrix is used to transform forces/torques applied on the top platform to the equivalent forces applied by each actuator.
2020-11-06 11:59:09 +01:00
< / p >
2020-09-21 13:08:36 +02:00
2020-11-23 18:01:13 +01:00
< p >
The Jacobian matrix is computed from the geometry of the platform (position and orientation of the actuators).
< / p >
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< caption class = "t-above" > < span class = "table-number" > Table 2:< / span > Computed Jacobian Matrix< / caption >
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
2020-11-06 11:59:09 +01:00
2020-11-23 18:01:13 +01:00
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > 0.811< / td >
< td class = "org-right" > 0.0< / td >
< td class = "org-right" > 0.584< / td >
< td class = "org-right" > -0.018< / td >
< td class = "org-right" > -0.008< / td >
< td class = "org-right" > 0.025< / td >
< / tr >
< tr >
< td class = "org-right" > -0.406< / td >
< td class = "org-right" > -0.703< / td >
< td class = "org-right" > 0.584< / td >
< td class = "org-right" > -0.016< / td >
< td class = "org-right" > -0.012< / td >
< td class = "org-right" > -0.025< / td >
< / tr >
< tr >
< td class = "org-right" > -0.406< / td >
< td class = "org-right" > 0.703< / td >
< td class = "org-right" > 0.584< / td >
< td class = "org-right" > 0.016< / td >
< td class = "org-right" > -0.012< / td >
< td class = "org-right" > 0.025< / td >
< / tr >
< tr >
< td class = "org-right" > 0.811< / td >
< td class = "org-right" > 0.0< / td >
< td class = "org-right" > 0.584< / td >
< td class = "org-right" > 0.018< / td >
< td class = "org-right" > -0.008< / td >
< td class = "org-right" > -0.025< / td >
< / tr >
< tr >
< td class = "org-right" > -0.406< / td >
< td class = "org-right" > -0.703< / td >
< td class = "org-right" > 0.584< / td >
< td class = "org-right" > 0.002< / td >
< td class = "org-right" > 0.019< / td >
< td class = "org-right" > 0.025< / td >
< / tr >
< tr >
< td class = "org-right" > -0.406< / td >
< td class = "org-right" > 0.703< / td >
< td class = "org-right" > 0.584< / td >
< td class = "org-right" > -0.002< / td >
< td class = "org-right" > 0.019< / td >
< td class = "org-right" > -0.025< / td >
< / tr >
< / tbody >
< / table >
< div id = "org6474419" class = "figure" >
2020-11-06 16:59:03 +01:00
< p > < img src = "figs/plant_decouple_jacobian.png" alt = "plant_decouple_jacobian.png" / >
2020-09-21 13:08:36 +02:00
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 20: < / span > Decoupled plant \(\bm{G}_x\) using the Jacobian matrix \(J\)< / p >
2020-09-21 13:08:36 +02:00
< / div >
2020-11-06 16:59:03 +01:00
< p >
We define a new plant:
\[ G_x(s) = G(s) J^{-T} \]
< / p >
2020-09-21 13:08:36 +02:00
2020-11-06 16:59:03 +01:00
< p >
\(G_x(s)\) correspond to the transfer function from forces and torques applied to the top platform to the absolute acceleration of the top platform.
2020-09-21 13:08:36 +02:00
< / p >
2020-11-06 16:59:03 +01:00
< div class = "org-src-container" >
2020-11-09 14:37:04 +01:00
< pre class = "src src-matlab" > Gx = Gu< span class = "org-type" > *< / span > inv(J< span class = "org-type" > '< / span > );
Gx.InputName = {< span class = "org-string" > 'Fx'< / span > , < span class = "org-string" > 'Fy'< / span > , < span class = "org-string" > 'Fz'< / span > , < span class = "org-string" > 'Mx'< / span > , < span class = "org-string" > 'My'< / span > , < span class = "org-string" > 'Mz'< / span > };
2020-11-06 16:59:03 +01:00
< / pre >
2020-11-06 11:59:09 +01:00
< / div >
2020-09-21 13:08:36 +02:00
< / div >
< / div >
2020-09-21 18:03:40 +02:00
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org1a7fde2" class = "outline-3" >
< h3 id = "org1a7fde2" > < span class = "section-number-3" > 2.4< / span > Real Approximation of \(G\) at the decoupling frequency< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-2-4" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org2cabea8" > < / a >
2020-09-21 18:03:40 +02:00
< / p >
< p >
2020-11-09 14:37:04 +01:00
Let’ s compute a real approximation of the complex matrix \(H_1\) which corresponds to the the transfer function \(G_u(j\omega_c)\) from forces applied by the actuators to the measured acceleration of the top platform evaluated at the frequency \(\omega_c\).
2020-09-21 18:03:40 +02:00
< / p >
< div class = "org-src-container" >
2020-11-06 11:59:09 +01:00
< pre class = "src src-matlab" > wc = 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > 30; < span class = "org-comment" > % Decoupling frequency [rad/s]< / span >
2020-09-21 18:03:40 +02:00
2020-11-09 14:37:04 +01:00
H1 = evalfr(Gu, < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc);
2020-09-21 18:03:40 +02:00
< / pre >
< / div >
< p >
The real approximation is computed as follows:
< / p >
< div class = "org-src-container" >
2020-10-05 18:06:49 +02:00
< pre class = "src src-matlab" > D = pinv(real(H1< span class = "org-type" > '*< / span > H1));
H1 = inv(D< span class = "org-type" > *< / span > real(H1< span class = "org-type" > '*< / span > diag(exp(< span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > angle(diag(H1< span class = "org-type" > *< / span > D< span class = "org-type" > *< / span > H1< span class = "org-type" > .'< / span > ))< span class = "org-type" > /< / span > 2))));
2020-09-21 18:03:40 +02:00
< / pre >
< / div >
2020-11-06 11:59:09 +01:00
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
2020-11-23 18:01:13 +01:00
< caption class = "t-above" > < span class = "table-number" > Table 3:< / span > Real approximate of \(G\) at the decoupling frequency \(\omega_c\)< / caption >
2020-11-06 11:59:09 +01:00
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > 4.4< / td >
< td class = "org-right" > -2.1< / td >
< td class = "org-right" > -2.1< / td >
< td class = "org-right" > 4.4< / td >
< td class = "org-right" > -2.4< / td >
< td class = "org-right" > -2.4< / td >
< / tr >
< tr >
< td class = "org-right" > -0.2< / td >
< td class = "org-right" > -3.9< / td >
< td class = "org-right" > 3.9< / td >
< td class = "org-right" > 0.2< / td >
< td class = "org-right" > -3.8< / td >
< td class = "org-right" > 3.8< / td >
< / tr >
< tr >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< / tr >
< tr >
< td class = "org-right" > -367.1< / td >
< td class = "org-right" > -323.8< / td >
< td class = "org-right" > 323.8< / td >
< td class = "org-right" > 367.1< / td >
< td class = "org-right" > 43.3< / td >
< td class = "org-right" > -43.3< / td >
< / tr >
< tr >
< td class = "org-right" > -162.0< / td >
< td class = "org-right" > -237.0< / td >
< td class = "org-right" > -237.0< / td >
< td class = "org-right" > -162.0< / td >
< td class = "org-right" > 398.9< / td >
< td class = "org-right" > 398.9< / td >
< / tr >
< tr >
< td class = "org-right" > 220.6< / td >
< td class = "org-right" > -220.6< / td >
< td class = "org-right" > 220.6< / td >
< td class = "org-right" > -220.6< / td >
< td class = "org-right" > 220.6< / td >
< td class = "org-right" > -220.6< / td >
< / tr >
< / tbody >
< / table >
< p >
2020-11-09 14:37:04 +01:00
Note that the plant \(G_u\) at \(\omega_c\) is already an almost real matrix.
2020-11-06 11:59:09 +01:00
This can be seen on the Bode plots where the phase is close to 1.
2020-11-09 14:37:04 +01:00
This can be verified below where only the real value of \(G_u(\omega_c)\) is shown
2020-11-06 11:59:09 +01:00
< / p >
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
2020-11-23 18:01:13 +01:00
< caption class = "t-above" > < span class = "table-number" > Table 4:< / span > Real part of \(G\) at the decoupling frequency \(\omega_c\)< / caption >
2020-11-06 11:59:09 +01:00
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > 4.4< / td >
< td class = "org-right" > -2.1< / td >
< td class = "org-right" > -2.1< / td >
< td class = "org-right" > 4.4< / td >
< td class = "org-right" > -2.4< / td >
< td class = "org-right" > -2.4< / td >
< / tr >
< tr >
< td class = "org-right" > -0.2< / td >
< td class = "org-right" > -3.9< / td >
< td class = "org-right" > 3.9< / td >
< td class = "org-right" > 0.2< / td >
< td class = "org-right" > -3.8< / td >
< td class = "org-right" > 3.8< / td >
< / tr >
< tr >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< td class = "org-right" > 3.4< / td >
< / tr >
< tr >
< td class = "org-right" > -367.1< / td >
< td class = "org-right" > -323.8< / td >
< td class = "org-right" > 323.8< / td >
< td class = "org-right" > 367.1< / td >
< td class = "org-right" > 43.3< / td >
< td class = "org-right" > -43.3< / td >
< / tr >
< tr >
< td class = "org-right" > -162.0< / td >
< td class = "org-right" > -237.0< / td >
< td class = "org-right" > -237.0< / td >
< td class = "org-right" > -162.0< / td >
< td class = "org-right" > 398.9< / td >
< td class = "org-right" > 398.9< / td >
< / tr >
< tr >
< td class = "org-right" > 220.6< / td >
< td class = "org-right" > -220.6< / td >
< td class = "org-right" > 220.6< / td >
< td class = "org-right" > -220.6< / td >
< td class = "org-right" > 220.6< / td >
< td class = "org-right" > -220.6< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org8b0f922" class = "outline-3" >
< h3 id = "org8b0f922" > < span class = "section-number-3" > 2.5< / span > SVD Decoupling< / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-2-5" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "orga695d46" > < / a >
2020-11-06 11:59:09 +01:00
< / p >
2020-09-21 18:03:40 +02:00
< p >
First, the Singular Value Decomposition of \(H_1\) is performed:
\[ H_1 = U \Sigma V^H \]
< / p >
< div class = "org-src-container" >
2020-11-09 14:37:04 +01:00
< pre class = "src src-matlab" > [U,< span class = "org-type" > ~< / span > ,V] = svd(H1);
2020-09-21 18:03:40 +02:00
< / pre >
< / div >
2020-11-23 18:01:13 +01:00
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< caption class = "t-above" > < span class = "table-number" > Table 5:< / span > Obtained matrix \(U\)< / caption >
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > -0.005< / td >
< td class = "org-right" > 7e-06< / td >
< td class = "org-right" > 6e-11< / td >
< td class = "org-right" > -3e-06< / td >
< td class = "org-right" > -1< / td >
< td class = "org-right" > 0.1< / td >
< / tr >
< tr >
< td class = "org-right" > -7e-06< / td >
< td class = "org-right" > -0.005< / td >
< td class = "org-right" > -9e-09< / td >
< td class = "org-right" > -5e-09< / td >
< td class = "org-right" > -0.1< / td >
< td class = "org-right" > -1< / td >
< / tr >
< tr >
< td class = "org-right" > 4e-08< / td >
< td class = "org-right" > -2e-10< / td >
< td class = "org-right" > -6e-11< / td >
< td class = "org-right" > -1< / td >
< td class = "org-right" > 3e-06< / td >
< td class = "org-right" > -3e-07< / td >
< / tr >
< tr >
< td class = "org-right" > -0.002< / td >
< td class = "org-right" > -1< / td >
< td class = "org-right" > -5e-06< / td >
< td class = "org-right" > 2e-10< / td >
< td class = "org-right" > 0.0006< / td >
< td class = "org-right" > 0.005< / td >
< / tr >
< tr >
< td class = "org-right" > 1< / td >
< td class = "org-right" > -0.002< / td >
< td class = "org-right" > -1e-08< / td >
< td class = "org-right" > 2e-08< / td >
< td class = "org-right" > -0.005< / td >
< td class = "org-right" > 0.0006< / td >
< / tr >
< tr >
< td class = "org-right" > -4e-09< / td >
< td class = "org-right" > 5e-06< / td >
< td class = "org-right" > -1< / td >
< td class = "org-right" > 6e-11< / td >
< td class = "org-right" > -2e-09< / td >
< td class = "org-right" > -1e-08< / td >
< / tr >
< / tbody >
< / table >
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< caption class = "t-above" > < span class = "table-number" > Table 6:< / span > Obtained matrix \(V\)< / caption >
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > -0.2< / td >
< td class = "org-right" > 0.5< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > -0.6< / td >
< td class = "org-right" > -0.2< / td >
< / tr >
< tr >
< td class = "org-right" > -0.3< / td >
< td class = "org-right" > 0.5< / td >
< td class = "org-right" > 0.4< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > 0.5< / td >
< td class = "org-right" > 0.3< / td >
< / tr >
< tr >
< td class = "org-right" > -0.3< / td >
< td class = "org-right" > -0.5< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > 0.4< / td >
< td class = "org-right" > -0.4< / td >
< / tr >
< tr >
< td class = "org-right" > -0.2< / td >
< td class = "org-right" > -0.5< / td >
< td class = "org-right" > 0.4< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > -0.5< / td >
< td class = "org-right" > 0.3< / td >
< / tr >
< tr >
< td class = "org-right" > 0.6< / td >
< td class = "org-right" > -0.06< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > 0.1< / td >
< td class = "org-right" > 0.6< / td >
< / tr >
< tr >
< td class = "org-right" > 0.6< / td >
< td class = "org-right" > 0.06< / td >
< td class = "org-right" > 0.4< / td >
< td class = "org-right" > -0.4< / td >
< td class = "org-right" > -0.006< / td >
< td class = "org-right" > -0.6< / td >
< / tr >
< / tbody >
< / table >
2020-09-21 18:03:40 +02:00
< p >
2020-11-23 18:01:13 +01:00
The obtained matrices \(U\) and \(V\) are used to decouple the system as shown in Figure < a href = "#org29c0d28" > 21< / a > .
2020-09-21 18:03:40 +02:00
< / p >
2020-11-06 16:59:03 +01:00
2020-11-23 18:01:13 +01:00
< div id = "org29c0d28" class = "figure" >
2020-11-06 16:59:03 +01:00
< p > < img src = "figs/plant_decouple_svd.png" alt = "plant_decouple_svd.png" / >
2020-09-21 18:03:40 +02:00
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 21: < / span > Decoupled plant \(\bm{G}_{SVD}\) using the Singular Value Decomposition< / p >
2020-09-21 18:03:40 +02:00
< / div >
2020-09-21 18:54:41 +02:00
< p >
2020-11-06 16:59:03 +01:00
The decoupled plant is then:
2020-11-09 14:37:04 +01:00
\[ G_{SVD}(s) = U^{-1} G_u(s) V^{-H} \]
2020-09-21 18:54:41 +02:00
< / p >
2020-11-09 14:37:04 +01:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > Gsvd = inv(U)< span class = "org-type" > *< / span > Gu< span class = "org-type" > *< / span > inv(V< span class = "org-type" > '< / span > );
< / pre >
< / div >
2020-11-06 16:59:03 +01:00
< / div >
2020-09-21 18:03:40 +02:00
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-orga02b880" class = "outline-3" >
< h3 id = "orga02b880" > < span class = "section-number-3" > 2.6< / span > Verification of the decoupling using the “ Gershgorin Radii” < / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-2-6" >
2020-09-21 18:54:41 +02:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org7913d80" > < / a >
2020-09-21 18:54:41 +02:00
< / p >
2020-09-21 18:03:40 +02:00
2020-11-06 16:59:03 +01:00
< p >
The “ Gershgorin Radii” is computed for the coupled plant \(G(s)\), for the “ Jacobian plant” \(G_x(s)\) and the “ SVD Decoupled Plant” \(G_{SVD}(s)\):
< / p >
2020-09-21 18:54:41 +02:00
2020-11-09 14:37:04 +01:00
< p >
The “ Gershgorin Radii” of a matrix \(S\) is defined by:
\[ \zeta_i(j\omega) = \frac{\sum\limits_{j\neq i}|S_{ij}(j\omega)|}{|S_{ii}(j\omega)|} \]
< / p >
2020-09-21 18:54:41 +02:00
< p >
2020-11-06 16:59:03 +01:00
This is computed over the following frequencies.
2020-09-21 18:54:41 +02:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org12751c9" class = "figure" >
2020-09-21 18:54:41 +02:00
< p > < img src = "figs/simscape_model_gershgorin_radii.png" alt = "simscape_model_gershgorin_radii.png" / >
< / p >
2020-11-16 14:58:26 +01:00
< p > < span class = "figure-number" > Figure 22: < / span > Gershgorin Radii of the Coupled and Decoupled plants< / p >
2020-09-21 18:54:41 +02:00
< / div >
2020-09-21 18:03:40 +02:00
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org4813b1f" class = "outline-3" >
< h3 id = "org4813b1f" > < span class = "section-number-3" > 2.7< / span > Verification of the decoupling using the “ Relative Gain Array” < / h3 >
2020-11-16 14:58:26 +01:00
< div class = "outline-text-3" id = "text-2-7" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
The relative gain array (RGA) is defined as:
< / p >
\begin{equation}
\Lambda\big(G(s)\big) = G(s) \times \big( G(s)^{-1} \big)^T
\end{equation}
< p >
where \(\times\) denotes an element by element multiplication and \(G(s)\) is an \(n \times n\) square transfer matrix.
2020-11-06 11:59:09 +01:00
< / p >
2020-09-21 18:03:40 +02:00
< p >
2020-11-23 18:01:13 +01:00
The obtained RGA elements are shown in Figure < a href = "#org533cc25" > 23< / a > .
2020-09-21 18:03:40 +02:00
< / p >
2020-09-21 18:54:41 +02:00
2020-11-23 18:01:13 +01:00
< div id = "org533cc25" class = "figure" >
< p > < img src = "figs/simscape_model_rga.png" alt = "simscape_model_rga.png" / >
< / p >
< p > < span class = "figure-number" > Figure 23: < / span > Obtained norm of RGA elements for the SVD decoupled plant and the Jacobian decoupled plant< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org82cfc11" class = "outline-3" >
< h3 id = "org82cfc11" > < span class = "section-number-3" > 2.8< / span > Obtained Decoupled Plants< / h3 >
< div class = "outline-text-3" id = "text-2-8" >
< p >
< a id = "org2c91af2" > < / a >
< / p >
< p >
The bode plot of the diagonal and off-diagonal elements of \(G_{SVD}\) are shown in Figure < a href = "#org8050d23" > 9< / a > .
< / p >
< div id = "orgdd63a35" class = "figure" >
2020-09-21 18:54:41 +02:00
< p > < img src = "figs/simscape_model_decoupled_plant_svd.png" alt = "simscape_model_decoupled_plant_svd.png" / >
< / p >
2020-11-23 18:01:13 +01:00
< p > < span class = "figure-number" > Figure 24: < / span > Decoupled Plant using SVD< / p >
2020-09-21 18:54:41 +02:00
< / div >
2020-11-06 16:59:03 +01:00
< p >
2020-11-23 18:01:13 +01:00
Similarly, the bode plots of the diagonal elements and off-diagonal elements of the decoupled plant \(G_x(s)\) using the Jacobian are shown in Figure < a href = "#orge87ae5f" > 10< / a > .
2020-11-06 16:59:03 +01:00
< / p >
2020-09-21 18:54:41 +02:00
2020-11-23 18:01:13 +01:00
< div id = "org7ff32b4" class = "figure" >
2020-09-21 18:54:41 +02:00
< p > < img src = "figs/simscape_model_decoupled_plant_jacobian.png" alt = "simscape_model_decoupled_plant_jacobian.png" / >
< / p >
2020-11-23 18:01:13 +01:00
< p > < span class = "figure-number" > Figure 25: < / span > Stewart Platform Plant from forces (resp. torques) applied by the legs to the acceleration (resp. angular acceleration) of the platform as well as all the coupling terms between the two (non-diagonal terms of the transfer function matrix)< / p >
2020-09-21 18:54:41 +02:00
< / div >
2020-09-21 18:03:40 +02:00
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org75580ea" class = "outline-3" >
< h3 id = "org75580ea" > < span class = "section-number-3" > 2.9< / span > Diagonal Controller< / h3 >
< div class = "outline-text-3" id = "text-2-9" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "orgb78ff99" > < / a >
The control diagram for the centralized control is shown in Figure < a href = "#orgccd3480" > 11< / a > .
2020-09-21 18:03:40 +02:00
< / p >
< p >
The controller \(K_c\) is “ working” in an cartesian frame.
The Jacobian is used to convert forces in the cartesian frame to forces applied by the actuators.
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org1ac8951" class = "figure" >
2020-09-21 18:03:40 +02:00
< p > < img src = "figs/centralized_control.png" alt = "centralized_control.png" / >
< / p >
2020-11-23 18:01:13 +01:00
< p > < span class = "figure-number" > Figure 26: < / span > Control Diagram for the Centralized control< / p >
2020-09-21 18:03:40 +02:00
< / div >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
The SVD control architecture is shown in Figure < a href = "#org6576aea" > 12< / a > .
2020-09-21 18:03:40 +02:00
The matrices \(U\) and \(V\) are used to decoupled the plant \(G\).
< / p >
2020-11-09 10:54:46 +01:00
2020-11-23 18:01:13 +01:00
< div id = "org1e8300c" class = "figure" >
2020-09-21 18:03:40 +02:00
< p > < img src = "figs/svd_control.png" alt = "svd_control.png" / >
< / p >
2020-11-23 18:01:13 +01:00
< p > < span class = "figure-number" > Figure 27: < / span > Control Diagram for the SVD control< / p >
2020-09-21 18:03:40 +02:00
< / div >
2020-11-06 18:00:30 +01:00
2020-09-21 18:03:40 +02:00
< p >
2020-11-06 18:00:30 +01:00
We choose the controller to be a low pass filter:
\[ K_c(s) = \frac{G_0}{1 + \frac{s}{\omega_0}} \]
2020-09-21 18:03:40 +02:00
< / p >
2020-11-06 18:00:30 +01:00
< p >
\(G_0\) is tuned such that the crossover frequency corresponding to the diagonal terms of the loop gain is equal to \(\omega_c\)
< / p >
2020-09-21 18:03:40 +02:00
< div class = "org-src-container" >
2020-11-09 14:37:04 +01:00
< pre class = "src src-matlab" > wc = 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > 80; < span class = "org-comment" > % Crossover Frequency [rad/s]< / span >
w0 = 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > 0.1; < span class = "org-comment" > % Controller Pole [rad/s]< / span >
2020-09-21 18:03:40 +02:00
< / pre >
< / div >
2020-11-06 17:02:58 +01:00
2020-11-06 18:00:30 +01:00
< div class = "org-src-container" >
2020-11-09 14:37:04 +01:00
< pre class = "src src-matlab" > K_cen = diag(1< span class = "org-type" > ./< / span > diag(abs(evalfr(Gx, < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc))))< span class = "org-type" > *< / span > (1< span class = "org-type" > /< / span > abs(evalfr(1< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0), < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc)))< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0);
L_cen = K_cen< span class = "org-type" > *< / span > Gx;
2020-11-06 18:00:30 +01:00
G_cen = feedback(G, pinv(J< span class = "org-type" > '< / span > )< span class = "org-type" > *< / span > K_cen, [7< span class = "org-type" > :< / span > 12], [1< span class = "org-type" > :< / span > 6]);
< / pre >
< / div >
2020-11-06 17:02:58 +01:00
< div class = "org-src-container" >
2020-11-09 14:37:04 +01:00
< pre class = "src src-matlab" > K_svd = diag(1< span class = "org-type" > ./< / span > diag(abs(evalfr(Gsvd, < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc))))< span class = "org-type" > *< / span > (1< span class = "org-type" > /< / span > abs(evalfr(1< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0), < span class = "org-constant" > j< / span > < span class = "org-type" > *< / span > wc)))< span class = "org-type" > /< / span > (1 < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0);
L_svd = K_svd< span class = "org-type" > *< / span > Gsvd;
2020-11-09 10:54:46 +01:00
G_svd = feedback(G, inv(V< span class = "org-type" > '< / span > )< span class = "org-type" > *< / span > K_svd< span class = "org-type" > *< / span > inv(U), [7< span class = "org-type" > :< / span > 12], [1< span class = "org-type" > :< / span > 6]);
2020-11-06 17:02:58 +01:00
< / pre >
< / div >
2020-11-06 18:00:30 +01:00
< p >
2020-11-23 18:01:13 +01:00
The obtained diagonal elements of the loop gains are shown in Figure < a href = "#org4998cc4" > 28< / a > .
2020-11-06 18:00:30 +01:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org4998cc4" class = "figure" >
2020-11-06 18:00:30 +01:00
< p > < img src = "figs/stewart_comp_loop_gain_diagonal.png" alt = "stewart_comp_loop_gain_diagonal.png" / >
< / p >
2020-11-23 18:01:13 +01:00
< p > < span class = "figure-number" > Figure 28: < / span > Comparison of the diagonal elements of the loop gains for the SVD control architecture and the Jacobian one< / p >
2020-11-06 18:00:30 +01:00
< / div >
2020-09-21 18:03:40 +02:00
< / div >
< / div >
2020-11-23 18:01:13 +01:00
< div id = "outline-container-org9f0f788" class = "outline-3" >
< h3 id = "org9f0f788" > < span class = "section-number-3" > 2.10< / span > Closed-Loop system Performances< / h3 >
< div class = "outline-text-3" id = "text-2-10" >
2020-11-06 11:59:09 +01:00
< p >
2020-11-23 18:01:13 +01:00
< a id = "org5abf7ce" > < / a >
2020-11-06 11:59:09 +01:00
< / p >
2020-09-21 18:03:40 +02:00
< p >
2020-09-21 18:54:41 +02:00
Let’ s first verify the stability of the closed-loop systems:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > isstable(G_cen)
< / pre >
< / div >
< pre class = "example" >
ans =
logical
1
< / pre >
< div class = "org-src-container" >
< pre class = "src src-matlab" > isstable(G_svd)
< / pre >
< / div >
< pre class = "example" >
ans =
logical
2020-11-06 16:59:03 +01:00
1
2020-09-21 18:54:41 +02:00
< / pre >
< p >
2020-11-23 18:01:13 +01:00
The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure < a href = "#org15a3692" > 29< / a > .
2020-09-21 18:03:40 +02:00
< / p >
2020-11-23 18:01:13 +01:00
< div id = "org15a3692" class = "figure" >
2020-09-21 18:03:40 +02:00
< p > < img src = "figs/stewart_platform_simscape_cl_transmissibility.png" alt = "stewart_platform_simscape_cl_transmissibility.png" / >
< / p >
2020-11-23 18:01:13 +01:00
< p > < span class = "figure-number" > Figure 29: < / span > Obtained Transmissibility< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orga629e4c" class = "outline-3" >
< h3 id = "orga629e4c" > < span class = "section-number-3" > 2.11< / span > Small error on the sensor location      < span class = "tag" > < span class = "no_export" > no_export< / span > < / span > < / h3 >
< div class = "outline-text-3" id = "text-2-11" >
< p >
Let’ s now consider a small position error of the sensor:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > sens_pos_error = [105 5 < span class = "org-type" > -< / span > 1]< span class = "org-type" > *< / span > 1e< span class = "org-type" > -< / span > 3; < span class = "org-comment" > % [m]< / span >
< / pre >
< / div >
< p >
The system is identified again:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > Gx = Gu< span class = "org-type" > *< / span > inv(J< span class = "org-type" > '< / span > );
Gx.InputName = {< span class = "org-string" > 'Fx'< / span > , < span class = "org-string" > 'Fy'< / span > , < span class = "org-string" > 'Fz'< / span > , < span class = "org-string" > 'Mx'< / span > , < span class = "org-string" > 'My'< / span > , < span class = "org-string" > 'Mz'< / span > };
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > Gsvd = inv(U)< span class = "org-type" > *< / span > Gu< span class = "org-type" > *< / span > inv(V< span class = "org-type" > '< / span > );
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > L_cen = K_cen< span class = "org-type" > *< / span > Gx;
G_cen = feedback(G, pinv(J< span class = "org-type" > '< / span > )< span class = "org-type" > *< / span > K_cen, [7< span class = "org-type" > :< / span > 12], [1< span class = "org-type" > :< / span > 6]);
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > L_svd = K_svd< span class = "org-type" > *< / span > Gsvd;
G_svd = feedback(G, inv(V< span class = "org-type" > '< / span > )< span class = "org-type" > *< / span > K_svd< span class = "org-type" > *< / span > inv(U), [7< span class = "org-type" > :< / span > 12], [1< span class = "org-type" > :< / span > 6]);
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > isstable(G_cen)
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > isstable(G_svd)
< / pre >
2020-09-21 18:03:40 +02:00
< / div >
2020-09-21 13:08:36 +02:00
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2020-11-23 18:01:13 +01:00
< p class = "date" > Created: 2020-11-23 lun. 18:00< / p >
2020-09-21 13:08:36 +02:00
< / div >
< / body >
< / html >