diff --git a/figs/block_diagram_jacobian_decoupling.pdf b/figs/block_diagram_jacobian_decoupling.pdf new file mode 100644 index 0000000..675598e Binary files /dev/null and b/figs/block_diagram_jacobian_decoupling.pdf differ diff --git a/figs/block_diagram_jacobian_decoupling.png b/figs/block_diagram_jacobian_decoupling.png new file mode 100644 index 0000000..f263dcd Binary files /dev/null and b/figs/block_diagram_jacobian_decoupling.png differ diff --git a/figs/gravimeter_block_cok.pdf b/figs/gravimeter_block_cok.pdf new file mode 100644 index 0000000..1db7763 Binary files /dev/null and b/figs/gravimeter_block_cok.pdf differ diff --git a/figs/gravimeter_block_cok.png b/figs/gravimeter_block_cok.png new file mode 100644 index 0000000..d820027 Binary files /dev/null and b/figs/gravimeter_block_cok.png differ diff --git a/figs/gravimeter_block_com.pdf b/figs/gravimeter_block_com.pdf new file mode 100644 index 0000000..eeb67dc Binary files /dev/null and b/figs/gravimeter_block_com.pdf differ diff --git a/figs/gravimeter_block_com.png b/figs/gravimeter_block_com.png new file mode 100644 index 0000000..f263dcd Binary files /dev/null and b/figs/gravimeter_block_com.png differ diff --git a/figs/gravimeter_block_decentralized.pdf b/figs/gravimeter_block_decentralized.pdf new file mode 100644 index 0000000..d4ec660 Binary files /dev/null and b/figs/gravimeter_block_decentralized.pdf differ diff --git a/figs/gravimeter_block_decentralized.png b/figs/gravimeter_block_decentralized.png new file mode 100644 index 0000000..019cfe8 Binary files /dev/null and b/figs/gravimeter_block_decentralized.png differ diff --git a/figs/gravimeter_model_analytical.pdf b/figs/gravimeter_model_analytical.pdf index b807c2a..c07bc78 100644 Binary files a/figs/gravimeter_model_analytical.pdf and b/figs/gravimeter_model_analytical.pdf differ diff --git a/figs/gravimeter_model_analytical.png b/figs/gravimeter_model_analytical.png index 98eabe0..dd46ae2 100644 Binary files a/figs/gravimeter_model_analytical.png and b/figs/gravimeter_model_analytical.png differ diff --git a/figs/plant_frame_K.pdf b/figs/plant_frame_K.pdf new file mode 100644 index 0000000..49ed89d Binary files /dev/null and b/figs/plant_frame_K.pdf differ diff --git a/figs/plant_frame_K.png b/figs/plant_frame_K.png new file mode 100644 index 0000000..dbb40bc Binary files /dev/null and b/figs/plant_frame_K.png differ diff --git a/figs/plant_frame_L.pdf b/figs/plant_frame_L.pdf new file mode 100644 index 0000000..e8df407 Binary files /dev/null and b/figs/plant_frame_L.pdf differ diff --git a/figs/plant_frame_L.png b/figs/plant_frame_L.png new file mode 100644 index 0000000..6da9b38 Binary files /dev/null and b/figs/plant_frame_L.png differ diff --git a/figs/plant_frame_M.pdf b/figs/plant_frame_M.pdf new file mode 100644 index 0000000..bc0239c Binary files /dev/null and b/figs/plant_frame_M.pdf differ diff --git a/figs/plant_frame_M.png b/figs/plant_frame_M.png new file mode 100644 index 0000000..55b800c Binary files /dev/null and b/figs/plant_frame_M.png differ diff --git a/index.html b/index.html index d1dff5d..3aa56ca 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +In this part, diagonal control using both the SVD and the Jacobian matrices are applied on a gravimeter model:
-The model of the gravimeter is schematically shown in Figure 1. +The model of the gravimeter is schematically shown in Figure 1.
-
Figure 1: Model of the gravimeter
Figure 2: Model of the struts
@@ -211,11 +213,11 @@ g = 0; % Gravity [m/s2]-The inputs and outputs of the plant are shown in Figure 3. +The inputs and outputs of the plant are shown in Figure 3.
@@ -256,7 +258,7 @@ And 4 outputs (the two 2-DoF accelerometers): \end{equation} -
Figure 3: Schematic of the gravimeter plant
@@ -312,11 +314,11 @@ State-space model with 4 outputs, 3 inputs, and 6 states.-The bode plot of all elements of the plant are shown in Figure 4. +The bode plot of all elements of the plant are shown in Figure 4.
-
Figure 4: Open Loop Transfer Function from 3 Actuators to 4 Accelerometers
@@ -324,15 +326,15 @@ The bode plot of all elements of the plant are shown in Figure --Consider the control architecture shown in Figure 5. +Consider the control architecture shown in Figure 5.
@@ -350,16 +352,16 @@ The Jacobian matrix \(J_{a}\) is used to compute the vertical acceleration, hori \end{equation}
-We thus define a new plant as defined in Figure 5. +We thus define a new plant as defined in Figure 5. \[ \bm{G}_x(s) = J_a^{-1} \bm{G}(s) J_{\tau}^{-T} \]
-\(\bm{G}_x(s)\) correspond to the \(3 \times 3\) transfer function matrix from forces and torques applied to the gravimeter at its center of mass to the absolute acceleration of the gravimeter’s center of mass (Figure 5). +\(\bm{G}_x(s)\) correspond to the \(3 \times 3\) transfer function matrix from forces and torques applied to the gravimeter at its center of mass to the absolute acceleration of the gravimeter’s center of mass (Figure 5).
-
Figure 5: Decoupled plant \(\bm{G}_x\) using the Jacobian matrix \(J\)
@@ -397,7 +399,7 @@ State-space model with 3 outputs, 3 inputs, and 6 states.-The diagonal and off-diagonal elements of \(G_x\) are shown in Figure 6. +The diagonal and off-diagonal elements of \(G_x\) are shown in Figure 6.
@@ -409,11 +411,11 @@ It is shown at the system is:
-The choice of the frame in this the Jacobian is evaluated is discussed in Section 1.12. +The choice of the frame in this the Jacobian is evaluated is discussed in Section 1.12.
-
Figure 6: Diagonal and off-diagonal elements of \(G_x\)
@@ -421,11 +423,11 @@ The choice of the frame in this the Jacobian is evaluated is discussed in Sectio@@ -574,11 +576,11 @@ Now, the Singular Value Decomposition of \(H_1\) is performed:
-The obtained matrices \(U\) and \(V\) are used to decouple the system as shown in Figure 7. +The obtained matrices \(U\) and \(V\) are used to decouple the system as shown in Figure 7.
-
Figure 7: Decoupled plant \(\bm{G}_{SVD}\) using the Singular Value Decomposition
@@ -609,10 +611,10 @@ The 4th output (corresponding to the null singular value) is discarded, and we o-The diagonal and off-diagonal elements of the “SVD” plant are shown in Figure 8. +The diagonal and off-diagonal elements of the “SVD” plant are shown in Figure 8.
-
Figure 8: Diagonal and off-diagonal elements of \(G_{svd}\)
@@ -620,11 +622,11 @@ The diagonal and off-diagonal elements of the “SVD” plant are shown@@ -637,7 +639,7 @@ The “Gershgorin Radii” of a matrix \(S\) is defined by:
-
Figure 9: Gershgorin Radii of the Coupled and Decoupled plants
@@ -645,11 +647,11 @@ The “Gershgorin Radii” of a matrix \(S\) is defined by:@@ -663,11 +665,11 @@ where \(\times\) denotes an element by element multiplication and \(G(s)\) is an
-The obtained RGA elements are shown in Figure 10. +The obtained RGA elements are shown in Figure 10.
-
Figure 10: Obtained norm of RGA elements for the SVD decoupled plant and the Jacobian decoupled plant
@@ -681,7 +683,7 @@ The RGA-number is also a measure of diagonal dominance: \end{equation} -
Figure 11: RGA-Number for the Gravimeter
@@ -689,30 +691,30 @@ The RGA-number is also a measure of diagonal dominance:-The bode plot of the diagonal and off-diagonal elements of \(G_{SVD}\) are shown in Figure 12. +The bode plot of the diagonal and off-diagonal elements of \(G_{SVD}\) are shown in Figure 12.
-
Figure 12: Decoupled Plant using SVD
-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 13. +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 13.
-
Figure 13: 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)
@@ -720,12 +722,12 @@ Similarly, the bode plots of the diagonal elements and off-diagonal elements of- -The control diagram for the centralized control is shown in Figure 14. + +The control diagram for the centralized control is shown in Figure 14.
@@ -734,19 +736,19 @@ The Jacobian is used to convert forces in the cartesian frame to forces applied
-
Figure 14: Control Diagram for the Centralized control
-The SVD control architecture is shown in Figure 15. +The SVD control architecture is shown in Figure 15. The matrices \(U\) and \(V\) are used to decoupled the plant \(G\).
-
Figure 15: Control Diagram for the SVD control
@@ -782,11 +784,11 @@ U_inv = inv(U);-The obtained diagonal elements of the loop gains are shown in Figure 16. +The obtained diagonal elements of the loop gains are shown in Figure 16.
-
Figure 16: Comparison of the diagonal elements of the loop gains for the SVD control architecture and the Jacobian one
@@ -794,11 +796,11 @@ The obtained diagonal elements of the loop gains are shown in Figure -@@ -872,18 +874,18 @@ ans =
-The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure 17. +The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure 17.
-
Figure 17: Obtained Transmissibility
Figure 18: Obtain coupling terms of the transmissibility matrix
@@ -892,11 +894,11 @@ The obtained transmissibility in Open-loop, for the centralized control as well@@ -948,11 +950,11 @@ The new plant is computed, and the centralized and SVD control architectures are
-The closed-loop system are still stable in both cases, and the obtained transmissibility are equivalent as shown in Figure 19. +The closed-loop system are still stable in both cases, and the obtained transmissibility are equivalent as shown in Figure 19.
-
Figure 19: Transmissibility for the initial CL system and when the position of actuators are changed
@@ -960,11 +962,11 @@ The closed-loop system are still stable in both cases, and the obtained transmisIf we want to decouple the system at low frequency (determined by the stiffness matrix), we have to compute the Jacobian at a point where the stiffness matrix is diagonal. @@ -984,11 +986,11 @@ Ideally, we would like to have a decoupled mass matrix and stiffness matrix at t To do so, the actuators (springs) should be positioned such that the stiffness matrix is diagonal when evaluated at the CoM of the solid.
Figure 20: Choice of {O} such that the Mass Matrix is Diagonal
@@ -1043,7 +1045,7 @@ GM.OutputName = {'Dx', -
Figure 21: Diagonal and off-diagonal elements of the decoupled plant
@@ -1051,11 +1053,11 @@ GM.OutputName = {'Dx',
Figure 22: Choice of {O} such that the Stiffness Matrix is Diagonal
@@ -1087,7 +1089,7 @@ GK.OutputName = {'Dx', -
Figure 23: Diagonal and off-diagonal elements of the decoupled plant
@@ -1095,11 +1097,11 @@ GK.OutputName = {'Dx',
Figure 24: Ideal location of the actuators such that both the mass and stiffness matrices are diagonal
@@ -1155,7 +1157,7 @@ GKM.OutputName = {'Dx', +
Figure 25: Diagonal and off-diagonal elements of the decoupled plant
@@ -1163,8 +1165,8 @@ GKM.OutputName = {'Dx', -Ideally, the mechanical system should be designed in order to have a decoupled stiffness matrix at the CoM of the solid. @@ -1178,11 +1180,11 @@ Or it can be decoupled at high frequency if the Jacobians are evaluated at the C
- + As the SVD is applied on a real approximation of the plant dynamics at a frequency \(\omega_0\), it is foreseen that the effectiveness of the decoupling depends on the validity of the real approximation.
@@ -1191,7 +1193,7 @@ Let’s do the SVD decoupling on a plant that is mostly real (low damping) a-Start with small damping, the obtained diagonal and off-diagonal terms are shown in Figure 26. +Start with small damping, the obtained diagonal and off-diagonal terms are shown in Figure 26.
c = 2e1; % Actuator Damping [N/(m/s)]
@@ -1199,14 +1201,14 @@ Start with small damping, the obtained diagonal and off-diagonal terms are shown
Figure 26: Diagonal and off-diagonal term when decoupling with SVD on the gravimeter with small damping
-Now take a larger damping, the obtained diagonal and off-diagonal terms are shown in Figure 27. +Now take a larger damping, the obtained diagonal and off-diagonal terms are shown in Figure 27.
c = 5e2; % Actuator Damping [N/(m/s)]
@@ -1214,7 +1216,7 @@ Now take a larger damping, the obtained diagonal and off-diagonal terms are show
Figure 27: Diagonal and off-diagonal term when decoupling with SVD on the gravimeter with high damping
@@ -1223,119 +1225,86 @@ Now take a larger damping, the obtained diagonal and off-diagonal terms are show+In this section, we will see how the Jacobian matrix can be used to decouple a specific set of mechanical systems (described in Section 2.1). +
-+The basic decoupling architecture is shown in Figure 29 where the Jacobian matrix is used to both compute the actuator forces from forces/torques that are to be applied in a specific defined frame, and to compute the displacement/rotation of the same mass from several sensors. +
+ ++This is rapidly explained in Section 2.2. +
+ + ++
++Depending on the chosen frame, the Stiffness matrix in that particular frame can be computed. +This is explained in Section 2.3. +
+ ++Then three decoupling in three specific frames is studied: +
++Conclusions are drawn in Section 2.7. +
++Let’s consider a parallel manipulator with several collocated actuator/sensors pairs. +
+ ++System in Figure 29 will serve as an example. +
+ ++We will note: +
+-
Figure 28: Model of the gravimeter
+Figure 29: Model of the gravimeter
-Stiffness matrix: -
-\begin{equation} - \mathcal{F}_{\{O\}} = -K_{\{O\}} \mathcal{X}_{\{O\}} -\end{equation} --with: -
--Mass matrix: +The parameters are defined as follows:
-\begin{equation} - \mathcal{F}_{\{O\}} = M_{\{O\}} \ddot{\mathcal{X}}_{\{O\}} -\end{equation} - - --Consider the two following frames: -
-[ ]
Compute the mass matrix \(M_{\{K\}}\)
-Needs two Jacobians => complicated matrix[ ]
Ideally write the equation from \(\tau\) to \(\mathcal{L}\)-Usefulness of Jacobians: -
--Let’s compute the Jacobians: -
-\begin{equation} -J_{\{M\}} = \begin{bmatrix} 1 & 0 & h_a \\ 0 & 1 & -l_a \\ 0 & 1 & l_a \end{bmatrix} -\end{equation} - -\begin{equation} -J_{\{K\}} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & -l_a \\ 0 & 1 & l_a \end{bmatrix} -\end{equation} -l = 1.0; % Length of the mass [m] h = 2*1.7; % Height of the mass [m] @@ -1355,358 +1324,738 @@ k2 = 15e3; % Actuator Stiffness [N/m] k3 = 15e3; % Actuator Stiffness [N/m]
+Let’s express \({}^Mb_i\) and \(\hat{s}_i\): +
+\begin{align} +{}^Mb_1 &= [-l/2,\ -h_a] \\ +{}^Mb_2 &= [-la, \ -h/2] \\ +{}^Mb_3 &= [ la, \ -h/2] +\end{align} + +\begin{align} +\hat{s}_1 &= [1,\ 0] \\ +\hat{s}_2 &= [0,\ 1] \\ +\hat{s}_3 &= [0,\ 1] +\end{align} + +s1 = [1;0]; +s2 = [0;1]; +s3 = [0;1]; + +Mb1 = [-l/2;-ha]; +Mb2 = [-la; -h/2]; +Mb3 = [ la; -h/2]; ++
+Frame \(\{K\}\) is chosen such that the stiffness matrix is diagonal (explained in Section 3). +
+ ++The positions \({}^Kb_i\) are then: +
+\begin{align} +{}^Kb_1 &= [-l/2,\ 0] \\ +{}^Kb_2 &= [-la, \ -h/2+h_a] \\ +{}^Kb_3 &= [ la, \ -h/2+h_a] +\end{align} + +Kb1 = [-l/2; 0]; +Kb2 = [-la; -h/2+ha]; +Kb3 = [ la; -h/2+ha]; ++
+Let’s note: +
++\(\bm{\mathcal{L}}\) the vector of actuator displacement: +
+\begin{equation} + \bm{\mathcal{L}} = \begin{bmatrix} \mathcal{L}_1 \\ \mathcal{L}_2 \\ \mathcal{L}_3 \end{bmatrix} +\end{equation}+\(\bm{\tau}\) the vector of actuator forces: +
+\begin{equation} + \bm{\tau} = \begin{bmatrix} \tau_1 \\ \tau_2 \\ \tau_3 \end{bmatrix} +\end{equation}+\(\bm{\mathcal{F}}_{\{O\}}\) the vector of forces/torques applied on the payload on expressed in frame \(\{O\}\): +
+\begin{equation} + \bm{\mathcal{F}}_{\{O\}} = \begin{bmatrix} \mathcal{F}_{\{O\},x} \\ \mathcal{F}_{\{O\},y} \\ \mathcal{M}_{\{O\},z} \end{bmatrix} +\end{equation}+\(\bm{\mathcal{X}}_{\{O\}}\) the vector of displacement of the payload with respect to frame \(\{O\}\): +
+\begin{equation} + \bm{\mathcal{X}}_{\{O\}} = \begin{bmatrix} \mathcal{X}_{\{O\},x} \\ \mathcal{X}_{\{O\},y} \\ \mathcal{X}_{\{O\},R_z} \end{bmatrix} +\end{equation}+The Jacobian matrix can be used to: +
++with \(\{O\}\) any chosen frame. +
+ ++If we consider small displacements, we have an approximate relation that links the displacements (instead of velocities): +
+\begin{equation} +\bm{\mathcal{X}}_{\{M\}} = J_{\{M\}} \bm{\mathcal{L}} +\end{equation} + + ++The Jacobian can be computed as follows: +
+\begin{equation} +J_{\{O\}} = \begin{bmatrix} + {}^O\hat{s}_1^T & {}^Ob_{1,x} {}^O\hat{s}_{1,y} - {}^Ob_{1,x} {}^O\hat{s}_{1,y} \\ + {}^O\hat{s}_2^T & {}^Ob_{2,x} {}^O\hat{s}_{2,y} - {}^Ob_{2,x} {}^O\hat{s}_{2,y} \\ + \vdots & \vdots \\ + {}^O\hat{s}_n^T & {}^Ob_{n,x} {}^O\hat{s}_{n,y} - {}^Ob_{n,x} {}^O\hat{s}_{n,y} \\ +\end{bmatrix} +\end{equation} + + ++Let’s compute the Jacobian matrix in frame \(\{M\}\) and \(\{K\}\): +
+Jm = [s1', Mb1(1)*s1(2)-Mb1(2)*s1(1); + s2', Mb2(1)*s2(2)-Mb2(2)*s2(1); + s3', Mb3(1)*s3(2)-Mb3(2)*s3(1)]; ++
1 | +0 | +1.7 | +
0 | +1 | +-0.5 | +
0 | +1 | +0.5 | +
Jk = [s1', Kb1(1)*s1(2)-Kb1(2)*s1(1); + s2', Kb2(1)*s2(2)-Kb2(2)*s2(1); + s3', Kb3(1)*s3(2)-Kb3(2)*s3(1)]; ++
1 | +0 | +0 | +
0 | +1 | +-0.5 | +
0 | +1 | +0.5 | +
+In the frame \(\{M\}\), the Jacobian is: +
+\begin{equation} +J_{\{M\}} = \begin{bmatrix} 1 & 0 & h_a \\ 0 & 1 & -l_a \\ 0 & 1 & l_a \end{bmatrix} +\end{equation} + ++And in frame \(\{K\}\), the Jacobian is: +
+\begin{equation} +J_{\{K\}} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & -l_a \\ 0 & 1 & l_a \end{bmatrix} +\end{equation} ++For a parallel manipulator, the stiffness matrix expressed in a frame \(\{O\}\) is: +
+\begin{equation} + K_{\{O\}} = J_{\{O\}}^T \mathcal{K} J_{\{O\}} +\end{equation} ++where: +
++\(\mathcal{K}\) is a diagonal matrix with the strut stiffnesses on the diagonal +
+\begin{equation} +\mathcal{K} = \begin{bmatrix} + k_1 & & & 0 \\ + & k_2 & & \\ + & & \ddots & \\ + 0 & & & k_n +\end{bmatrix} +\end{equation}+We have the same thing for the damping matrix. +
+ +Kr = diag([k1,k2,k3]); +Cr = diag([c1,c2,c3]); ++
+Applying the second Newton’s law on the system in Figure 29 at its center of mass \(O_M\), we obtain: +
+\begin{equation} +\left( M_{\{M\}} s^2 + K_{\{M\}} \right) \bm{\mathcal{X}}_{\{M\}} = \bm{\mathcal{F}}_{\{M\}} +\end{equation} ++with: +
++Let’s use the Jacobian matrix to compute the equations in terms of actuator forces \(\bm{\tau}\) and strut displacement \(\bm{\mathcal{L}}\): +
+\begin{equation} +\left( M_{\{M\}} s^2 + K_{\{M\}} \right) J_{\{M\}}^{-1} \bm{\mathcal{L}} = J_{\{M\}}^T \bm{\tau} +\end{equation} + ++And we obtain: +
+\begin{equation} +\left( J_{\{M\}}^{-T} M_{\{M\}} J_{\{M\}}^{-1} s^2 + \mathcal{K} \right) \bm{\mathcal{L}} = \bm{\tau} +\end{equation} + ++The transfer function \(\bm{G}(s)\) from \(\bm{\tau}\) to \(\bm{\mathcal{L}}\) is: +
+\begin{equation} +\boxed{\bm{G}(s) = {\left( J_{\{M\}}^{-T} M_{\{M\}} J_{\{M\}}^{-1} s^2 + \mathcal{K} \right)}^{-1}} +\end{equation} + + ++
+Figure 30: Block diagram of the transfer function from \(\bm{\tau}\) to \(\bm{\mathcal{L}}\)
+%% Mass Matrix in frame {M}
+Mm = diag([m,m,I]);
+
++Let’s note the mass matrix in the frame of the legs: +
+\begin{equation} +M_{\{L\}} = J_{\{M\}}^{-T} M_{\{M\}} J_{\{M\}}^{-1} +\end{equation} + +%% Mass Matrix in the frame of the struts +Ml = inv(Jm')*Mm*inv(Jm); ++
400 | +680 | +-680 | +
680 | +1371 | +-1171 | +
-680 | +-1171 | +1371 | +
+As we can see, the Stiffness matrix in the frame of the legs is diagonal. +This means the plant dynamics will be diagonal at low frequency. +
+Kl = diag([k1, k2, k3]); ++
15000 | +0 | +0 | +
0 | +15000 | +0 | +
0 | +0 | +15000 | +
Cl = diag([c1, c2, c3]); ++
+The transfer function \(\bm{G}(s)\) from \(\bm{\tau}\) to \(\bm{\mathcal{L}}\) is defined below and its magnitude is shown in Figure 31. +
+Gl = inv(Ml*s^2 + Cl*s + Kl); ++
+We can indeed see that the system is well decoupled at low frequency. +
+ + ++
+Figure 31: Dynamics from \(\bm{\tau}\) to \(\bm{\mathcal{L}}\)
++The equations of motion expressed in frame \(\{M\}\) are: +
+\begin{equation} +\left( M_{\{M\}} s^2 + K_{\{M\}} \right) \bm{\mathcal{X}}_{\{M\}} = \bm{\mathcal{F}}_{\{M\}} +\end{equation} + ++And the plant from \(\bm{F}_{\{M\}}\) to \(\bm{\mathcal{X}}_{\{M\}}\) is: +
+\begin{equation} +\boxed{\bm{G}_{\{X\}} = {\left( M_{\{M\}} s^2 + K_{\{M\}} \right)}^{-1}} +\end{equation} ++with: +
++
+Figure 32: Block diagram of the transfer function from \(\bm{\mathcal{F}}_{\{M\}}\) to \(\bm{\mathcal{X}}_{\{M\}}\)
+%% Mass Matrix in frame {M}
+Mm = diag([m,m,I]);
+
+400 | +0 | +0 | +
0 | +400 | +0 | +
0 | +0 | +115 | +
%% Stiffness Matrix in frame {M} +Km = Jm'*Kr*Jm; ++
15000 | +0 | +25500 | +
0 | +30000 | +0 | +
25500 | +0 | +50850 | +
%% Damping Matrix in frame {M} +Cm = Jm'*Cr*Jm; ++
+The plant from \(\bm{F}_{\{M\}}\) to \(\bm{\mathcal{X}}_{\{M\}}\) is defined below and its magnitude is shown in Figure 33. +
+%% Plant in frame {M} +Gm = inv(Mm*s^2 + Cm*s + Km); ++
+And the system is well decoupled at high frequency (above the suspension modes). +
+ + ++
+Figure 33: Dynamics from \(\bm{\mathcal{F}}_{\{M\}}\) to \(\bm{\mathcal{X}}_{\{M\}}\)
+-Mass, Damping and Stiffness matrices expressed in \(\{M\}\): +
-Mm = [m 0 0 ; - 0 m 0 ; - 0 0 I]; - -Cm = [c1 0 c1*ha ; - 0 c2+c3 0 ; - c1*ha 0 c1*ha + (c2+c3)*la]; - -Km = [k1 0 k1*ha ; - 0 k2+k3 0 ; - k1*ha 0 k1*ha + (k2+k3)*la]; --
-Jacobian \(J_{\{M\}}\): +Let’s now express the transfer function from \(\bm{\mathcal{F}}_{\{K\}}\) to \(\bm{\mathcal{X}}_{\{K\}}\). +We start from: +
+\begin{equation} +\left( M_{\{M\}} s^2 + K_{\{M\}} \right) J_{\{M\}}^{-1} \bm{\mathcal{L}} = J_{\{M\}}^T \bm{\tau} +\end{equation} + ++And we make use of the Jacobian \(J_{\{K\}}\) to obtain: +
+\begin{equation} +\left( M_{\{M\}} s^2 + K_{\{M\}} \right) J_{\{M\}}^{-1} J_{\{K\}} \bm{\mathcal{X}}_{\{K\}} = J_{\{M\}}^T J_{\{K\}}^{-T} \bm{\mathcal{F}}_{\{K\}} +\end{equation} + ++And finally: +
+\begin{equation} +\left( J_{\{K\}}^T J_{\{M\}}^{-T} M_{\{M\}} J_{\{M\}}^{-1} J_{\{K\}} s^2 + J_{\{K\}}^T \mathcal{K} J_{\{K\}} \right) \bm{\mathcal{X}}_{\{K\}} = \bm{\mathcal{F}}_{\{K\}} +\end{equation} + ++The transfer function from \(\bm{\mathcal{F}}_{\{K\}}\) to \(\bm{\mathcal{X}}_{\{K\}}\) is then: +
+\begin{equation} +\boxed{\bm{G}_{\{K\}} = {\left( J_{\{K\}}^T J_{\{M\}}^{-T} M_{\{M\}} J_{\{M\}}^{-1} J_{\{K\}} s^2 + J_{\{K\}}^T \mathcal{K} J_{\{K\}} \right)}^{-1}} +\end{equation} + ++The frame \(\{K\}\) has been chosen such that \(J_{\{K\}}^T \mathcal{K} J_{\{K\}}\) is diagonal. +
+ + ++
+Figure 34: Block diagram of the transfer function from \(\bm{\mathcal{F}}_{\{K\}}\) to \(\bm{\mathcal{X}}_{\{K\}}\)
+Mk = Jk'*inv(Jm)'*Mm*inv(Jm)*Jk; ++
400 | +0 | +-680 | +
0 | +400 | +0 | +
-680 | +0 | +1271 | +
Kk = Jk'*Kr*Jk; ++
15000 | +0 | +0 | +
0 | +30000 | +0 | +
0 | +0 | +7500 | +
+The plant from \(\bm{F}_{\{K\}}\) to \(\bm{\mathcal{X}}_{\{K\}}\) is defined below and its magnitude is shown in Figure 35.
Jm = [1 0 ha ; - 0 1 -la ; - 0 1 la]; +Gk = inv(Mk*s^2 + Ck*s + Kk);
Mt = inv(Jm')*Mm*inv(Jm); -Ct = inv(Jm')*Cm*inv(Jm); -Kt = inv(Jm')*Km*inv(Jm); --
400.0 | -340.0 | --340.0 | -
340.0 | -504.0 | --304.0 | -
-340.0 | --304.0 | -504.0 | -
15000.0 | -0.0 | -0.0 | -
0.0 | -24412.5 | --9412.5 | -
0.0 | --9412.5 | -24412.5 | -
Gt = s^2*inv(Mt*s^2 + Ct*s + Kt); -% Gt = JM*s^2*inv(MM*s^2 + CM*s + KM)*JM'; -+
+
+Figure 35: Dynamics from \(\bm{\mathcal{F}}_{\{K\}}\) to \(\bm{\mathcal{X}}_{\{K\}}\)
Gm = inv(Jm)*Gt*inv(Jm'); --
400.0 | -0.0 | -0.0 | -
0.0 | -400.0 | -0.0 | -
0.0 | -0.0 | -115.0 | -
15000.0 | -0.0 | -12750.0 | -
0.0 | -30000.0 | -0.0 | -
12750.0 | -0.0 | -27750.0 | -
Jk = [1 0 0
- 0 1 -la
- 0 1 la];
-
--Mass, Damping and Stiffness matrices expressed in \(\{K\}\): +Jacobian matrices can be used to decouple the presented system.
-Mk = Jk'*Mt*Jk; -Ck = Jk'*Ct*Jk; -Kk = Jk'*Kt*Jk; --
400.0 | -0.0 | --340.0 | -
0.0 | -400.0 | -0.0 | -
-340.0 | -0.0 | -404.0 | -
15000.0 | -0.0 | -0.0 | -
0.0 | -30000.0 | -0.0 | -
0.0 | -0.0 | -16912.5 | -
% Gk = s^2*inv(Mk*s^2 + Ck*s + Kk); -Gk = inv(Jk)*Gt*inv(Jk'); --
syms la ha m I c k positive --
Mm = [m 0 0 ; - 0 m 0 ; - 0 0 I]; - -Cm = [c 0 c*ha ; - 0 2*c 0 ; - c*ha 0 c*(ha+2*la)]; - -Km = [k 0 k*ha ; - 0 2*k 0 ; - k*ha 0 k*(ha+2*la)]; --
Jm = [1 0 ha ;
- 0 1 -la ;
- 0 1 la];
-
-Mt = inv(Jm')*Mm*inv(Jm); -Ct = inv(Jm')*Cm*inv(Jm); -Kt = inv(Jm')*Km*inv(Jm); --
Jk = [1 0 0
- 0 1 -la
- 0 1 la];
-
--Mass, Damping and Stiffness matrices expressed in \(\{K\}\): +Depending on the chosen frame used for the estimation of the Jacobian, different plant dynamics is obtained.
-Mk = Jk'*Mt*Jk; -Ck = Jk'*Ct*Jk; -Kk = Jk'*Kt*Jk; --
['\begin{equation} M_{\{K\}} = ', latex(simplify(Kk)), '\end{equation}'] --
Consider a parallel manipulator with: @@ -1728,20 +2077,20 @@ Consider two frames:
-As an example, take the system shown in Figure 29. +As an example, take the system shown in Figure 36.
--
Figure 29: Example of 3DoF parallel platform
+Figure 36: Example of 3DoF parallel platform
The objective is to find conditions for the existence of a frame \(\{K\}\) in which the Stiffness matrix of the manipulator is diagonal. @@ -1750,8 +2099,8 @@ If the conditions are fulfilled, a second objective is to fine the location of t
The stiffness matrix in the frame \(\{K\}\) can be expressed as: @@ -1893,18 +2242,18 @@ Note that a rotation of the frame \(\{K\}\) with respect to frame \(\{M\}\) woul
-Consider system of Figure 30. +Consider system of Figure 37.
--
Figure 30: Example of 3DoF parallel platform
+Figure 37: Example of 3DoF parallel platform
@@ -2054,18 +2403,18 @@ And the stiffness matrix:
-Now consider the planar manipulator of Figure 31. +Now consider the planar manipulator of Figure 38.
--
Figure 31: Planar Manipulator
+Figure 38: Planar Manipulator
@@ -2230,12 +2579,12 @@ And the stiffness matrix:
Let’s consider a 6dof parallel manipulator with: @@ -2257,20 +2606,20 @@ Consider two frames:
-An example is shown in Figure 32. +An example is shown in Figure 39.
--
Figure 32: Parallel manipulator Example
+Figure 39: Parallel manipulator Example
The objective is to find conditions for the existence of a frame \(\{K\}\) in which the Stiffness matrix of the manipulator is diagonal. @@ -2279,8 +2628,8 @@ If the conditions are fulfilled, a second objective is to fine the location of t
For a fully parallel manipulator, the stiffness matrix \(K_{\{K\}}\) expressed in a frame \(\{K\}\) is: @@ -2353,7 +2702,7 @@ And we finally obtain: K_{\{K\}} = \left[ \begin{array}{c|c} k_i \hat{s}_i \hat{s}_i^T & k_i \hat{s}_i (b_i \times \hat{s}_i)^T \cr \hline - k_i \hat{s}_i (b_i \times \hat{s}_i)^T & k_i (b_i \times \hat{s}_i) (b_i \times \hat{s}_i)^T + k_i (b_i \times \hat{s}_i) \hat{s}_i^T & k_i (b_i \times \hat{s}_i) (b_i \times \hat{s}_i)^T \end{array} \right] } \end{equation} @@ -2412,7 +2761,7 @@ k_i ({}^Mb_i \times \hat{s}_i) \hat{s}_i^T = k_i ({}^MO_K \times \hat{s}_i) \hat \end{equation}
-As the vector cross product also can be expressed as the product of a skew-symmetric matrix and a vehttps://rwth.zoom.us/j/92311133102?pwd=UTAzS21YYkUwT2pMZDBLazlGNzdvdz09tor, we obtain: +As the vector cross product also can be expressed as the product of a skew-symmetric matrix and a vector, we obtain:
\begin{equation} k_i ({}^Mb_i \times \hat{s}_i) \hat{s}_i^T = {}^M\bm{O}_{K} ( k_i \hat{s}_i \hat{s}_i^T ) @@ -2454,7 +2803,7 @@ In such case, condition \eqref{eq:diag_cond_2} is fulfilled and there is no coup Then, we can only verify if condition \eqref{eq:diag_cond_3} is verified or not. -If there is no frame \(\{K\}\) such that conditions \eqref{eq:diag_cond_2} and \eqref{eq:diag_cond_3} are valid, it would be interesting to be able to determine the frame \(\{K\}\) in which is coupling is minimal.
@@ -2463,8 +2812,8 @@ If there is no frame \(\{K\}\) such that conditions \eqref{eq:diag_cond_2} and \Let’s define the geometry of the manipulator (\({}^Mb_i\), \({}^Ms_i\) and \(k_i\)): @@ -2745,18 +3094,248 @@ hold off;
- +Equations in the \(\{M\}\) frame: +
+\begin{equation} +\left( M_{\{M\}} s^2 + K_{\{M\}} \right) \mathcal{X}_{\{M\}} = \mathcal{F}_{\{M\}} +\end{equation} + ++Thank to the Jacobian, we can transform the equation of motion expressed in the \(\{M\}\) frame to the frame of the legs: +
+\begin{equation} +J_{\{M\}}^{-T} \left( M_{\{M\}} s^2 + K_{\{M\}} \right) J_{\{M\}}^{-1} \dot{\mathcal{L}} = \tau +\end{equation} + ++And we have new stiffness and mass matrices: +
+\begin{equation} +\left( M_{\{L\}} s^2 + K_{\{L\}} \right) \dot{\mathcal{L}} = \tau +\end{equation} ++with: +
++We have that: +\[ K_{\{M\}} = J_{\{M\}}^T \mathcal{K} J_{\{M\}} \] +
+ ++Therefore, we find that \(K_{\{L\}}\) is a diagonal matrix: +
+\begin{equation} +K_{\{L\}} = \mathcal{K} = \begin{bmatrix} +k_1 & & 0 \\ + & \ddots & \\ +0 & & k_n +\end{bmatrix} +\end{equation} + ++The dynamics from \(\tau\) to \(\mathcal{L}\) is therefore decoupled at low frequency. +
++The mass matrix in the frames of the legs is: +\[ M_{\{L\}} = J_{\{M\}}^{-T} M_{\{M\}} J_{\{M\}}^{-1} \] +with \(M_{\{M\}}\) a diagonal matrix: +
+\begin{equation} +M_{\{M\}} = \begin{bmatrix} +m & & & & & \\ + & m & & & 0 & \\ + & & m & & & \\ + & & & I_x & & \\ + & 0 & & & I_y & \\ + & & & & & I_z +\end{bmatrix} +\end{equation} + ++Let’s suppose \(M_{\{L\}} = \mathcal{M}\) diagonal and try to find what does this imply: +\[ M_{\{M\}} = J_{\{M\}}^{T} \mathcal{M} J_{\{M\}} \] +with: +
+\begin{equation} +\mathcal{M} = \begin{bmatrix} +m_1 & & 0 \\ + & \ddots & \\ +0 & & m_n +\end{bmatrix} +\end{equation} + ++We obtain: +
+\begin{equation} +\boxed{ +M_{\{M\}} = \left[ \begin{array}{c|c} + m_i \hat{s}_i \hat{s}_i^T & m_i \hat{s}_i (b_i \times \hat{s}_i)^T \cr + \hline + k_i \hat{s}_i (b_i \times \hat{s}_i)^T & m_i (b_i \times \hat{s}_i) (b_i \times \hat{s}_i)^T +\end{array} \right] +} +\end{equation} + ++Therefore, we have the following conditions: +
+\begin{align} +m_i \hat{s}_i \hat{s}_i^T &= m \bm{I}_{3} \\ +m_i \hat{s}_i (b_i \times \hat{s}_i)^T &= \bm{O}_{3} \\ +m_i (b_i \times \hat{s}_i) (b_i \times \hat{s}_i)^T &= \text{diag}(I_x, I_y, I_z) +\end{align} ++The stiffnesses \(k_i\), the joint positions \({}^Mb_i\) and joint unit vectors \({}^M\hat{s}_i\) are defined below: +
+ki = [1,1,1]; % Stiffnesses [N/m] +si = [[1;0],[0;1],[0;1]]; si = si./vecnorm(si); % Unit Vectors +bi = [[-1; 0],[-10;-1],[0;-1]]; % Joint's positions in frame {M} ++
+Jacobian in frame \(\{M\}\): +
+Jm = [si', (bi(1,:).*si(2,:) - bi(2,:).*si(1,:))']; ++
+And the stiffness matrix in frame \(\{K\}\): +
+Km = Jm'*diag(ki)*Jm; ++
2 | +0 | +1 | +
0 | +1 | +-1 | +
1 | +-1 | +2 | +
+Mass matrix in the frame \(\{M\}\): +
+m = 10; % [kg] +I = 1; % [kg.m^2] + +Mm = diag([m, m, I]); ++
+Now compute \(K\) and \(M\) in the frame of the legs: +
+ML = inv(Jm)'*Mm*inv(Jm) +KL = inv(Jm)'*Km*inv(Jm) ++
Gm = 1/(ML*s^2 + KL); ++
freqs = logspace(-2, 1, 1000); +figure; +hold on; +for i = 1:length(ki) + plot(freqs, abs(squeeze(freqresp(Gm(i,i), freqs, 'Hz'))), 'k-') +end +for i = 1:length(ki) + for j = i+1:length(ki) + plot(freqs, abs(squeeze(freqresp(Gm(i,j), freqs, 'Hz'))), 'r-') + end +end +hold off; +xlabel('Frequency [Hz]'); +ylabel('Magnitude'); +set(gca, 'xscale', 'log'); +set(gca, 'yscale', 'log'); ++
-In this analysis, we wish to applied SVD control to the Stewart Platform shown in Figure 33. +In this analysis, we wish to applied SVD control to the Stewart Platform shown in Figure 40.
@@ -2769,33 +3348,33 @@ Some notes about the system: -
-
Figure 33: Stewart Platform CAD View
+Figure 40: Stewart Platform CAD View
The analysis of the SVD/Jacobian control applied to the Stewart platform is performed in the following sections:
open('drone_platform.slx');
@@ -2851,30 +3430,30 @@ Kc = tf(zeros(6));
-
Figure 34: General view of the Simscape Model
+Figure 41: General view of the Simscape Model
-
Figure 35: Simscape model of the Stewart platform
+Figure 42: Simscape model of the Stewart platform
-The plant shown in Figure 36 is identified from the Simscape model. +The plant shown in Figure 43 is identified from the Simscape model.
@@ -2890,10 +3469,10 @@ The outputs are the 6 accelerations measured by the inertial unit.
--
Figure 36: 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
+Figure 43: 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
-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 37. +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 44.
@@ -2940,20 +3519,20 @@ One can easily see that the system is strongly coupled.
--
Figure 37: Magnitude of all 36 elements of the transfer function matrix \(G_u\)
+Figure 44: Magnitude of all 36 elements of the transfer function matrix \(G_u\)
- -Consider the control architecture shown in Figure 38. + +Consider the control architecture shown in Figure 45. The Jacobian matrix is used to transform forces/torques applied on the top platform to the equivalent forces applied by each actuator.
@@ -2962,7 +3541,7 @@ The Jacobian matrix is computed from the geometry of the platform (position and-
Figure 38: Decoupled plant \(\bm{G}_x\) using the Jacobian matrix \(J\)
+Figure 45: Decoupled plant \(\bm{G}_x\) using the Jacobian matrix \(J\)
@@ -3058,11 +3637,11 @@ Gx.InputName = {'Fx',
-The obtained matrices \(U\) and \(V\) are used to decouple the system as shown in Figure 39. +The obtained matrices \(U\) and \(V\) are used to decouple the system as shown in Figure 46.
--
Figure 39: Decoupled plant \(\bm{G}_{SVD}\) using the Singular Value Decomposition
+Figure 46: Decoupled plant \(\bm{G}_{SVD}\) using the Singular Value Decomposition
@@ -3420,11 +3999,11 @@ The decoupled plant is then:
@@ -3440,19 +4019,19 @@ The “Gershgorin Radii” of a matrix \(S\) is defined by: This is computed over the following frequencies.
--
Figure 40: Gershgorin Radii of the Coupled and Decoupled plants
+Figure 47: Gershgorin Radii of the Coupled and Decoupled plants
@@ -3466,55 +4045,55 @@ where \(\times\) denotes an element by element multiplication and \(G(s)\) is an
-The obtained RGA elements are shown in Figure 41. +The obtained RGA elements are shown in Figure 48.
--
Figure 41: Obtained norm of RGA elements for the SVD decoupled plant and the Jacobian decoupled plant
+Figure 48: Obtained norm of RGA elements for the SVD decoupled plant and the Jacobian decoupled plant
-The bode plot of the diagonal and off-diagonal elements of \(G_{SVD}\) are shown in Figure 42. +The bode plot of the diagonal and off-diagonal elements of \(G_{SVD}\) are shown in Figure 49.
--
Figure 42: Decoupled Plant using SVD
+Figure 49: Decoupled Plant using SVD
-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 43. +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 50.
--
Figure 43: 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)
+Figure 50: 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)
- -The control diagram for the centralized control is shown in Figure 44. + +The control diagram for the centralized control is shown in Figure 51.
@@ -3523,22 +4102,22 @@ The Jacobian is used to convert forces in the cartesian frame to forces applied
--
Figure 44: Control Diagram for the Centralized control
+Figure 51: Control Diagram for the Centralized control
-The SVD control architecture is shown in Figure 45. +The SVD control architecture is shown in Figure 52. The matrices \(U\) and \(V\) are used to decoupled the plant \(G\).
--
Figure 45: Control Diagram for the SVD control
+Figure 52: Control Diagram for the SVD control
-The obtained diagonal elements of the loop gains are shown in Figure 46. +The obtained diagonal elements of the loop gains are shown in Figure 53.
--
Figure 46: Comparison of the diagonal elements of the loop gains for the SVD control architecture and the Jacobian one
+Figure 53: Comparison of the diagonal elements of the loop gains for the SVD control architecture and the Jacobian one
@@ -3619,14 +4198,14 @@ ans =
-The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure 47. +The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure 54.
--
Figure 47: Obtained Transmissibility
+Figure 54: Obtained Transmissibility
Created: 2021-02-05 ven. 16:05
+Created: 2021-02-17 mer. 15:15