diff --git a/figs/3dof_model_fully_parallel.pdf b/figs/3dof_model_fully_parallel.pdf new file mode 100644 index 0000000..b6607b1 Binary files /dev/null and b/figs/3dof_model_fully_parallel.pdf differ diff --git a/figs/3dof_model_fully_parallel.png b/figs/3dof_model_fully_parallel.png new file mode 100644 index 0000000..ccacca6 Binary files /dev/null and b/figs/3dof_model_fully_parallel.png differ diff --git a/figs/gravimeter_plant_schematic.pdf b/figs/gravimeter_plant_schematic.pdf new file mode 100644 index 0000000..60d3573 Binary files /dev/null and b/figs/gravimeter_plant_schematic.pdf differ diff --git a/figs/model_planar_2.pdf b/figs/model_planar_2.pdf new file mode 100644 index 0000000..edbf625 Binary files /dev/null and b/figs/model_planar_2.pdf differ diff --git a/figs/model_planar_2.png b/figs/model_planar_2.png new file mode 100644 index 0000000..7deff22 Binary files /dev/null and b/figs/model_planar_2.png differ diff --git a/figs/stewart_architecture_example.pdf b/figs/stewart_architecture_example.pdf new file mode 100644 index 0000000..ab3e103 Binary files /dev/null and b/figs/stewart_architecture_example.pdf differ diff --git a/figs/stewart_architecture_example.png b/figs/stewart_architecture_example.png new file mode 100644 index 0000000..1d81f4d Binary files /dev/null and b/figs/stewart_architecture_example.png differ diff --git a/index.html b/index.html index 140a64e..6cbde5a 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
@@ -193,11 +211,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.
@@ -238,7 +256,7 @@ And 4 outputs (the two 2-DoF accelerometers): \end{equation} -
Figure 3: Schematic of the gravimeter plant
@@ -294,11 +312,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
@@ -306,15 +324,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.
@@ -332,16 +350,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\)
@@ -379,7 +397,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.
@@ -391,11 +409,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\)
@@ -403,11 +421,11 @@ The choice of the frame in this the Jacobian is evaluated is discussed in Sectio@@ -556,11 +574,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
@@ -591,10 +609,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}\)
@@ -602,11 +620,11 @@ The diagonal and off-diagonal elements of the “SVD” plant are shown@@ -619,7 +637,7 @@ The “Gershgorin Radii” of a matrix \(S\) is defined by:
-
Figure 9: Gershgorin Radii of the Coupled and Decoupled plants
@@ -627,11 +645,11 @@ The “Gershgorin Radii” of a matrix \(S\) is defined by:@@ -645,11 +663,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
@@ -663,7 +681,7 @@ The RGA-number is also a measure of diagonal dominance: \end{equation} -
Figure 11: RGA-Number for the Gravimeter
@@ -671,30 +689,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)
@@ -702,12 +720,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.
@@ -716,19 +734,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
@@ -764,11 +782,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
@@ -776,11 +794,11 @@ The obtained diagonal elements of the loop gains are shown in Figure -@@ -854,18 +872,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
@@ -874,11 +892,11 @@ The obtained transmissibility in Open-loop, for the centralized control as well@@ -930,11 +948,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
@@ -942,11 +960,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. @@ -966,11 +984,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
@@ -1025,7 +1043,7 @@ GM.OutputName = {'Dx', -
Figure 21: Diagonal and off-diagonal elements of the decoupled plant
@@ -1033,11 +1051,11 @@ GM.OutputName = {'Dx',
Figure 22: Choice of {O} such that the Stiffness Matrix is Diagonal
@@ -1069,7 +1087,7 @@ GK.OutputName = {'Dx', -
Figure 23: Diagonal and off-diagonal elements of the decoupled plant
@@ -1077,11 +1095,11 @@ GK.OutputName = {'Dx',
Figure 24: Ideal location of the actuators such that both the mass and stiffness matrices are diagonal
@@ -1137,7 +1155,7 @@ GKM.OutputName = {'Dx', +
Figure 25: Diagonal and off-diagonal elements of the decoupled plant
@@ -1145,8 +1163,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. @@ -1160,11 +1178,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.
@@ -1173,7 +1191,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)]
@@ -1181,14 +1199,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)]
@@ -1196,7 +1214,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
@@ -1205,15 +1223,15 @@ Now take a larger damping, the obtained diagonal and off-diagonal terms are show
Figure 28: Model of the gravimeter
@@ -1225,8 +1243,8 @@ Now take a larger damping, the obtained diagonal and off-diagonal terms are showStiffness matrix: @@ -1267,8 +1285,8 @@ Needs two Jacobians => complicated matrix
[ ]
Ideally write the equation from \(\tau\) to \(\mathcal{L}\)Usefulness of Jacobians: @@ -1315,8 +1333,8 @@ J_{\{K\}} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & -l_a \\ 0 & 1 & l_a \end{bmatri
l = 1.0; % Length of the mass [m] @@ -1340,8 +1358,8 @@ k3 = 15e3; % Actuator Stiffness [N/m]
Mass, Damping and Stiffness matrices expressed in \(\{M\}\):
@@ -1448,8 +1466,8 @@ Kt = inv(Jm')*Km
Gm = inv(Jm)*Gt*inv(Jm'); @@ -1520,8 +1538,8 @@ Kt = inv(Jm')*Km
Jacobian: @@ -1614,12 +1632,12 @@ Gk = inv(Jk)*Gt*inv(
syms la ha m I c k positive @@ -1683,14 +1701,882 @@ Kk = Jk'*Kt*Jk;
- +Consider a parallel manipulator with: +
++Consider two frames: +
++As an example, take the system shown in Figure 29. +
+ + ++
+Figure 29: 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. +If the conditions are fulfilled, a second objective is to fine the location of the frame \(\{K\}\) analytically. +
++The stiffness matrix in the frame \(\{K\}\) can be expressed as: +
+\begin{equation} \label{eq:stiffness_formula_planar} + K_{\{K\}} = J_{\{K\}}^T \mathcal{K} J_{\{K\}} +\end{equation} ++where: +
++The Jacobian for a planar manipulator, evaluated in a frame \(\{K\}\), can be expressed as follows: +
+\begin{equation} \label{eq:jacobian_planar} +J_{\{K\}} = \begin{bmatrix} + {}^K\hat{s}_1^T & {}^Kb_{1,x} {}^K\hat{s}_{1,y} - {}^Kb_{1,x} {}^K\hat{s}_{1,y} \\ + {}^K\hat{s}_2^T & {}^Kb_{2,x} {}^K\hat{s}_{2,y} - {}^Kb_{2,x} {}^K\hat{s}_{2,y} \\ + \vdots & \vdots \\ + {}^K\hat{s}_n^T & {}^Kb_{n,x} {}^K\hat{s}_{n,y} - {}^Kb_{n,x} {}^K\hat{s}_{n,y} \\ +\end{bmatrix} +\end{equation} + ++Let’s omit the mention of frame, it is assumed that vectors are expressed in frame \(\{K\}\). +It is specified otherwise. +
+ ++Injecting \eqref{eq:jacobian_planar} into \eqref{eq:stiffness_formula_planar} yields: +
+\begin{equation} +\boxed{ +K_{\{K\}} = \left[ \begin{array}{c|c} + k_i \hat{s}_i \hat{s}_i^T & k_i \hat{s}_i (b_{i,x}\hat{s}_{i,y} - b_{i,y}\hat{s}_{i,x}) \cr + \hline + k_i \hat{s}_i (b_{i,x}\hat{s}_{i,y} - b_{i,y}\hat{s}_{i,x}) & k_i (b_{i,x}\hat{s}_{i,y} - b_{i,y}\hat{s}_{i,x})^2 +\end{array} \right] +} +\end{equation} + ++In order to have a decoupled stiffness matrix, we have the following two conditions: +
+\begin{align} +k_i \hat{s}_i \hat{s}_i^T &= \text{diag. matrix} \label{eq:diag_cond_2D_1} \\ +k_i \hat{s}_i (b_{i,x}\hat{s}_{i,y} - b_{i,y}\hat{s}_{i,x}) &= 0 \label{eq:diag_cond_2D_2} +\end{align} + ++Note that we don’t have any condition on the term \(k_i (b_{i,x}\hat{s}_{i,y} - b_{i,y}\hat{s}_{i,x})^2\) as it is only a scalar. +
+ ++Condition \eqref{eq:diag_cond_2D_1}: +
++Condition \eqref{eq:diag_cond_2D_2}: +
++Let’s make a change of frame from the initial frame \(\{M\}\) to the frame \(\{K\}\): +
+\begin{align} +{}^Kb_i &= {}^Mb_i - {}^MO_K \\ +{}^K\hat{s}_i &= {}^M\hat{s}_i +\end{align} + ++And the goal is to find \({}^MO_K\) such that \eqref{eq:diag_cond_2D_2} is fulfilled: +
+\begin{equation} +k_i ({}^Mb_{i,x}\hat{s}_{i,y} - {}^Mb_{i,y}\hat{s}_{i,x} - {}^MO_{K,x}\hat{s}_{i,y} + {}^MO_{K,y}\hat{s}_{i,x}) \hat{s}_i = 0 +\end{equation} +\begin{equation} +k_i ({}^Mb_{i,x}\hat{s}_{i,y} - {}^Mb_{i,y}\hat{s}_{i,x}) \hat{s}_i = {}^MO_{K,x} k_i \hat{s}_{i,y} \hat{s}_i - {}^MO_{K,y} k_i \hat{s}_{i,x} \hat{s}_i +\end{equation} + ++And we have two sets of linear equations of two unknowns. +
+ ++This can be easily solved by writing the equations in a matrix form: +
+\begin{equation} +\underbrace{k_i ({}^Mb_{i,x}\hat{s}_{i,y} - {}^Mb_{i,y}\hat{s}_{i,x}) \hat{s}_i}_{2 \times 1} = +\underbrace{\begin{bmatrix} +& \\ +k_i \hat{s}_{i,y} \hat{s}_i & - k_i \hat{s}_{i,x} \hat{s}_i \\ +& \\ +\end{bmatrix}}_{2 \times 2} +\underbrace{\begin{bmatrix} +{}^MO_{K,x}\\ +{}^MO_{K,y} +\end{bmatrix}}_{2 \times 1} +\end{equation} + ++And finally, if the matrix is invertible: +
+\begin{equation} +\boxed{ +{}^MO_K = {\begin{bmatrix} +& \\ +k_i \hat{s}_{i,y} \hat{s}_i & - k_i \hat{s}_{i,x} \hat{s}_i \\ +& \\ +\end{bmatrix}}^{-1} k_i ({}^Mb_{i,x}\hat{s}_{i,y} - {}^Mb_{i,y}\hat{s}_{i,x}) \hat{s}_i +} +\end{equation} + ++Note that a rotation of the frame \(\{K\}\) with respect to frame \(\{M\}\) would make not change on the “diagonality” of \(K_{\{K\}}\). +
++Consider system of Figure 30. +
+ + ++
+Figure 30: Example of 3DoF parallel platform
++The stiffnesses \(k_i\), the joint positions \({}^Mb_i\) and joint unit vectors \({}^M\hat{s}_i\) are defined below: +
+ki = [5,1,2]; % Stiffnesses [N/m] +si = [[1;0],[0;1],[0;1]]; si = si./vecnorm(si); % Unit Vectors +bi = [[-1;0.5],[-2;-1],[0;-1]]; % Joint's positions in frame {M} ++
+Let’s first verify that condition \eqref{diag_cond_2D_1} is true: +
+ki.*si*si' ++
5 | +0 | +
0 | +2 | +
+Now, compute \({}^MO_K\): +
+Ok = inv([sum(ki.*si(2,:).*si, 2), -sum(ki.*si(1,:).*si, 2)])*sum(ki.*(bi(1,:).*si(2,:) - bi(2,:).*si(1,:)).*si, 2); ++
+Let’s compute the new coordinates \({}^Kb_i\) after the change of frame: +
+Kbi = bi - Ok;
+
++In order to verify that the new frame \(\{K\}\) indeed yields a diagonal stiffness matrix, we first compute the Jacobian \(J_{\{K\}}\): +
+Jk = [si', (Kbi(1,:).*si(2,:) - Kbi(2,:).*si(1,:))']; ++
+And the stiffness matrix: +
+K = Jk'*diag(ki)*Jk ++
+Now consider the planar manipulator of Figure 31. +
+ + ++
+Figure 31: Planar Manipulator
++The stiffnesses \(k_i\), the joint positions \({}^Mb_i\) and joint unit vectors \({}^M\hat{s}_i\) are defined below: +
+ki = [1,2,1,1]; +si = [[1;0],[0;1],[-1;0],[0;1]]; +si = si./vecnorm(si); +h = 0.2; +L = 2; +bi = [[-L/2;h],[-L/2;-h],[L/2;h],[L/2;h]]; ++
+Let’s first verify that condition \eqref{diag_cond_2D_1} is true: +
+ki.*si*si' ++
2 | +0 | +
0 | +3 | +
+Now, compute \({}^MO_K\): +
+Ok = inv([sum(ki.*si(2,:).*si, 2), -sum(ki.*si(1,:).*si, 2)])*sum(ki.*(bi(1,:).*si(2,:) - bi(2,:).*si(1,:)).*si, 2); ++
+Let’s compute the new coordinates \({}^Kb_i\) after the change of frame: +
+Kbi = bi - Ok;
+
++In order to verify that the new frame \(\{K\}\) indeed yields a diagonal stiffness matrix, we first compute the Jacobian \(J_{\{K\}}\): +
+Jk = [si', (Kbi(1,:).*si(2,:) - Kbi(2,:).*si(1,:))']; ++
+And the stiffness matrix: +
+K = Jk'*diag(ki)*Jk ++
+Let’s consider a 6dof parallel manipulator with: +
++Consider two frames: +
++An example is shown in Figure 32. +
+ + ++
+Figure 32: 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. +If the conditions are fulfilled, a second objective is to fine the location of the frame \(\{K\}\) analytically. +
++For a fully parallel manipulator, the stiffness matrix \(K_{\{K\}}\) expressed in a frame \(\{K\}\) is: +
+\begin{equation} + K_{\{K\}} = J_{\{K\}}^T \mathcal{K} J_{\{K\}} +\end{equation} ++where: +
++The analytical expression of \(J_{\{K\}}\) is: +
+\begin{equation} +J_{\{K\}} = \begin{bmatrix} + {}^K\hat{s}_1^T & ({}^Kb_1 \times {}^K\hat{s}_1)^T \\ + {}^K\hat{s}_2^T & ({}^Kb_2 \times {}^K\hat{s}_2)^T \\ + \vdots & \vdots \\ + {}^K\hat{s}_n^T & ({}^Kb_n \times {}^K\hat{s}_n)^T +\end{bmatrix} +\end{equation} + ++To simplify, we ignore the superscript \(K\) and we assume that all vectors / positions are expressed in this frame \(\{K\}\). +Otherwise, it is explicitly written. +
+ ++Let’s now write the analytical expressing of the stiffness matrix \(K_{\{K\}}\): +
+\begin{equation} +K_{\{K\}} = \begin{bmatrix} + \hat{s}_1 & \dots & \hat{s}_n \\ + (b_1 \times \hat{s}_1) & \dots & (b_n \times \hat{s}_n) +\end{bmatrix} +\begin{bmatrix} + k_1 & & \\ + & \ddots & \\ + & & k_n +\end{bmatrix} +\begin{bmatrix} + \hat{s}_1^T & (b_1 \times \hat{s}_1)^T \\ + \hat{s}_2^T & (b_2 \times \hat{s}_2)^T \\ + \vdots & \dots \\ + \hat{s}_n^T & (b_n \times \hat{s}_n)^T +\end{bmatrix} +\end{equation} + ++And we finally obtain: +
+\begin{equation} +\boxed{ +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 +\end{array} \right] +} +\end{equation} + ++We want the stiffness matrix to be diagonal, therefore, we have the following conditions: +
+\begin{align} +k_i \hat{s}_i \hat{s}_i^T &= \text{diag. matrix} \label{eq:diag_cond_1} \\ +k_i (b_i \times \hat{s}_i) (b_i \times \hat{s}_i)^T &= \text{diag. matrix} \label{eq:diag_cond_2} \\ +k_i \hat{s}_i (b_i \times \hat{s}_i)^T &= 0 \label{eq:diag_cond_3} +\end{align} + ++Note that: +
++Note that if we find a frame \(\{K\}\) in which the stiffness matrix \(K_{\{K\}}\) is diagonal, it will still be diagonal for any rotation of the frame \(\{K\}\). +Therefore, we here suppose that the frame \(\{K\}\) is aligned with the initial frame \(\{M\}\). +
+ ++Let’s make a change of frame from the initial frame \(\{M\}\) to the frame \(\{K\}\): +
+\begin{align} +{}^Kb_i &= {}^Mb_i - {}^MO_K \\ +{}^K\hat{s}_i &= {}^M\hat{s}_i +\end{align} + ++The goal is to find \({}^MO_K\) such that conditions \eqref{eq:diag_cond_2} and \eqref{eq:diag_cond_3} are fulfilled. +
+ ++Let’s first solve equation \eqref{eq:diag_cond_3} that corresponds to the coupling between forces and rotations: +
+\begin{equation} +k_i \hat{s}_i (({}^Mb_i - {}^MO_K) \times \hat{s}_i)^T = 0 +\end{equation} + ++Taking the transpose and re-arranging: +
+\begin{equation} +k_i ({}^Mb_i \times \hat{s}_i) \hat{s}_i^T = k_i ({}^MO_K \times \hat{s}_i) \hat{s}_i^T +\end{equation} + ++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 ) +\end{equation} + ++with: +
+\begin{equation} \label{eq:skew_symmetric_cross_product} +{}^M\bm{O}_K = \begin{bmatrix} +0 & -{}^MO_{K,z} & {}^MO_{K,y} \\ +{}^MO_{K,z} & 0 & -{}^MO_{K,x} \\ +-{}^MO_{K,y} & {}^MO_{K,x} & 0 +\end{bmatrix} +\end{equation} + ++We suppose \(k_i \hat{s}_i \hat{s}_i^T\) invertible as it is diagonal from \eqref{eq:diag_cond_1}. +
+ ++And finally, we find: +
+\begin{equation} +\boxed{ +{}^M\bm{O}_{K} = \left( k_i ({}^Mb_i \times \hat{s}_i) \hat{s}_i^T\right) \cdot {\left( k_i \hat{s}_i \hat{s}_i^T \right)}^{-1} +} +\end{equation} + ++If the obtained \({}^M\bm{O}_{K}\) is a skew-symmetric matrix, we can easily determine the corresponding vector \({}^MO_K\) from \eqref{eq:skew_symmetric_cross_product}. +
+ ++In such case, condition \eqref{eq:diag_cond_2} is fulfilled and there is no coupling between translations and rotations in the frame \(\{K\}\). +
+ ++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. +
+ ++Let’s define the geometry of the manipulator (\({}^Mb_i\), \({}^Ms_i\) and \(k_i\)): +
+ki = [2,2,1,1,3,3,1,1,1,1,2,2]; +si = [[-1;0;0],[-1;0;0],[-1;0;0],[-1;0;0],[0;0;1],[0;0;1],[0;0;1],[0;0;1],[0;-1;0],[0;-1;0],[0;-1;0],[0;-1;0]]; +bi = [[1;-1;1],[1;1;-1],[1;1;1],[1;-1;-1],[1;-1;-1],[-1;1;-1],[1;1;-1],[-1;-1;-1],[1;1;-1],[-1;1;1],[-1;1;-1],[1;1;1]]-[0;2;-1]; ++
+Cond 1: +
+ki.*si*si' ++
6 | +0 | +0 | +
0 | +6 | +0 | +
0 | +0 | +8 | +
+Find Ok +
+OkX = (ki.*cross(bi, si)*si')/(ki.*si*si'); + +if all(diag(OkX) == 0) && all(all((OkX + OkX') == 0)) + disp('OkX is skew symmetric') + Ok = [OkX(3,2);OkX(1,3);OkX(2,1)] +else + error('OkX is *not* skew symmetric') +end ++
0 | +
-2 | +
1 | +
% Verification of second condition +si*cross(bi-Ok, si)' ++
0 | +0 | +0 | +
0 | +0 | +0 | +
0 | +0 | +0 | +
+Verification of third condition +
+ki.*cross(bi-Ok, si)*cross(bi-Ok, si)' ++
14 | +4 | +-2 | +
4 | +14 | +2 | +
-2 | +2 | +12 | +
+Let’s compute the Jacobian: +
+Jk = [si', cross(bi - Ok, si)']; ++
+And the stiffness matrix: +
+Jk'*diag(ki)*Jk ++
6 | +0 | +0 | +0 | +0 | +0 | +
0 | +6 | +0 | +0 | +0 | +0 | +
0 | +0 | +8 | +0 | +0 | +0 | +
0 | +0 | +0 | +14 | +4 | +-2 | +
0 | +0 | +0 | +4 | +14 | +2 | +
0 | +0 | +0 | +-2 | +2 | +12 | +
figure; +hold on; +set(gca,'ColorOrderIndex',1) +plot(b1(1), b1(2), 'o'); +set(gca,'ColorOrderIndex',2) +plot(b2(1), b2(2), 'o'); +set(gca,'ColorOrderIndex',3) +plot(b3(1), b3(2), 'o'); +set(gca,'ColorOrderIndex',1) +quiver(b1(1),b1(2),0.1*s1(1),0.1*s1(2)) +set(gca,'ColorOrderIndex',2) +quiver(b2(1),b2(2),0.1*s2(1),0.1*s2(2)) +set(gca,'ColorOrderIndex',3) +quiver(b3(1),b3(2),0.1*s3(1),0.1*s3(2)) + +plot(0, 0, 'ko'); +quiver([0,0],[0,0],[0.1,0],[0,0.1], 'k') + +plot(Ok(1), Ok(2), 'ro'); +quiver([Ok(1),Ok(1)],[Ok(2),Ok(2)],[0.1,0],[0,0.1], 'r') + +hold off; +axis equal; ++
-In this analysis, we wish to applied SVD control to the Stewart Platform shown in Figure 29. +In this analysis, we wish to applied SVD control to the Stewart Platform shown in Figure 33.
@@ -1703,33 +2589,33 @@ Some notes about the system: -
-
Figure 29: Stewart Platform CAD View
+Figure 33: 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');
@@ -1785,30 +2671,30 @@ Kc = tf(zeros(6));
-
Figure 30: General view of the Simscape Model
+Figure 34: General view of the Simscape Model
-
Figure 31: Simscape model of the Stewart platform
+Figure 35: Simscape model of the Stewart platform
-The plant shown in Figure 32 is identified from the Simscape model. +The plant shown in Figure 36 is identified from the Simscape model.
@@ -1824,10 +2710,10 @@ The outputs are the 6 accelerations measured by the inertial unit.
--
Figure 32: 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 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
-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 33. +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.
@@ -1874,20 +2760,20 @@ One can easily see that the system is strongly coupled.
--
Figure 33: Magnitude of all 36 elements of the transfer function matrix \(G_u\)
+Figure 37: Magnitude of all 36 elements of the transfer function matrix \(G_u\)
- -Consider the control architecture shown in Figure 34. + +Consider the control architecture shown in Figure 38. The Jacobian matrix is used to transform forces/torques applied on the top platform to the equivalent forces applied by each actuator.
@@ -1969,10 +2855,10 @@ The Jacobian matrix is computed from the geometry of the platform (position and --
Figure 34: Decoupled plant \(\bm{G}_x\) using the Jacobian matrix \(J\)
+Figure 38: Decoupled plant \(\bm{G}_x\) using the Jacobian matrix \(J\)
@@ -1992,11 +2878,11 @@ Gx.InputName = {'Fx',
@@ -2332,14 +3218,14 @@ 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 35. +The obtained matrices \(U\) and \(V\) are used to decouple the system as shown in Figure 39.
--
Figure 35: Decoupled plant \(\bm{G}_{SVD}\) using the Singular Value Decomposition
+Figure 39: Decoupled plant \(\bm{G}_{SVD}\) using the Singular Value Decomposition
@@ -2354,11 +3240,11 @@ The decoupled plant is then:
@@ -2374,19 +3260,19 @@ The “Gershgorin Radii” of a matrix \(S\) is defined by: This is computed over the following frequencies.
--
Figure 36: Gershgorin Radii of the Coupled and Decoupled plants
+Figure 40: Gershgorin Radii of the Coupled and Decoupled plants
@@ -2400,55 +3286,55 @@ where \(\times\) denotes an element by element multiplication and \(G(s)\) is an
-The obtained RGA elements are shown in Figure 37. +The obtained RGA elements are shown in Figure 41.
--
Figure 37: Obtained norm of RGA elements for the SVD decoupled plant and the Jacobian decoupled plant
+Figure 41: 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 38. +The bode plot of the diagonal and off-diagonal elements of \(G_{SVD}\) are shown in Figure 42.
--
Figure 38: Decoupled Plant using SVD
+Figure 42: 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 39. +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.
--
Figure 39: 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 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)
- -The control diagram for the centralized control is shown in Figure 40. + +The control diagram for the centralized control is shown in Figure 44.
@@ -2457,22 +3343,22 @@ The Jacobian is used to convert forces in the cartesian frame to forces applied
--
Figure 40: Control Diagram for the Centralized control
+Figure 44: Control Diagram for the Centralized control
-The SVD control architecture is shown in Figure 41. +The SVD control architecture is shown in Figure 45. The matrices \(U\) and \(V\) are used to decoupled the plant \(G\).
--
Figure 41: Control Diagram for the SVD control
+Figure 45: Control Diagram for the SVD control
-The obtained diagonal elements of the loop gains are shown in Figure 42. +The obtained diagonal elements of the loop gains are shown in Figure 46.
--
Figure 42: Comparison of the diagonal elements of the loop gains for the SVD control architecture and the Jacobian one
+Figure 46: Comparison of the diagonal elements of the loop gains for the SVD control architecture and the Jacobian one
@@ -2553,14 +3439,14 @@ ans =
-The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure 43. +The obtained transmissibility in Open-loop, for the centralized control as well as for the SVD control are shown in Figure 47.
--
Figure 43: Obtained Transmissibility
+Figure 47: Obtained Transmissibility
Created: 2021-01-25 lun. 11:44
+Created: 2021-02-05 ven. 13:54