2020-01-27 17:42:09 +01: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 >
2021-01-08 15:34:53 +01:00
<!-- 2021 - 01 - 08 ven. 15:29 -->
2020-01-27 17:42:09 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< title > Stewart Platform - Definition of the Architecture< / title >
< meta name = "generator" content = "Org mode" / >
< meta name = "author" content = "Dehaeze Thomas" / >
2021-01-08 15:34:53 +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 >
< script >
MathJax = {
svg: {
scale: 1,
fontCache: "global"
},
tex: {
tags: "ams",
multlineWidth: "%MULTLINEWIDTH",
tagSide: "right",
macros: {bm: ["\\boldsymbol{#1}",1],},
tagIndent: ".8em"
}
};
< / script >
< script id = "MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">< / script >
2020-01-27 17:42:09 +01: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" > Stewart Platform - Definition of the Architecture< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org66eb6f3" > 1. Definition of the Stewart Platform Geometry< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org77ddd8a" > 1.1. Frames Definition< / a > < / li >
< li > < a href = "#orgd5fc2b4" > 1.2. Location of the Spherical Joints< / a > < / li >
< li > < a href = "#org80e97a5" > 1.3. Length and orientation of the struts< / a > < / li >
< li > < a href = "#orgfb2bbfa" > 1.4. Rest Position of the Stewart platform< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgb91e8d2" > 2. Definition of the Inertia and geometry of the Fixed base, Mobile platform and Struts< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org12ee2cf" > 2.1. Inertia and Geometry of the Fixed and Mobile platforms< / a > < / li >
< li > < a href = "#orgf5bc935" > 2.2. Inertia and Geometry of the struts< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgdb5d038" > 3. Definition of the stiffness and damping of the joints< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org3b9ead4" > 3.1. Stiffness and Damping of the Actuator< / a > < / li >
< li > < a href = "#orgaf5b761" > 3.2. Stiffness and Damping of the Spherical Joints< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org0d823ef" > 4. Summary of the Initialization Procedure and Matlab Example< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org64b43bc" > 4.1. Example of the initialization of a Stewart Platform< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org6feaead" > 5. Functions< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgb54aa6c" > 5.1. < code > initializeStewartPlatform< / code > : Initialize the Stewart Platform structure< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgeab98fd" > Documentation< / a > < / li >
< li > < a href = "#orge8a001f" > Function description< / a > < / li >
< li > < a href = "#orgc4197aa" > Initialize the Stewart structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org1a8cfde" > 5.2. < code > initializeFramesPositions< / code > : Initialize the positions of frames {A}, {B}, {F} and {M}< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org22404ae" > Documentation< / a > < / li >
< li > < a href = "#org438a9a6" > Function description< / a > < / li >
< li > < a href = "#org83c364b" > Optional Parameters< / a > < / li >
< li > < a href = "#orgf345222" > Compute the position of each frame< / a > < / li >
< li > < a href = "#org615717a" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org33634da" > 5.3. < code > generateGeneralConfiguration< / code > : Generate a Very General Configuration< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgb5187fb" > Documentation< / a > < / li >
< li > < a href = "#org63ee9a7" > Function description< / a > < / li >
< li > < a href = "#org4f489d6" > Optional Parameters< / a > < / li >
< li > < a href = "#orgac7b186" > Compute the pose< / a > < / li >
< li > < a href = "#org7ee1bf3" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orga24b055" > 5.4. < code > computeJointsPose< / code > : Compute the Pose of the Joints< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgfb8bc86" > Documentation< / a > < / li >
< li > < a href = "#org38e5459" > Function description< / a > < / li >
< li > < a href = "#org0251695" > Optional Parameters< / a > < / li >
< li > < a href = "#org72f258f" > Check the < code > stewart< / code > structure elements< / a > < / li >
< li > < a href = "#org6fa7255" > Compute the position of the Joints< / a > < / li >
< li > < a href = "#org775652f" > Compute the strut length and orientation< / a > < / li >
< li > < a href = "#org343f9a2" > Compute the orientation of the Joints< / a > < / li >
< li > < a href = "#org1b37bf3" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org9068596" > 5.5. < code > initializeStewartPose< / code > : Determine the initial stroke in each leg to have the wanted pose< / a >
2020-01-28 17:15:19 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgcdbf33b" > Function description< / a > < / li >
< li > < a href = "#org504e794" > Optional Parameters< / a > < / li >
< li > < a href = "#org2b0bd7e" > Use the Inverse Kinematic function< / a > < / li >
< li > < a href = "#orgba4396e" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org7298863" > 5.6. < code > initializeCylindricalPlatforms< / code > : Initialize the geometry of the Fixed and Mobile Platforms< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgef552b3" > Function description< / a > < / li >
< li > < a href = "#org615c98a" > Optional Parameters< / a > < / li >
< li > < a href = "#orgca11714" > Compute the Inertia matrices of platforms< / a > < / li >
< li > < a href = "#orgb627b06" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgca778d6" > 5.7. < code > initializeSolidPlatforms< / code > : Initialize the geometry of the Fixed and Mobile Platforms< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orga04c43a" > Function description< / a > < / li >
< li > < a href = "#orgbd3043d" > Optional Parameters< / a > < / li >
< li > < a href = "#org98e7ef0" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgc775d7a" > 5.8. < code > initializeCylindricalStruts< / code > : Define the inertia of cylindrical struts< / a >
2020-01-27 17:42:09 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org8cd1454" > Function description< / a > < / li >
< li > < a href = "#orgef6f474" > Optional Parameters< / a > < / li >
< li > < a href = "#orge60177a" > Compute the properties of the cylindrical struts< / a > < / li >
< li > < a href = "#org88ed9a1" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-02-07 17:12:26 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org3ceb0b1" > 5.9. < code > initializeStrutDynamics< / code > : Add Stiffness and Damping properties of each strut< / a >
2020-02-07 17:12:26 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgf551d66" > Documentation< / a > < / li >
< li > < a href = "#org288b140" > Function description< / a > < / li >
< li > < a href = "#org38d63af" > Optional Parameters< / a > < / li >
< li > < a href = "#org815b218" > Add Stiffness and Damping properties of each strut< / a > < / li >
2020-02-10 18:17:37 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org1d017e8" > 5.10. < code > initializeAmplifiedStrutDynamics< / code > : Add Stiffness and Damping properties of each strut for an amplified piezoelectric actuator< / a >
2020-02-10 18:17:37 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org74e4b19" > Documentation< / a > < / li >
< li > < a href = "#org9c0ae7d" > Function description< / a > < / li >
< li > < a href = "#org3deb05f" > Optional Parameters< / a > < / li >
< li > < a href = "#org52a586e" > Compute the total stiffness and damping< / a > < / li >
< li > < a href = "#org0576b9c" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-08-05 13:28:14 +02:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org0d2f9e2" > 5.11. < code > initializeFlexibleStrutDynamics< / code > : Model each strut with a flexible element< / a >
2020-08-05 13:28:14 +02:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org083e758" > Function description< / a > < / li >
< li > < a href = "#orgff49923" > Optional Parameters< / a > < / li >
< li > < a href = "#org56a8783" > Compute the axial offset< / a > < / li >
< li > < a href = "#orgb037aa7" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-02-11 15:16:07 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org7666a0d" > 5.12. < code > initializeJointDynamics< / code > : Add Stiffness and Damping properties for spherical joints< / a >
2020-02-11 15:16:07 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#orgd95bcc9" > Function description< / a > < / li >
< li > < a href = "#orgd046fdd" > Optional Parameters< / a > < / li >
< li > < a href = "#org1c44749" > Add Actuator Type< / a > < / li >
< li > < a href = "#org8a45695" > Add Stiffness and Damping in Translation of each strut< / a > < / li >
< li > < a href = "#orgcba9dbe" > Add Stiffness and Damping in Rotation of each strut< / a > < / li >
< li > < a href = "#orge78c1bc" > Stiffness and Mass matrices for flexible joint< / a > < / li >
2020-02-11 15:16:07 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org995e0ff" > 5.13. < code > initializeFlexibleStrutAndJointDynamics< / code > : Model each strut with a flexible element< / a >
2020-02-11 15:16:07 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org796edd5" > Function description< / a > < / li >
< li > < a href = "#org81f8b20" > Optional Parameters< / a > < / li >
< li > < a href = "#org67ae6f5" > Compute the axial offset< / a > < / li >
< li > < a href = "#orgb405c72" > Populate the < code > stewart< / code > structure< / a > < / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org0873774" > 5.14. < code > initializeInertialSensor< / code > : Initialize the inertial sensor in each strut< / a >
2020-03-13 10:06:18 +01:00
< ul >
2021-01-08 15:34:53 +01:00
< li > < a href = "#org8521d8c" > Geophone - Working Principle< / a > < / li >
< li > < a href = "#org66673a3" > Accelerometer - Working Principle< / a > < / li >
< li > < a href = "#org6242c90" > Function description< / a > < / li >
< li > < a href = "#orge44b879" > Optional Parameters< / a > < / li >
< li > < a href = "#org96a29e4" > Compute the properties of the sensor< / a > < / li >
< li > < a href = "#orgc8f8c81" > Populate the < code > stewart< / code > structure< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org5a66d3a" > 5.15. < code > displayArchitecture< / code > : 3D plot of the Stewart platform architecture< / a >
< ul >
< li > < a href = "#orga146c7e" > Function description< / a > < / li >
< li > < a href = "#orgca3d076" > Optional Parameters< / a > < / li >
< li > < a href = "#org8f74792" > Check the < code > stewart< / code > structure elements< / a > < / li >
< li > < a href = "#orgb7e5d05" > Figure Creation, Frames and Homogeneous transformations< / a > < / li >
< li > < a href = "#orge26b777" > Fixed Base elements< / a > < / li >
< li > < a href = "#org8dd54b6" > Mobile Platform elements< / a > < / li >
< li > < a href = "#org3569efd" > Legs< / a > < / li >
< li > < a href = "#orgcb42b83" > 5.15.1. Figure parameters< / a > < / li >
< li > < a href = "#org06467e9" > 5.15.2. Subplots< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org02e6772" > 5.16. < code > describeStewartPlatform< / code > : Display some text describing the current defined Stewart Platform< / a >
< ul >
< li > < a href = "#org4c43493" > Function description< / a > < / li >
< li > < a href = "#org55b09bc" > Optional Parameters< / a > < / li >
< li > < a href = "#orge43c89a" > 5.16.1. Geometry< / a > < / li >
< li > < a href = "#org41beea5" > 5.16.2. Actuators< / a > < / li >
< li > < a href = "#org293e123" > 5.16.3. Joints< / a > < / li >
< li > < a href = "#org94283a1" > 5.16.4. Kinematics< / a > < / li >
2020-03-13 10:06:18 +01:00
< / ul >
< / li >
2020-01-27 17:42:09 +01:00
< / ul >
< / li >
< / ul >
< / div >
< / div >
< p >
2020-01-28 17:15:19 +01:00
In this document is explained how the Stewart Platform architecture is defined.
< / p >
< p >
Some efforts has been made such that the procedure for the definition of the Stewart Platform architecture is as logical and clear as possible.
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-08-05 13:28:14 +02:00
When possible, the notations are compatible with the one used in (< a href = "#citeproc_bib_item_1" > Taghirad 2013< / a > ).
2020-01-28 17:15:19 +01:00
< / p >
< p >
The definition of the Stewart platform is done in three main parts:
< / p >
< ul class = "org-ul" >
2021-01-08 15:34:53 +01:00
< li > First, the geometry if defined (Section < a href = "#orgff0f4ef" > 1< / a > )< / li >
< li > Then, the inertia of the mechanical elements are defined (Section < a href = "#orgb20dd00" > 2< / a > )< / li >
< li > Finally, the Stiffness and Damping characteristics of the elements are defined (Section < a href = "#orgbc31729" > 3< / a > )< / li >
2020-01-28 17:15:19 +01:00
< / ul >
< p >
2021-01-08 15:34:53 +01:00
In section < a href = "#orge881ef0" > 4< / a > , the procedure the initialize the Stewart platform is summarize and the associated Matlab code is shown.
2020-01-28 17:15:19 +01:00
< / p >
< p >
2021-01-08 15:34:53 +01:00
Finally, all the Matlab function used to initialize the Stewart platform are described in section < a href = "#orgc1976a8" > 5< / a > .
2020-01-28 17:15:19 +01:00
< / p >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org66eb6f3" class = "outline-2" >
< h2 id = "org66eb6f3" > < span class = "section-number-2" > 1< / span > Definition of the Stewart Platform Geometry< / h2 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-2" id = "text-1" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orgff0f4ef" > < / a >
2020-01-28 17:15:19 +01:00
< / p >
< p >
Stewart platforms are generated in multiple steps:
< / p >
< ul class = "org-ul" >
< li > Definition of the frames< / li >
< li > Definition of the location of the joints< / li >
< li > Computation of the length and orientation of the struts< / li >
< li > Choice of the rest position of the mobile platform< / li >
< / ul >
< p >
This steps are detailed below.
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org77ddd8a" class = "outline-3" >
< h3 id = "org77ddd8a" > < span class = "section-number-3" > 1.1< / span > Frames Definition< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-1-1" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
We define 4 important < b > frames< / b > (see Figure < a href = "#orgc2b1371" > 1< / a > ):
2020-01-27 17:42:09 +01:00
< / p >
< ul class = "org-ul" >
< li > \(\{F\}\): Frame fixed to the < b > Fixed< / b > base and located at the center of its bottom surface.
This is used to fix the Stewart platform to some support.< / li >
< li > \(\{M\}\): Frame fixed to the < b > Moving< / b > platform and located at the center of its top surface.
This is used to place things on top of the Stewart platform.< / li >
2020-01-28 17:15:19 +01:00
< li > \(\{A\}\): Frame fixed to the fixed base.< / li >
< li > \(\{B\}\): Frame fixed to the moving platform.< / li >
< / ul >
< p >
Even though frames \(\{A\}\) and \(\{B\}\) don’ t usually correspond to physical elements, they are of primary importance.
Firstly, they are used for the definition of the motion of the Mobile platform with respect to the fixed frame:
< / p >
< ul class = "org-ul" >
< li > In position: \({}^A\bm{P}_{B}\) (read: Position of frame \(\{B\}\) expressed in frame \(\{A\}\))< / li >
< li > In rotation: \({}^A\bm{R}_{B}\) (read: The rotation matrix that express the orientation of frame \(\{B\}\) expressed in frame \(\{A\}\))< / li >
2020-01-27 17:42:09 +01:00
< / ul >
2020-01-28 17:15:19 +01:00
< p >
The frames \(\{A\}\) and \(\{B\}\) are used for all the kinematic analysis (Jacobian, Stiffness matrix, … ).
< / p >
2020-01-27 17:42:09 +01:00
< p >
2020-01-28 17:15:19 +01:00
Typical choice of \(\{A\}\) and \(\{B\}\) are:
< / p >
< ul class = "org-ul" >
< li > Center of mass of the payload< / li >
< li > Location where external forces are applied to the mobile platform (for instance when the mobile platform is in contact with a stiff environment)< / li >
< li > Center of the cube for the cubic configuration< / li >
< / ul >
< p >
2021-01-08 15:34:53 +01:00
The definition of the frames is done with the < code > initializeFramesPositions< / code > function (< a href = "#org937f0f9" > link< / a > );
2020-01-28 17:15:19 +01:00
< / p >
2021-01-08 15:34:53 +01:00
< div id = "orgc2b1371" class = "figure" >
2020-01-28 17:15:19 +01:00
< p > < img src = "figs/frame_definition.png" alt = "frame_definition.png" width = "500px" / >
< / p >
< p > < span class = "figure-number" > Figure 1: < / span > Definition of the Frames for the Stewart Platform< / p >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgd5fc2b4" class = "outline-3" >
< h3 id = "orgd5fc2b4" > < span class = "section-number-3" > 1.2< / span > Location of the Spherical Joints< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-1-2" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
Then, we define the < b > location of the spherical joints< / b > (see Figure < a href = "#orgcfe34cf" > 2< / a > ):
2020-01-27 17:42:09 +01:00
< / p >
< ul class = "org-ul" >
< li > \(\bm{a}_{i}\) are the position of the spherical joints fixed to the fixed base< / li >
< li > \(\bm{b}_{i}\) are the position of the spherical joints fixed to the moving platform< / li >
< / ul >
< p >
2020-01-28 17:15:19 +01:00
The location of the joints will define the Geometry of the Stewart platform.
Many characteristics of the platform depend on the location of the joints.
< / p >
< p >
2020-02-06 17:25:38 +01:00
The location of the joints can be set to arbitrary positions or it can be computed to obtain specific configurations such as:
2020-01-27 17:42:09 +01:00
< / p >
< ul class = "org-ul" >
2020-02-06 17:25:38 +01:00
< li > A cubic configuration: function < code > generateCubicConfiguration< / code > (described in < a href = "cubic-configuration.html" > this< / a > file)< / li >
2020-01-28 17:15:19 +01:00
< li > A symmetrical configuration< / li >
2020-01-27 17:42:09 +01:00
< / ul >
2020-02-06 17:25:38 +01:00
< p >
2021-01-08 15:34:53 +01:00
A function (< code > generateGeneralConfiguration< / code > ) to set the position of the joints on a circle is described < a href = "#orge6afa82" > here< / a > .
2020-02-06 17:25:38 +01:00
< / p >
2020-01-27 17:42:09 +01:00
< p >
2020-01-28 17:15:19 +01:00
The location of the spherical joints are then given by \({}^{F}\bm{a}_{i}\) and \({}^{M}\bm{b}_{i}\).
< / p >
2021-01-08 15:34:53 +01:00
< div id = "orgcfe34cf" class = "figure" >
2020-01-28 17:15:19 +01:00
< p > < img src = "figs/joint_location.png" alt = "joint_location.png" width = "500px" / >
< / p >
< p > < span class = "figure-number" > Figure 2: < / span > Position of the Spherical/Universal joints for the Stewart Platform< / p >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org80e97a5" class = "outline-3" >
< h3 id = "org80e97a5" > < span class = "section-number-3" > 1.3< / span > Length and orientation of the struts< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-1-3" >
2020-01-28 17:15:19 +01:00
< p >
From the location of the joints (\({}^{F}\bm{a}_{i}\) and \({}^{M}\bm{b}_{i}\)), we compute the length \(l_i\) and orientation of each strut \(\hat{\bm{s}}_i\) (unit vector aligned with the strut).
2021-01-08 15:34:53 +01:00
The length and orientation of each strut is represented in figure < a href = "#org36b0cca" > 3< / a > .
2020-01-28 17:15:19 +01:00
< / p >
< p >
2021-01-08 15:34:53 +01:00
This is done with the < code > computeJointsPose< / code > function (< a href = "#org1ea8332" > link< / a > ).
2020-01-28 17:15:19 +01:00
< / p >
2021-01-08 15:34:53 +01:00
< div id = "org36b0cca" class = "figure" >
2020-01-28 17:15:19 +01:00
< p > < img src = "figs/length_orientation_struts.png" alt = "length_orientation_struts.png" width = "500px" / >
< / p >
< p > < span class = "figure-number" > Figure 3: < / span > Length \(l_i\) and orientation \(\hat{\bm{s}}_i\) of the Stewart platform struts< / p >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgfb2bbfa" class = "outline-3" >
< h3 id = "orgfb2bbfa" > < span class = "section-number-3" > 1.4< / span > Rest Position of the Stewart platform< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-1-4" >
2020-01-28 17:15:19 +01:00
< p >
We may want to initialize the Stewart platform in some position and orientation that corresponds to its rest position.
< / p >
< p >
To do so, we choose:
2020-01-27 17:42:09 +01:00
< / p >
< ul class = "org-ul" >
2020-01-28 17:18:10 +01:00
< li > the position of \(\bm{O}_B\) expressed in \(\{A\}\) using \({}^A\bm{P}\)< / li >
< li > the orientation of \(\{B\}\) expressed in \(\{A\}\) using a rotation matrix \({}^{A}\bm{R}_{B}\)< / li >
2020-01-27 17:42:09 +01:00
< / ul >
< p >
2021-01-08 15:34:53 +01:00
Then, the function < code > initializeStewartPose< / code > (< a href = "#orgae6d775" > link< / a > ) compute the corresponding initial and rest position of each of the strut.
2020-01-28 17:15:19 +01:00
< / p >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgb91e8d2" class = "outline-2" >
< h2 id = "orgb91e8d2" > < span class = "section-number-2" > 2< / span > Definition of the Inertia and geometry of the Fixed base, Mobile platform and Struts< / h2 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-2" id = "text-2" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orgb20dd00" > < / a >
2020-01-28 17:15:19 +01:00
< / p >
< p >
Now that the geometry of the Stewart platform has been defined, we have to choose the inertia of:
2020-01-27 17:42:09 +01:00
< / p >
< ul class = "org-ul" >
2020-01-28 17:15:19 +01:00
< li > The Fixed base< / li >
< li > The Mobile platform< / li >
< li > The two parts of the struts< / li >
2020-01-27 17:42:09 +01:00
< / ul >
< p >
2020-01-28 17:15:19 +01:00
The inertia of these elements will modify the dynamics of the systems.
It is thus important to set them properly.
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org12ee2cf" class = "outline-3" >
< h3 id = "org12ee2cf" > < span class = "section-number-3" > 2.1< / span > Inertia and Geometry of the Fixed and Mobile platforms< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-2-1" >
2020-01-28 17:15:19 +01:00
< p >
In order to set the inertia of the fixed and mobile platforms, we can use the following function that assume that both platforms are cylindrical:
2020-01-27 17:42:09 +01:00
< / p >
< ul class = "org-ul" >
2021-01-08 15:34:53 +01:00
< li > < code > initializeCylindricalPlatforms< / code > (< a href = "#org7858fd0" > link< / a > ): by choosing the height, radius and mass of the platforms, it computes the inertia matrix that will be used for simulation< / li >
2020-01-27 17:42:09 +01:00
< / ul >
2020-01-28 17:15:19 +01:00
< / div >
< / div >
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgf5bc935" class = "outline-3" >
< h3 id = "orgf5bc935" > < span class = "section-number-3" > 2.2< / span > Inertia and Geometry of the struts< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-2-2" >
2020-01-28 17:15:19 +01:00
< p >
Similarly for the struts, we suppose here that they have a cylindrical shape.
They are initialize with the following function:
< / p >
< ul class = "org-ul" >
2021-01-08 15:34:53 +01:00
< li > < code > initializeCylindricalStruts< / code > (< a href = "#org92cf424" > link< / a > ): the two parts of each strut are supposed to by cylindrical. We can set the mass and geometry of both strut parts.< / li >
2020-01-28 17:15:19 +01:00
< / ul >
< / div >
< / div >
< / div >
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgdb5d038" class = "outline-2" >
< h2 id = "orgdb5d038" > < span class = "section-number-2" > 3< / span > Definition of the stiffness and damping of the joints< / h2 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-2" id = "text-3" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orgbc31729" > < / a >
2020-01-28 17:15:19 +01:00
< / p >
< p >
The global stiffness and damping of the Stewart platform depends on its geometry but also on the stiffness and damping of:
< / p >
< ul class = "org-ul" >
< li > the actuator because of the finite stiffness of the actuator / linear guide< / li >
< li > the spherical joints< / li >
< / ul >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org3b9ead4" class = "outline-3" >
< h3 id = "org3b9ead4" > < span class = "section-number-3" > 3.1< / span > Stiffness and Damping of the Actuator< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-3-1" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
Each Actuator is modeled by 3 elements in parallel (Figure < a href = "#org1ccacc2" > 4< / a > ):
2020-01-28 17:15:19 +01:00
< / p >
< ul class = "org-ul" >
< li > A spring with a stiffness \(k_{i}\)< / li >
< li > A dashpot with a damping \(c_{i}\)< / li >
2020-01-29 16:49:41 +01:00
< li > An ideal force actuator generating a force \(\tau_i\)< / li >
2020-01-28 17:15:19 +01:00
< / ul >
2021-01-08 15:34:53 +01:00
< div id = "org1ccacc2" class = "figure" >
2020-01-28 17:15:19 +01:00
< p > < img src = "figs/stewart_platform_actuator.png" alt = "stewart_platform_actuator.png" / >
< / p >
< p > < span class = "figure-number" > Figure 4: < / span > Model of the Stewart platform actuator< / p >
< / div >
< p >
2021-01-08 15:34:53 +01:00
The initialization of the stiffness and damping properties of the actuators is done with the < code > initializeStrutDynamics< / code > (< a href = "#org7b87b53" > link< / a > ).
2020-01-28 17:15:19 +01:00
< / p >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgaf5b761" class = "outline-3" >
< h3 id = "orgaf5b761" > < span class = "section-number-3" > 3.2< / span > Stiffness and Damping of the Spherical Joints< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-3-2" >
2020-01-28 17:15:19 +01:00
< p >
Even though we often suppose that the spherical joint are perfect in the sense that we neglect its stiffness and damping, we can set some rotation stiffness and damping of each of the spherical/universal joints.
< / p >
< p >
2021-01-08 15:34:53 +01:00
This is done with the < code > initializeJointDynamics< / code > function (< a href = "#org60f3527" > link< / a > ).
2020-01-28 17:15:19 +01:00
< / p >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org0d823ef" class = "outline-2" >
< h2 id = "org0d823ef" > < span class = "section-number-2" > 4< / span > Summary of the Initialization Procedure and Matlab Example< / h2 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-2" id = "text-4" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orge881ef0" > < / a >
2020-01-28 17:15:19 +01:00
< / p >
2020-01-27 17:42:09 +01:00
< p >
The procedure to define the Stewart platform is the following:
< / p >
< ol class = "org-ol" >
2020-01-28 17:18:10 +01:00
< li > Define the initial position of frames \(\{A\}\), \(\{B\}\), \(\{F\}\) and \(\{M\}\).
2020-01-27 17:42:09 +01:00
We do that using the < code > initializeFramesPositions< / code > function.
2020-01-28 17:18:10 +01:00
We have to specify the total height of the Stewart platform \(H\) and the position \({}^{M}\bm{O}_{B}\) of \(\{B\}\) with respect to \(\{M\}\).< / li >
< li > Compute the positions of joints \({}^{F}\bm{a}_{i}\) and \({}^{M}\bm{b}_{i}\).
2020-01-27 17:42:09 +01:00
We can do that using various methods depending on the wanted architecture:
< ul class = "org-ul" >
< li > < code > generateCubicConfiguration< / code > permits to generate a cubic configuration< / li >
< / ul > < / li >
< li > Compute the position and orientation of the joints with respect to the fixed base and the moving platform.
2020-01-28 17:15:19 +01:00
This is done with the < code > computeJointsPose< / code > function.
If wanted, compute the rest position of each strut to have the wanted pose of the mobile platform with the function < code > initializeStewartPose< / code > .< / li >
< li > Define the mass and inertia of each element of the Stewart platform with the < code > initializeCylindricalPlatforms< / code > and < code > initializeCylindricalStruts< / code > < / li >
< li > Define the dynamical properties of the Stewart platform by setting the stiffness and damping of the actuators and joints.< / li >
2020-01-27 17:42:09 +01:00
< / ol >
< p >
By following this procedure, we obtain a Matlab structure < code > stewart< / code > that contains all the information for the Simscape model and for further analysis.
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org64b43bc" class = "outline-3" >
< h3 id = "org64b43bc" > < span class = "section-number-3" > 4.1< / span > Example of the initialization of a Stewart Platform< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-4-1" >
2020-01-28 17:15:19 +01:00
< p >
Let’ s first define the Stewart Platform Geometry.
< / p >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart = initializeStewartPlatform();
stewart = initializeFramesPositions(stewart, < span class = "org-string" > 'H'< / span > , 90e< span class = "org-type" > -< / span > 3, < span class = "org-string" > 'MO_B'< / span > , 45e< span class = "org-type" > -< / span > 3);
stewart = generateGeneralConfiguration(stewart);
stewart = computeJointsPose(stewart);
stewart = initializeStewartPose(stewart, < span class = "org-string" > 'AP'< / span > , [0;0;0], < span class = "org-string" > 'ARB'< / span > , eye(3));
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
2020-01-28 17:15:19 +01:00
< p >
Then, define the inertia and geometry of the fixed base, mobile platform and struts.
< / p >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart = initializeCylindricalPlatforms(stewart);
stewart = initializeCylindricalStruts(stewart);
2020-01-28 17:15:19 +01:00
< / pre >
< / div >
2020-01-27 17:42:09 +01:00
2020-01-28 17:15:19 +01:00
< p >
2020-02-11 15:16:07 +01:00
We initialize the strut stiffness and damping properties.
2020-01-28 17:15:19 +01:00
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart = initializeStrutDynamics(stewart, < span class = "org-string" > 'K'< / span > , 1e6< span class = "org-type" > *< / span > ones(6,1), < span class = "org-string" > 'C'< / span > , 1e2< span class = "org-type" > *< / span > ones(6,1));
stewart = initializeAmplifiedStrutDynamics(stewart);
stewart = initializeJointDynamics(stewart);
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
2020-01-28 17:15:19 +01:00
2020-02-11 15:16:07 +01:00
< p >
And finally the inertial sensors included in each strut.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart = initializeInertialSensor(stewart, < span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'none'< / span > );
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
2020-01-28 17:15:19 +01:00
< p >
The obtained < code > stewart< / code > Matlab structure contains all the information for analysis of the Stewart platform and for simulations using Simscape.
< / p >
2020-02-07 17:12:26 +01:00
< p >
The function < code > displayArchitecture< / code > can be used to display the current Stewart configuration:
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > displayArchitecture(stewart, < span class = "org-string" > 'views'< / span > , < span class = "org-string" > 'all'< / span > );
2020-02-07 17:12:26 +01:00
< / pre >
2020-01-27 17:42:09 +01:00
< / div >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< div id = "org6237552" class = "figure" >
2020-02-07 17:12:26 +01:00
< p > < img src = "figs/stewart_architecture_example.png" alt = "stewart_architecture_example.png" / >
< / p >
< p > < span class = "figure-number" > Figure 5: < / span > Display of the current Stewart platform architecture (< a href = "./figs/stewart_architecture_example.png" > png< / a > , < a href = "./figs/stewart_architecture_example.pdf" > pdf< / a > )< / p >
2020-01-27 17:42:09 +01:00
< / div >
2020-02-07 17:12:26 +01:00
< p >
There are many options to show or hides elements such as labels and frames.
2021-01-08 15:34:53 +01:00
The documentation of the function is available < a href = "#org2878132" > here< / a > .
2020-02-07 17:12:26 +01:00
< / p >
< p >
Let’ s now move a little bit the top platform and re-display the configuration:
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > tx = 0.1; < span class = "org-comment" > % [rad]< / span >
ty = 0.2; < span class = "org-comment" > % [rad]< / span >
tz = 0.05; < span class = "org-comment" > % [rad]< / span >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
Rx = [1 0 0;
0 cos(tx) < span class = "org-type" > -< / span > sin(tx);
0 sin(tx) cos(tx)];
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
Ry = [ cos(ty) 0 sin(ty);
0 1 0;
< span class = "org-type" > -< / span > sin(ty) 0 cos(ty)];
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
Rz = [cos(tz) < span class = "org-type" > -< / span > sin(tz) 0;
sin(tz) cos(tz) 0;
0 0 1];
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
ARB = Rz< span class = "org-type" > *< / span > Ry< span class = "org-type" > *< / span > Rx;
AP = [0.08; 0; 0]; < span class = "org-comment" > % [m]< / span >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
displayArchitecture(stewart, < span class = "org-string" > 'AP'< / span > , AP, < span class = "org-string" > 'ARB'< / span > , ARB);
view([0 < span class = "org-type" > -< / span > 1 0]);
2020-02-07 17:12:26 +01:00
< / pre >
2020-01-27 17:42:09 +01:00
< / div >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< div id = "org3cc8e21" class = "figure" >
2020-02-07 17:12:26 +01:00
< p > < img src = "figs/stewart_architecture_example_pose.png" alt = "stewart_architecture_example_pose.png" / >
< / p >
< p > < span class = "figure-number" > Figure 6: < / span > Display of the Stewart platform architecture at some defined pose (< a href = "./figs/stewart_architecture_example_pose.png" > png< / a > , < a href = "./figs/stewart_architecture_example_pose.pdf" > pdf< / a > )< / p >
< / div >
2020-03-13 10:06:18 +01:00
< p >
One can also use the < code > describeStewartPlatform< / code > function to have a description of the current Stewart platform’ s state.
< / p >
2021-01-08 15:34:53 +01:00
< pre class = "example" id = "orgeee9b56" >
2020-03-13 10:06:18 +01:00
describeStewartPlatform(stewart)
GEOMETRY:
- The height between the fixed based and the top platform is 90 [mm].
- Frame {A} is located 45 [mm] above the top platform.
- The initial length of the struts are:
95.2, 95.2, 95.2, 95.2, 95.2, 95.2 [mm]
ACTUATORS:
- The actuators are mechanicaly amplified.
- The vertical stiffness and damping contribution of the piezoelectric stack is:
ka = 2e+07 [N/m] ca = 1e+01 [N/(m/s)]
- Vertical stiffness when the piezoelectric stack is removed is:
kr = 5e+06 [N/m] cr = 1e+01 [N/(m/s)]
JOINTS:
- The joints on the fixed based are universal joints
- The joints on the mobile based are spherical joints
- The position of the joints on the fixed based with respect to {F} are (in [mm]):
113 -20 15
113 20 15
-39.3 108 15
-73.9 88.1 15
-73.9 -88.1 15
-39.3 -108 15
- The position of the joints on the mobile based with respect to {M} are (in [mm]):
57.9 -68.9 -15
57.9 68.9 -15
30.8 84.6 -15
-88.6 15.6 -15
-88.6 -15.6 -15
30.8 -84.6 -15
KINEMATICS:
'org_babel_eoe'
ans =
'org_babel_eoe'
< / pre >
2020-02-07 17:12:26 +01:00
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org6feaead" class = "outline-2" >
< h2 id = "org6feaead" > < span class = "section-number-2" > 5< / span > Functions< / h2 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-2" id = "text-5" >
2020-01-28 17:15:19 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orgc1976a8" > < / a >
2020-01-28 17:15:19 +01:00
< / p >
< / div >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgb54aa6c" class = "outline-3" >
< h3 id = "orgb54aa6c" > < span class = "section-number-3" > 5.1< / span > < code > initializeStewartPlatform< / code > : Initialize the Stewart Platform structure< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-5-1" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orgc3463e5" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeStewartPlatform.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgeab98fd" class = "outline-4" >
< h4 id = "orgeab98fd" > Documentation< / h4 >
< div class = "outline-text-4" id = "text-orgeab98fd" >
2020-02-10 18:17:37 +01:00
2021-01-08 15:34:53 +01:00
< div id = "orgc725645" class = "figure" >
2020-02-10 18:17:37 +01:00
< p > < img src = "figs/stewart-frames-position.png" alt = "stewart-frames-position.png" / >
< / p >
< p > < span class = "figure-number" > Figure 7: < / span > Definition of the position of the frames< / p >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orge8a001f" class = "outline-4" >
< h4 id = "orge8a001f" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orge8a001f" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeStewartPlatform< / span > ()
< span class = "org-comment" > % initializeStewartPlatform - Initialize the stewart structure< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeStewartPlatform(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - A structure with the following sub-structures:< / span >
< span class = "org-comment" > % - platform_F -< / span >
< span class = "org-comment" > % - platform_M -< / span >
< span class = "org-comment" > % - joints_F -< / span >
< span class = "org-comment" > % - joints_M -< / span >
< span class = "org-comment" > % - struts_F -< / span >
< span class = "org-comment" > % - struts_M -< / span >
< span class = "org-comment" > % - actuators -< / span >
< span class = "org-comment" > % - geometry -< / span >
< span class = "org-comment" > % - properties -< / span >
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgc4197aa" class = "outline-4" >
< h4 id = "orgc4197aa" > Initialize the Stewart structure< / h4 >
< div class = "outline-text-4" id = "text-orgc4197aa" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart = struct();
stewart.platform_F = struct();
stewart.platform_M = struct();
stewart.joints_F = struct();
stewart.joints_M = struct();
stewart.struts_F = struct();
stewart.struts_M = struct();
stewart.actuators = struct();
stewart.sensors = struct();
stewart.sensors.inertial = struct();
stewart.sensors.force = struct();
stewart.sensors.relative = struct();
stewart.geometry = struct();
stewart.kinematics = struct();
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org1a8cfde" class = "outline-3" >
< h3 id = "org1a8cfde" > < span class = "section-number-3" > 5.2< / span > < code > initializeFramesPositions< / code > : Initialize the positions of frames {A}, {B}, {F} and {M}< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-5-2" >
2020-02-11 15:16:07 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org937f0f9" > < / a >
2020-02-11 15:16:07 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeFramesPositions.m" > here< / a > .
2020-02-11 15:16:07 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org22404ae" class = "outline-4" >
< h4 id = "org22404ae" > Documentation< / h4 >
< div class = "outline-text-4" id = "text-org22404ae" >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
< div id = "orgf30011a" class = "figure" >
2020-02-11 15:16:07 +01:00
< p > < img src = "figs/stewart-frames-position.png" alt = "stewart-frames-position.png" / >
< / p >
< p > < span class = "figure-number" > Figure 8: < / span > Definition of the position of the frames< / p >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org438a9a6" class = "outline-4" >
< h4 id = "org438a9a6" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org438a9a6" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeFramesPositions< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeFramesPositions - Initialize the positions of frames {A}, {B}, {F} and {M}< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeFramesPositions(stewart, args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Can have the following fields:< / span >
< span class = "org-comment" > % - H [1x1] - Total Height of the Stewart Platform (height from {F} to {M}) [m]< / span >
< span class = "org-comment" > % - MO_B [1x1] - Height of the frame {B} with respect to {M} [m]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - A structure with the following fields:< / span >
< span class = "org-comment" > % - geometry.H [1x1] - Total Height of the Stewart Platform [m]< / span >
< span class = "org-comment" > % - geometry.FO_M [3x1] - Position of {M} with respect to {F} [m]< / span >
< span class = "org-comment" > % - platform_M.MO_B [3x1] - Position of {B} with respect to {M} [m]< / span >
< span class = "org-comment" > % - platform_F.FO_A [3x1] - Position of {A} with respect to {F} [m]< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org83c364b" class = "outline-4" >
< h4 id = "org83c364b" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org83c364b" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .H (1,1) double {mustBeNumeric, mustBePositive} = 90e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .MO_B (1,1) double {mustBeNumeric} = 50e< span class = "org-type" > -< / span > 3
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgf345222" class = "outline-4" >
< h4 id = "orgf345222" > Compute the position of each frame< / h4 >
< div class = "outline-text-4" id = "text-orgf345222" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > H = args.H; < span class = "org-comment" > % Total Height of the Stewart Platform [m]< / span >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
FO_M = [0; 0; H]; < span class = "org-comment" > % Position of {M} with respect to {F} [m]< / span >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
MO_B = [0; 0; args.MO_B]; < span class = "org-comment" > % Position of {B} with respect to {M} [m]< / span >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
FO_A = MO_B < span class = "org-type" > +< / span > FO_M; < span class = "org-comment" > % Position of {A} with respect to {F} [m]< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org615717a" class = "outline-4" >
< h4 id = "org615717a" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-org615717a" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.geometry.H = H;
stewart.geometry.FO_M = FO_M;
stewart.platform_M.MO_B = MO_B;
stewart.platform_F.FO_A = FO_A;
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org33634da" class = "outline-3" >
< h3 id = "org33634da" > < span class = "section-number-3" > 5.3< / span > < code > generateGeneralConfiguration< / code > : Generate a Very General Configuration< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-5-3" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orge6afa82" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/generateGeneralConfiguration.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgb5187fb" class = "outline-4" >
< h4 id = "orgb5187fb" > Documentation< / h4 >
< div class = "outline-text-4" id = "text-orgb5187fb" >
2020-02-10 18:17:37 +01:00
< p >
Joints are positions on a circle centered with the Z axis of {F} and {M} and at a chosen distance from {F} and {M}.
2021-01-08 15:34:53 +01:00
The radius of the circles can be chosen as well as the angles where the joints are located (see Figure < a href = "#orgc69617b" > 9< / a > ).
2020-02-10 18:17:37 +01:00
< / p >
2021-01-08 15:34:53 +01:00
< div id = "orgc69617b" class = "figure" >
2020-02-10 18:17:37 +01:00
< p > < img src = "figs/stewart_bottom_plate.png" alt = "stewart_bottom_plate.png" / >
< / p >
2020-02-11 15:16:07 +01:00
< p > < span class = "figure-number" > Figure 9: < / span > Position of the joints< / p >
2020-02-10 18:17:37 +01:00
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org63ee9a7" class = "outline-4" >
< h4 id = "org63ee9a7" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org63ee9a7" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > generateGeneralConfiguration< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % generateGeneralConfiguration - Generate a Very General Configuration< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = generateGeneralConfiguration(stewart, args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Can have the following fields:< / span >
< span class = "org-comment" > % - FH [1x1] - Height of the position of the fixed joints with respect to the frame {F} [m]< / span >
< span class = "org-comment" > % - FR [1x1] - Radius of the position of the fixed joints in the X-Y [m]< / span >
< span class = "org-comment" > % - FTh [6x1] - Angles of the fixed joints in the X-Y plane with respect to the X axis [rad]< / span >
< span class = "org-comment" > % - MH [1x1] - Height of the position of the mobile joints with respect to the frame {M} [m]< / span >
< span class = "org-comment" > % - FR [1x1] - Radius of the position of the mobile joints in the X-Y [m]< / span >
< span class = "org-comment" > % - MTh [6x1] - Angles of the mobile joints in the X-Y plane with respect to the X axis [rad]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - platform_F.Fa [3x6] - Its i'th column is the position vector of joint ai with respect to {F}< / span >
< span class = "org-comment" > % - platform_M.Mb [3x6] - Its i'th column is the position vector of joint bi with respect to {M}< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org4f489d6" class = "outline-4" >
< h4 id = "org4f489d6" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org4f489d6" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .FH (1,1) double {mustBeNumeric, mustBePositive} = 15e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .FR (1,1) double {mustBeNumeric, mustBePositive} = 115e< span class = "org-type" > -< / span > 3;
< span class = "org-variable-name" > args< / span > .FTh (6,1) double {mustBeNumeric} = [< span class = "org-type" > -< / span > 10, 10, 120< span class = "org-type" > -< / span > 10, 120< span class = "org-type" > +< / span > 10, 240< span class = "org-type" > -< / span > 10, 240< span class = "org-type" > +< / span > 10]< span class = "org-type" > *< / span > (< span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180);
< span class = "org-variable-name" > args< / span > .MH (1,1) double {mustBeNumeric, mustBePositive} = 15e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .MR (1,1) double {mustBeNumeric, mustBePositive} = 90e< span class = "org-type" > -< / span > 3;
< span class = "org-variable-name" > args< / span > .MTh (6,1) double {mustBeNumeric} = [< span class = "org-type" > -< / span > 60< span class = "org-type" > +< / span > 10, 60< span class = "org-type" > -< / span > 10, 60< span class = "org-type" > +< / span > 10, 180< span class = "org-type" > -< / span > 10, 180< span class = "org-type" > +< / span > 10, < span class = "org-type" > -< / span > 60< span class = "org-type" > -< / span > 10]< span class = "org-type" > *< / span > (< span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180);
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgac7b186" class = "outline-4" >
< h4 id = "orgac7b186" > Compute the pose< / h4 >
< div class = "outline-text-4" id = "text-orgac7b186" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Fa = zeros(3,6);
Mb = zeros(3,6);
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
Fa(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = [args.FR< span class = "org-type" > *< / span > cos(args.FTh(< span class = "org-constant" > i< / span > )); args.FR< span class = "org-type" > *< / span > sin(args.FTh(< span class = "org-constant" > i< / span > )); args.FH];
Mb(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = [args.MR< span class = "org-type" > *< / span > cos(args.MTh(< span class = "org-constant" > i< / span > )); args.MR< span class = "org-type" > *< / span > sin(args.MTh(< span class = "org-constant" > i< / span > )); < span class = "org-type" > -< / span > args.MH];
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org7ee1bf3" class = "outline-4" >
< h4 id = "org7ee1bf3" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-org7ee1bf3" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.platform_F.Fa = Fa;
stewart.platform_M.Mb = Mb;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-01-27 17:42:09 +01:00
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orga24b055" class = "outline-3" >
< h3 id = "orga24b055" > < span class = "section-number-3" > 5.4< / span > < code > computeJointsPose< / code > : Compute the Pose of the Joints< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-5-4" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org1ea8332" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/computeJointsPose.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgfb8bc86" class = "outline-4" >
< h4 id = "orgfb8bc86" > Documentation< / h4 >
< div class = "outline-text-4" id = "text-orgfb8bc86" >
2020-02-10 18:17:37 +01:00
2021-01-08 15:34:53 +01:00
< div id = "org0364bc3" class = "figure" >
2020-02-10 18:17:37 +01:00
< p > < img src = "figs/stewart-struts.png" alt = "stewart-struts.png" / >
< / p >
2020-02-11 15:16:07 +01:00
< p > < span class = "figure-number" > Figure 10: < / span > Position and orientation of the struts< / p >
2020-02-10 18:17:37 +01:00
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org38e5459" class = "outline-4" >
< h4 id = "org38e5459" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org38e5459" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > computeJointsPose< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % computeJointsPose -< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = computeJointsPose(stewart, args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - stewart - A structure with the following fields< / span >
< span class = "org-comment" > % - platform_F.Fa [3x6] - Its i'th column is the position vector of joint ai with respect to {F}< / span >
< span class = "org-comment" > % - platform_M.Mb [3x6] - Its i'th column is the position vector of joint bi with respect to {M}< / span >
< span class = "org-comment" > % - platform_F.FO_A [3x1] - Position of {A} with respect to {F}< / span >
< span class = "org-comment" > % - platform_M.MO_B [3x1] - Position of {B} with respect to {M}< / span >
< span class = "org-comment" > % - geometry.FO_M [3x1] - Position of {M} with respect to {F}< / span >
< span class = "org-comment" > % - args - Can have the following fields:< / span >
< span class = "org-comment" > % - AP [3x1] - The wanted position of {B} with respect to {A}< / span >
< span class = "org-comment" > % - ARB [3x3] - The rotation matrix that gives the wanted orientation of {B} with respect to {A}< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - A structure with the following added fields< / span >
< span class = "org-comment" > % - geometry.Aa [3x6] - The i'th column is the position of ai with respect to {A}< / span >
< span class = "org-comment" > % - geometry.Ab [3x6] - The i'th column is the position of bi with respect to {A}< / span >
< span class = "org-comment" > % - geometry.Ba [3x6] - The i'th column is the position of ai with respect to {B}< / span >
< span class = "org-comment" > % - geometry.Bb [3x6] - The i'th column is the position of bi with respect to {B}< / span >
< span class = "org-comment" > % - geometry.l [6x1] - The i'th element is the initial length of strut i< / span >
< span class = "org-comment" > % - geometry.As [3x6] - The i'th column is the unit vector of strut i expressed in {A}< / span >
< span class = "org-comment" > % - geometry.Bs [3x6] - The i'th column is the unit vector of strut i expressed in {B}< / span >
< span class = "org-comment" > % - struts_F.l [6x1] - Length of the Fixed part of the i'th strut< / span >
< span class = "org-comment" > % - struts_M.l [6x1] - Length of the Mobile part of the i'th strut< / span >
< span class = "org-comment" > % - platform_F.FRa [3x3x6] - The i'th 3x3 array is the rotation matrix to orientate the bottom of the i'th strut from {F}< / span >
< span class = "org-comment" > % - platform_M.MRb [3x3x6] - The i'th 3x3 array is the rotation matrix to orientate the top of the i'th strut from {M}< / span >
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org0251695" class = "outline-4" >
< h4 id = "org0251695" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org0251695" >
2020-08-05 16:23:11 +02:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .AP (3,1) double {mustBeNumeric} = zeros(3,1)
< span class = "org-variable-name" > args< / span > .ARB (3,3) double {mustBeNumeric} = eye(3)
< span class = "org-keyword" > end< / span >
2020-08-05 16:23:11 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org72f258f" class = "outline-4" >
< h4 id = "org72f258f" > Check the < code > stewart< / code > structure elements< / h4 >
< div class = "outline-text-4" id = "text-org72f258f" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > assert(isfield(stewart.platform_F, < span class = "org-string" > 'Fa'< / span > ), < span class = "org-string" > 'stewart.platform_F should have attribute Fa'< / span > )
Fa = stewart.platform_F.Fa;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.platform_M, < span class = "org-string" > 'Mb'< / span > ), < span class = "org-string" > 'stewart.platform_M should have attribute Mb'< / span > )
Mb = stewart.platform_M.Mb;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.platform_F, < span class = "org-string" > 'FO_A'< / span > ), < span class = "org-string" > 'stewart.platform_F should have attribute FO_A'< / span > )
FO_A = stewart.platform_F.FO_A;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.platform_M, < span class = "org-string" > 'MO_B'< / span > ), < span class = "org-string" > 'stewart.platform_M should have attribute MO_B'< / span > )
MO_B = stewart.platform_M.MO_B;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.geometry, < span class = "org-string" > 'FO_M'< / span > ), < span class = "org-string" > 'stewart.geometry should have attribute FO_M'< / span > )
FO_M = stewart.geometry.FO_M;
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org6fa7255" class = "outline-4" >
< h4 id = "org6fa7255" > Compute the position of the Joints< / h4 >
< div class = "outline-text-4" id = "text-org6fa7255" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Aa = Fa < span class = "org-type" > -< / span > repmat(FO_A, [1, 6]);
Bb = Mb < span class = "org-type" > -< / span > repmat(MO_B, [1, 6]);
2020-08-05 16:23:11 +02:00
< / pre >
< / div >
2020-01-27 17:42:09 +01:00
2020-08-05 16:23:11 +02:00
< p >
Original:
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Ab = Bb < span class = "org-type" > -< / span > repmat(< span class = "org-type" > -< / span > MO_B< span class = "org-type" > -< / span > FO_M< span class = "org-type" > +< / span > FO_A, [1, 6]);
Ba = Aa < span class = "org-type" > -< / span > repmat( MO_B< span class = "org-type" > +< / span > FO_M< span class = "org-type" > -< / span > FO_A, [1, 6]);
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
2020-08-05 16:23:11 +02:00
< p >
Translation & Rotation: (Rotation and then translation)
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Ab = args.ARB < span class = "org-type" > *< / span > Bb < span class = "org-type" > -< / span > repmat(< span class = "org-type" > -< / span > args.AP, [1, 6]);
Ba = args.ARB< span class = "org-type" > '*< / span > Aa < span class = "org-type" > -< / span > repmat( args.AP, [1, 6]);
2020-08-05 16:23:11 +02:00
< / pre >
< / div >
2020-01-27 17:42:09 +01:00
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org775652f" class = "outline-4" >
< h4 id = "org775652f" > Compute the strut length and orientation< / h4 >
< div class = "outline-text-4" id = "text-org775652f" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > As = (Ab < span class = "org-type" > -< / span > Aa)< span class = "org-type" > ./< / span > vecnorm(Ab < span class = "org-type" > -< / span > Aa); < span class = "org-comment" > % As_i is the i'th vector of As< / span >
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
l = vecnorm(Ab < span class = "org-type" > -< / span > Aa)< span class = "org-type" > '< / span > ;
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Bs = (Bb < span class = "org-type" > -< / span > Ba)< span class = "org-type" > ./< / span > vecnorm(Bb < span class = "org-type" > -< / span > Ba);
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org343f9a2" class = "outline-4" >
< h4 id = "org343f9a2" > Compute the orientation of the Joints< / h4 >
< div class = "outline-text-4" id = "text-org343f9a2" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > FRa = zeros(3,3,6);
MRb = zeros(3,3,6);
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
FRa(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = [cross([0;1;0], As(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > )) , cross(As(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ), cross([0;1;0], As(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ))) , As(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > )];
FRa(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = FRa(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > )< span class = "org-type" > ./< / span > vecnorm(FRa(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ));
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
MRb(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = [cross([0;1;0], Bs(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > )) , cross(Bs(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ), cross([0;1;0], Bs(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ))) , Bs(< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > )];
MRb(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = MRb(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > )< span class = "org-type" > ./< / span > vecnorm(MRb(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ));
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org1b37bf3" class = "outline-4" >
< h4 id = "org1b37bf3" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-org1b37bf3" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.geometry.Aa = Aa;
stewart.geometry.Ab = Ab;
stewart.geometry.Ba = Ba;
stewart.geometry.Bb = Bb;
stewart.geometry.As = As;
stewart.geometry.Bs = Bs;
stewart.geometry.l = l;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.struts_F.l = l< span class = "org-type" > /< / span > 2;
stewart.struts_M.l = l< span class = "org-type" > /< / span > 2;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.platform_F.FRa = FRa;
stewart.platform_M.MRb = MRb;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-01-27 17:42:09 +01:00
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org9068596" class = "outline-3" >
< h3 id = "org9068596" > < span class = "section-number-3" > 5.5< / span > < code > initializeStewartPose< / code > : Determine the initial stroke in each leg to have the wanted pose< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-5-5" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orgae6d775" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeStewartPose.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgcdbf33b" class = "outline-4" >
< h4 id = "orgcdbf33b" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orgcdbf33b" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeStewartPose< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeStewartPose - Determine the initial stroke in each leg to have the wanted pose< / span >
< span class = "org-comment" > % It uses the inverse kinematic< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeStewartPose(stewart, args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - stewart - A structure with the following fields< / span >
< span class = "org-comment" > % - Aa [3x6] - The positions ai expressed in {A}< / span >
< span class = "org-comment" > % - Bb [3x6] - The positions bi expressed in {B}< / span >
< span class = "org-comment" > % - args - Can have the following fields:< / span >
< span class = "org-comment" > % - AP [3x1] - The wanted position of {B} with respect to {A}< / span >
< span class = "org-comment" > % - ARB [3x3] - The rotation matrix that gives the wanted orientation of {B} with respect to {A}< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - actuators.Leq [6x1] - The 6 needed displacement of the struts from the initial position in [m] to have the wanted pose of {B} w.r.t. {A}< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org504e794" class = "outline-4" >
< h4 id = "org504e794" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org504e794" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .AP (3,1) double {mustBeNumeric} = zeros(3,1)
< span class = "org-variable-name" > args< / span > .ARB (3,3) double {mustBeNumeric} = eye(3)
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org2b0bd7e" class = "outline-4" >
< h4 id = "org2b0bd7e" > Use the Inverse Kinematic function< / h4 >
< div class = "outline-text-4" id = "text-org2b0bd7e" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > [Li, dLi] = inverseKinematics(stewart, < span class = "org-string" > 'AP'< / span > , args.AP, < span class = "org-string" > 'ARB'< / span > , args.ARB);
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgba4396e" class = "outline-4" >
< h4 id = "orgba4396e" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-orgba4396e" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.actuators.Leq = dLi;
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org7298863" class = "outline-3" >
< h3 id = "org7298863" > < span class = "section-number-3" > 5.6< / span > < code > initializeCylindricalPlatforms< / code > : Initialize the geometry of the Fixed and Mobile Platforms< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-5-6" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org7858fd0" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeCylindricalPlatforms.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgef552b3" class = "outline-4" >
< h4 id = "orgef552b3" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orgef552b3" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeCylindricalPlatforms< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeCylindricalPlatforms - Initialize the geometry of the Fixed and Mobile Platforms< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeCylindricalPlatforms(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - Fpm [1x1] - Fixed Platform Mass [kg]< / span >
< span class = "org-comment" > % - Fph [1x1] - Fixed Platform Height [m]< / span >
< span class = "org-comment" > % - Fpr [1x1] - Fixed Platform Radius [m]< / span >
< span class = "org-comment" > % - Mpm [1x1] - Mobile Platform Mass [kg]< / span >
< span class = "org-comment" > % - Mph [1x1] - Mobile Platform Height [m]< / span >
< span class = "org-comment" > % - Mpr [1x1] - Mobile Platform Radius [m]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - platform_F [struct] - structure with the following fields:< / span >
< span class = "org-comment" > % - type = 1< / span >
< span class = "org-comment" > % - M [1x1] - Fixed Platform Mass [kg]< / span >
< span class = "org-comment" > % - I [3x3] - Fixed Platform Inertia matrix [kg*m^2]< / span >
< span class = "org-comment" > % - H [1x1] - Fixed Platform Height [m]< / span >
< span class = "org-comment" > % - R [1x1] - Fixed Platform Radius [m]< / span >
< span class = "org-comment" > % - platform_M [struct] - structure with the following fields:< / span >
< span class = "org-comment" > % - M [1x1] - Mobile Platform Mass [kg]< / span >
< span class = "org-comment" > % - I [3x3] - Mobile Platform Inertia matrix [kg*m^2]< / span >
< span class = "org-comment" > % - H [1x1] - Mobile Platform Height [m]< / span >
< span class = "org-comment" > % - R [1x1] - Mobile Platform Radius [m]< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org615c98a" class = "outline-4" >
< h4 id = "org615c98a" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org615c98a" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .Fpm (1,1) double {mustBeNumeric, mustBePositive} = 1
< span class = "org-variable-name" > args< / span > .Fph (1,1) double {mustBeNumeric, mustBePositive} = 10e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .Fpr (1,1) double {mustBeNumeric, mustBePositive} = 125e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .Mpm (1,1) double {mustBeNumeric, mustBePositive} = 1
< span class = "org-variable-name" > args< / span > .Mph (1,1) double {mustBeNumeric, mustBePositive} = 10e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .Mpr (1,1) double {mustBeNumeric, mustBePositive} = 100e< span class = "org-type" > -< / span > 3
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgca11714" class = "outline-4" >
< h4 id = "orgca11714" > Compute the Inertia matrices of platforms< / h4 >
< div class = "outline-text-4" id = "text-orgca11714" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > I_F = diag([1< span class = "org-type" > /< / span > 12< span class = "org-type" > *< / span > args.Fpm < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > args.Fpr< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > args.Fph< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 12< span class = "org-type" > *< / span > args.Fpm < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > args.Fpr< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > args.Fph< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 2 < span class = "org-type" > *< / span > args.Fpm < span class = "org-type" > *< / span > args.Fpr< span class = "org-type" > ^< / span > 2]);
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
2020-01-27 17:42:09 +01:00
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > I_M = diag([1< span class = "org-type" > /< / span > 12< span class = "org-type" > *< / span > args.Mpm < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > args.Mpr< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > args.Mph< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 12< span class = "org-type" > *< / span > args.Mpm < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > args.Mpr< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > args.Mph< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 2 < span class = "org-type" > *< / span > args.Mpm < span class = "org-type" > *< / span > args.Mpr< span class = "org-type" > ^< / span > 2]);
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgb627b06" class = "outline-4" >
< h4 id = "orgb627b06" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-orgb627b06" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.platform_F.type = 1;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.platform_F.I = I_F;
stewart.platform_F.M = args.Fpm;
stewart.platform_F.R = args.Fpr;
stewart.platform_F.H = args.Fph;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.platform_M.type = 1;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.platform_M.I = I_M;
stewart.platform_M.M = args.Mpm;
stewart.platform_M.R = args.Mpr;
stewart.platform_M.H = args.Mph;
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgca778d6" class = "outline-3" >
< h3 id = "orgca778d6" > < span class = "section-number-3" > 5.7< / span > < code > initializeSolidPlatforms< / code > : Initialize the geometry of the Fixed and Mobile Platforms< / h3 >
2020-02-11 15:50:52 +01:00
< div class = "outline-text-3" id = "text-5-7" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "orgcbd5aad" > < / a >
< / p >
< p >
This Matlab function is accessible < a href = "../src/initializeSolidPlatforms.m" > here< / a > .
< / p >
< / div >
< div id = "outline-container-orga04c43a" class = "outline-4" >
< h4 id = "orga04c43a" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orga04c43a" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeSolidPlatforms< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeSolidPlatforms - Initialize the geometry of the Fixed and Mobile Platforms< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeSolidPlatforms(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - density [1x1] - Density of the platforms [kg]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - platform_F [struct] - structure with the following fields:< / span >
< span class = "org-comment" > % - type = 2< / span >
< span class = "org-comment" > % - M [1x1] - Fixed Platform Density [kg/m^3]< / span >
< span class = "org-comment" > % - platform_M [struct] - structure with the following fields:< / span >
< span class = "org-comment" > % - type = 2< / span >
< span class = "org-comment" > % - M [1x1] - Mobile Platform Density [kg/m^3]< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgbd3043d" class = "outline-4" >
< h4 id = "orgbd3043d" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orgbd3043d" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .density (1,1) double {mustBeNumeric, mustBePositive} = 7800
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org98e7ef0" class = "outline-4" >
< h4 id = "org98e7ef0" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-org98e7ef0" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > stewart.platform_F.type = 2;
stewart.platform_F.density = args.density;
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > stewart.platform_M.type = 2;
stewart.platform_M.density = args.density;
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orgc775d7a" class = "outline-3" >
< h3 id = "orgc775d7a" > < span class = "section-number-3" > 5.8< / span > < code > initializeCylindricalStruts< / code > : Define the inertia of cylindrical struts< / h3 >
< div class = "outline-text-3" id = "text-5-8" >
< p >
< a id = "org92cf424" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeCylindricalStruts.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org8cd1454" class = "outline-4" >
< h4 id = "org8cd1454" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org8cd1454" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeCylindricalStruts< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeCylindricalStruts - Define the mass and moment of inertia of cylindrical struts< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeCylindricalStruts(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - Fsm [1x1] - Mass of the Fixed part of the struts [kg]< / span >
< span class = "org-comment" > % - Fsh [1x1] - Height of cylinder for the Fixed part of the struts [m]< / span >
< span class = "org-comment" > % - Fsr [1x1] - Radius of cylinder for the Fixed part of the struts [m]< / span >
< span class = "org-comment" > % - Msm [1x1] - Mass of the Mobile part of the struts [kg]< / span >
< span class = "org-comment" > % - Msh [1x1] - Height of cylinder for the Mobile part of the struts [m]< / span >
< span class = "org-comment" > % - Msr [1x1] - Radius of cylinder for the Mobile part of the struts [m]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - struts_F [struct] - structure with the following fields:< / span >
< span class = "org-comment" > % - M [6x1] - Mass of the Fixed part of the struts [kg]< / span >
< span class = "org-comment" > % - I [3x3x6] - Moment of Inertia for the Fixed part of the struts [kg*m^2]< / span >
< span class = "org-comment" > % - H [6x1] - Height of cylinder for the Fixed part of the struts [m]< / span >
< span class = "org-comment" > % - R [6x1] - Radius of cylinder for the Fixed part of the struts [m]< / span >
< span class = "org-comment" > % - struts_M [struct] - structure with the following fields:< / span >
< span class = "org-comment" > % - M [6x1] - Mass of the Mobile part of the struts [kg]< / span >
< span class = "org-comment" > % - I [3x3x6] - Moment of Inertia for the Mobile part of the struts [kg*m^2]< / span >
< span class = "org-comment" > % - H [6x1] - Height of cylinder for the Mobile part of the struts [m]< / span >
< span class = "org-comment" > % - R [6x1] - Radius of cylinder for the Mobile part of the struts [m]< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgef6f474" class = "outline-4" >
< h4 id = "orgef6f474" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orgef6f474" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .type_F char {mustBeMember(args.type_F,{< span class = "org-string" > 'cylindrical'< / span > , < span class = "org-string" > 'none'< / span > })} = < span class = "org-string" > 'cylindrical'< / span >
< span class = "org-variable-name" > args< / span > .type_M char {mustBeMember(args.type_M,{< span class = "org-string" > 'cylindrical'< / span > , < span class = "org-string" > 'none'< / span > })} = < span class = "org-string" > 'cylindrical'< / span >
< span class = "org-variable-name" > args< / span > .Fsm (1,1) double {mustBeNumeric, mustBePositive} = 0.1
< span class = "org-variable-name" > args< / span > .Fsh (1,1) double {mustBeNumeric, mustBePositive} = 50e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .Fsr (1,1) double {mustBeNumeric, mustBePositive} = 5e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .Msm (1,1) double {mustBeNumeric, mustBePositive} = 0.1
< span class = "org-variable-name" > args< / span > .Msh (1,1) double {mustBeNumeric, mustBePositive} = 50e< span class = "org-type" > -< / span > 3
< span class = "org-variable-name" > args< / span > .Msr (1,1) double {mustBeNumeric, mustBePositive} = 5e< span class = "org-type" > -< / span > 3
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orge60177a" class = "outline-4" >
< h4 id = "orge60177a" > Compute the properties of the cylindrical struts< / h4 >
< div class = "outline-text-4" id = "text-orge60177a" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Fsm = ones(6,1)< span class = "org-type" > .*< / span > args.Fsm;
Fsh = ones(6,1)< span class = "org-type" > .*< / span > args.Fsh;
Fsr = ones(6,1)< span class = "org-type" > .*< / span > args.Fsr;
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
Msm = ones(6,1)< span class = "org-type" > .*< / span > args.Msm;
Msh = ones(6,1)< span class = "org-type" > .*< / span > args.Msh;
Msr = ones(6,1)< span class = "org-type" > .*< / span > args.Msr;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
2020-01-27 17:42:09 +01:00
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > I_F = zeros(3, 3, 6); < span class = "org-comment" > % Inertia of the "fixed" part of the strut< / span >
I_M = zeros(3, 3, 6); < span class = "org-comment" > % Inertia of the "mobile" part of the strut< / span >
2020-01-27 17:42:09 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
I_F(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = diag([1< span class = "org-type" > /< / span > 12 < span class = "org-type" > *< / span > Fsm(< span class = "org-constant" > i< / span > ) < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > Fsr(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > Fsh(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 12 < span class = "org-type" > *< / span > Fsm(< span class = "org-constant" > i< / span > ) < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > Fsr(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > Fsh(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 2 < span class = "org-type" > *< / span > Fsm(< span class = "org-constant" > i< / span > ) < span class = "org-type" > *< / span > Fsr(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2]);
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
I_M(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > ) = diag([1< span class = "org-type" > /< / span > 12 < span class = "org-type" > *< / span > Msm(< span class = "org-constant" > i< / span > ) < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > Msr(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > Msh(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 12 < span class = "org-type" > *< / span > Msm(< span class = "org-constant" > i< / span > ) < span class = "org-type" > *< / span > (3< span class = "org-type" > *< / span > Msr(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2 < span class = "org-type" > +< / span > Msh(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2), ...
1< span class = "org-type" > /< / span > 2 < span class = "org-type" > *< / span > Msm(< span class = "org-constant" > i< / span > ) < span class = "org-type" > *< / span > Msr(< span class = "org-constant" > i< / span > )< span class = "org-type" > ^< / span > 2]);
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
2020-02-11 15:16:07 +01:00
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org88ed9a1" class = "outline-4" >
< h4 id = "org88ed9a1" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-org88ed9a1" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > switch< / span > < span class = "org-constant" > args.type_M< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'cylindrical'< / span >
stewart.struts_M.type = 1;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'none'< / span >
stewart.struts_M.type = 2;
< span class = "org-keyword" > end< / span >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.struts_M.I = I_M;
stewart.struts_M.M = Msm;
stewart.struts_M.R = Msr;
stewart.struts_M.H = Msh;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > switch< / span > < span class = "org-constant" > args.type_F< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'cylindrical'< / span >
stewart.struts_F.type = 1;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'none'< / span >
stewart.struts_F.type = 2;
< span class = "org-keyword" > end< / span >
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.struts_F.I = I_F;
stewart.struts_F.M = Fsm;
stewart.struts_F.R = Fsr;
stewart.struts_F.H = Fsh;
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org3ceb0b1" class = "outline-3" >
< h3 id = "org3ceb0b1" > < span class = "section-number-3" > 5.9< / span > < code > initializeStrutDynamics< / code > : Add Stiffness and Damping properties of each strut< / h3 >
< div class = "outline-text-3" id = "text-5-9" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org7b87b53" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeStrutDynamics.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgf551d66" class = "outline-4" >
< h4 id = "orgf551d66" > Documentation< / h4 >
< div class = "outline-text-4" id = "text-orgf551d66" >
2020-02-10 18:17:37 +01:00
2021-01-08 15:34:53 +01:00
< div id = "org2ee3f84" class = "figure" >
2020-02-10 18:17:37 +01:00
< p > < img src = "figs/piezoelectric_stack.jpg" alt = "piezoelectric_stack.jpg" width = "500px" / >
< / p >
2020-02-11 15:16:07 +01:00
< p > < span class = "figure-number" > Figure 11: < / span > Example of a piezoelectric stach actuator (PI)< / p >
2020-02-10 18:17:37 +01:00
< / div >
< p >
2021-01-08 15:34:53 +01:00
A simplistic model of such amplified actuator is shown in Figure < a href = "#orgabab6cd" > 12< / a > where:
2020-02-10 18:17:37 +01:00
< / p >
< ul class = "org-ul" >
2020-02-11 15:16:07 +01:00
< li > \(K\) represent the vertical stiffness of the actuator< / li >
< li > \(C\) represent the vertical damping of the actuator< / li >
< li > \(F\) represents the force applied by the actuator< / li >
< li > \(F_{m}\) represents the total measured force< / li >
< li > \(v_{m}\) represents the absolute velocity of the top part of the actuator< / li >
< li > \(d_{m}\) represents the total relative displacement of the actuator< / li >
2020-02-10 18:17:37 +01:00
< / ul >
2021-01-08 15:34:53 +01:00
< div id = "orgabab6cd" class = "figure" >
2020-02-10 18:17:37 +01:00
< p > < img src = "figs/actuator_model_simple.png" alt = "actuator_model_simple.png" / >
< / p >
2020-02-11 15:16:07 +01:00
< p > < span class = "figure-number" > Figure 12: < / span > Simple model of an Actuator< / p >
2020-02-10 18:17:37 +01:00
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org288b140" class = "outline-4" >
< h4 id = "org288b140" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org288b140" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeStrutDynamics< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeStrutDynamics - Add Stiffness and Damping properties of each strut< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeStrutDynamics(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - K [6x1] - Stiffness of each strut [N/m]< / span >
< span class = "org-comment" > % - C [6x1] - Damping of each strut [N/(m/s)]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - actuators.type = 1< / span >
< span class = "org-comment" > % - actuators.K [6x1] - Stiffness of each strut [N/m]< / span >
< span class = "org-comment" > % - actuators.C [6x1] - Damping of each strut [N/(m/s)]< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org38d63af" class = "outline-4" >
< h4 id = "org38d63af" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org38d63af" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .K (6,1) double {mustBeNumeric, mustBeNonnegative} = 20e6< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .C (6,1) double {mustBeNumeric, mustBeNonnegative} = 2e1< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-keyword" > end< / span >
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org815b218" class = "outline-4" >
< h4 id = "org815b218" > Add Stiffness and Damping properties of each strut< / h4 >
< div class = "outline-text-4" id = "text-org815b218" >
2020-01-27 17:42:09 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.actuators.type = 1;
2020-02-10 18:17:37 +01:00
2021-01-08 15:34:53 +01:00
stewart.actuators.K = args.K;
stewart.actuators.C = args.C;
2020-01-27 17:42:09 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org1d017e8" class = "outline-3" >
< h3 id = "org1d017e8" > < span class = "section-number-3" > 5.10< / span > < code > initializeAmplifiedStrutDynamics< / code > : Add Stiffness and Damping properties of each strut for an amplified piezoelectric actuator< / h3 >
< div class = "outline-text-3" id = "text-5-10" >
2020-01-27 17:42:09 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org541b338" > < / a >
2020-02-10 18:17:37 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeAmplifiedStrutDynamics.m" > here< / a > .
2020-02-10 18:17:37 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org74e4b19" class = "outline-4" >
< h4 id = "org74e4b19" > Documentation< / h4 >
< div class = "outline-text-4" id = "text-org74e4b19" >
2020-02-10 18:17:37 +01:00
< p >
2021-01-08 15:34:53 +01:00
An amplified piezoelectric actuator is shown in Figure < a href = "#org2da63e7" > 13< / a > .
2020-02-10 18:17:37 +01:00
< / p >
2021-01-08 15:34:53 +01:00
< div id = "org2da63e7" class = "figure" >
2020-02-10 18:17:37 +01:00
< p > < img src = "figs/amplified_piezo_with_displacement_sensor.jpg" alt = "amplified_piezo_with_displacement_sensor.jpg" width = "500px" / >
< / p >
2020-02-11 15:16:07 +01:00
< p > < span class = "figure-number" > Figure 13: < / span > Example of an Amplified piezoelectric actuator with an integrated displacement sensor (Cedrat Technologies)< / p >
2020-02-10 18:17:37 +01:00
< / div >
< p >
2021-01-08 15:34:53 +01:00
A simplistic model of such amplified actuator is shown in Figure < a href = "#orgdfe7f38" > 14< / a > where the parameters are described in Table < a href = "#org863ee8b" > 1< / a > .
2020-02-10 18:17:37 +01:00
< / p >
2021-01-08 15:34:53 +01:00
< table id = "org863ee8b" border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
2020-09-01 13:19:26 +02:00
< caption class = "t-above" > < span class = "table-number" > Table 1:< / span > Parameters used for the model of the APA 100M< / caption >
< colgroup >
< col class = "org-left" / >
2020-02-10 18:17:37 +01:00
2020-09-01 13:19:26 +02:00
< col class = "org-left" / >
< / colgroup >
< thead >
< tr >
< th scope = "col" class = "org-left" >   < / th >
< th scope = "col" class = "org-left" > Meaning< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "org-left" > \(k_e\)< / td >
< td class = "org-left" > Stiffness used to adjust the pole of the isolator< / td >
< / tr >
< tr >
< td class = "org-left" > \(k_1\)< / td >
< td class = "org-left" > Stiffness of the metallic suspension when the stack is removed< / td >
< / tr >
< tr >
< td class = "org-left" > \(k_a\)< / td >
< td class = "org-left" > Stiffness of the actuator< / td >
< / tr >
< tr >
< td class = "org-left" > \(c_1\)< / td >
< td class = "org-left" > Added viscous damping< / td >
< / tr >
< / tbody >
< / table >
2021-01-08 15:34:53 +01:00
< div id = "orgdfe7f38" class = "figure" >
2020-09-01 13:19:26 +02:00
< p > < img src = "./figs/souleille18_model_piezo.png" alt = "souleille18_model_piezo.png" / >
2020-02-10 18:17:37 +01:00
< / p >
2020-09-01 13:19:26 +02:00
< p > < span class = "figure-number" > Figure 14: < / span > Picture of an APA100M from Cedrat Technologies. Simplified model of a one DoF payload mounted on such isolator< / p >
2020-02-10 18:17:37 +01:00
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org9c0ae7d" class = "outline-4" >
< h4 id = "org9c0ae7d" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org9c0ae7d" >
2020-02-10 18:17:37 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeAmplifiedStrutDynamics< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeAmplifiedStrutDynamics - Add Stiffness and Damping properties of each strut< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeAmplifiedStrutDynamics(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - Ka [6x1] - Stiffness of the actuator [N/m]< / span >
< span class = "org-comment" > % - Ke [6x1] - Stiffness used to adjust the pole of the isolator [N/m]< / span >
< span class = "org-comment" > % - K1 [6x1] - Stiffness of the metallic suspension when the stack is removed [N/m]< / span >
< span class = "org-comment" > % - C1 [6x1] - Added viscous damping [N/(m/s)]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - actuators.type = 2< / span >
< span class = "org-comment" > % - actuators.K [6x1] - Total Stiffness of each strut [N/m]< / span >
< span class = "org-comment" > % - actuators.C [6x1] - Total Damping of each strut [N/(m/s)]< / span >
< span class = "org-comment" > % - actuators.Ka [6x1] - Stiffness of the actuator [N/m]< / span >
< span class = "org-comment" > % - actuators.Ke [6x1] - Stiffness used to adjust the pole of the isolator [N/m]< / span >
< span class = "org-comment" > % - actuators.K1 [6x1] - Stiffness of the metallic suspension when the stack is removed [N/m]< / span >
< span class = "org-comment" > % - actuators.C1 [6x1] - Added viscous damping [N/(m/s)]< / span >
2020-02-10 18:17:37 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org3deb05f" class = "outline-4" >
< h4 id = "org3deb05f" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org3deb05f" >
2020-02-10 18:17:37 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .Ke (6,1) double {mustBeNumeric, mustBeNonnegative} = 1.5e6< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Ka (6,1) double {mustBeNumeric, mustBeNonnegative} = 43e6< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .K1 (6,1) double {mustBeNumeric, mustBeNonnegative} = 0.4e6< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .C1 (6,1) double {mustBeNumeric, mustBeNonnegative} = 10< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-keyword" > end< / span >
2020-02-10 18:17:37 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org52a586e" class = "outline-4" >
< h4 id = "org52a586e" > Compute the total stiffness and damping< / h4 >
< div class = "outline-text-4" id = "text-org52a586e" >
2020-02-10 18:17:37 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > K = args.K1 < span class = "org-type" > +< / span > args.Ka< span class = "org-type" > .*< / span > args.Ke< span class = "org-type" > ./< / span > (args.Ka < span class = "org-type" > +< / span > args.Ke);
C = args.C1;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org0576b9c" class = "outline-4" >
< h4 id = "org0576b9c" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-org0576b9c" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.actuators.type = 2;
2020-02-10 18:17:37 +01:00
2021-01-08 15:34:53 +01:00
stewart.actuators.Ka = args.Ka;
stewart.actuators.Ke = args.Ke;
stewart.actuators.K1 = args.K1;
stewart.actuators.C1 = args.C1;
2020-02-10 18:17:37 +01:00
2021-01-08 15:34:53 +01:00
stewart.actuators.K = K;
stewart.actuators.C = C;
2020-02-10 18:17:37 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org0d2f9e2" class = "outline-3" >
< h3 id = "org0d2f9e2" > < span class = "section-number-3" > 5.11< / span > < code > initializeFlexibleStrutDynamics< / code > : Model each strut with a flexible element< / h3 >
< div class = "outline-text-3" id = "text-5-11" >
2020-02-10 18:17:37 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org7a2a8a0" > < / a >
2020-08-05 13:28:14 +02:00
< / p >
< p >
This Matlab function is accessible < a href = "../src/initializeFlexibleStrutDynamics.m" > here< / a > .
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org083e758" class = "outline-4" >
< h4 id = "org083e758" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org083e758" >
2020-08-05 13:28:14 +02:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeFlexibleStrutDynamics< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeFlexibleStrutDynamics - Add Stiffness and Damping properties of each strut< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeFlexibleStrutDynamics(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - K [nxn] - Vertical stiffness contribution of the piezoelectric stack [N/m]< / span >
< span class = "org-comment" > % - M [nxn] - Vertical damping contribution of the piezoelectric stack [N/(m/s)]< / span >
< span class = "org-comment" > % - xi [1x1] - Vertical (residual) stiffness when the piezoelectric stack is removed [N/m]< / span >
< span class = "org-comment" > % - step_file [6x1] - Vertical (residual) damping when the piezoelectric stack is removed [N/(m/s)]< / span >
< span class = "org-comment" > % - Gf [6x1] - Gain from strain in [m] to measured [N] such that it matches< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
2020-08-05 13:28:14 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgff49923" class = "outline-4" >
< h4 id = "orgff49923" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orgff49923" >
2020-08-05 13:28:14 +02:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .K double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .M double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .H double {mustBeNumeric} = 0
< span class = "org-variable-name" > args< / span > .n_xyz double {mustBeNumeric} = zeros(2,3)
< span class = "org-variable-name" > args< / span > .xi double {mustBeNumeric} = 0.1
< span class = "org-variable-name" > args< / span > .Gf double {mustBeNumeric} = 1
< span class = "org-variable-name" > args< / span > .step_file char {} = < span class = "org-string" > ''< / span >
< span class = "org-keyword" > end< / span >
2020-08-05 13:28:14 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org56a8783" class = "outline-4" >
< h4 id = "org56a8783" > Compute the axial offset< / h4 >
< div class = "outline-text-4" id = "text-org56a8783" >
2020-08-05 13:28:14 +02:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.actuators.ax_off = (stewart.geometry.l(1) < span class = "org-type" > -< / span > args.H)< span class = "org-type" > /< / span > 2; < span class = "org-comment" > % Axial Offset at the ends of the actuator< / span >
2020-08-05 13:28:14 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgb037aa7" class = "outline-4" >
< h4 id = "orgb037aa7" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-orgb037aa7" >
2020-08-05 13:28:14 +02:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.actuators.type = 3;
2020-08-05 13:28:14 +02:00
2021-01-08 15:34:53 +01:00
stewart.actuators.Km = args.K;
stewart.actuators.Mm = args.M;
2020-08-05 13:28:14 +02:00
2021-01-08 15:34:53 +01:00
stewart.actuators.n_xyz = args.n_xyz;
stewart.actuators.xi = args.xi;
2020-08-05 13:28:14 +02:00
2021-01-08 15:34:53 +01:00
stewart.actuators.step_file = args.step_file;
2020-08-05 13:28:14 +02:00
2021-01-08 15:34:53 +01:00
stewart.actuators.K = args.K(3,3); < span class = "org-comment" > % Axial Stiffness< / span >
2020-09-01 13:19:26 +02:00
2021-01-08 15:34:53 +01:00
stewart.actuators.Gf = args.Gf;
2020-08-05 13:28:14 +02:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org7666a0d" class = "outline-3" >
< h3 id = "org7666a0d" > < span class = "section-number-3" > 5.12< / span > < code > initializeJointDynamics< / code > : Add Stiffness and Damping properties for spherical joints< / h3 >
< div class = "outline-text-3" id = "text-5-12" >
2020-08-05 13:28:14 +02:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org60f3527" > < / a >
2020-01-27 17:42:09 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeJointDynamics.m" > here< / a > .
2020-01-27 17:42:09 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgd95bcc9" class = "outline-4" >
< h4 id = "orgd95bcc9" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orgd95bcc9" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeJointDynamics< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeJointDynamics - Add Stiffness and Damping properties for the spherical joints< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeJointDynamics(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - type_F - 'universal', 'spherical', 'universal_p', 'spherical_p'< / span >
< span class = "org-comment" > % - type_M - 'universal', 'spherical', 'universal_p', 'spherical_p'< / span >
< span class = "org-comment" > % - Kf_M [6x1] - Bending (Rx, Ry) Stiffness for each top joints [(N.m)/rad]< / span >
< span class = "org-comment" > % - Kt_M [6x1] - Torsion (Rz) Stiffness for each top joints [(N.m)/rad]< / span >
< span class = "org-comment" > % - Cf_M [6x1] - Bending (Rx, Ry) Damping of each top joint [(N.m)/(rad/s)]< / span >
< span class = "org-comment" > % - Ct_M [6x1] - Torsion (Rz) Damping of each top joint [(N.m)/(rad/s)]< / span >
< span class = "org-comment" > % - Kf_F [6x1] - Bending (Rx, Ry) Stiffness for each bottom joints [(N.m)/rad]< / span >
< span class = "org-comment" > % - Kt_F [6x1] - Torsion (Rz) Stiffness for each bottom joints [(N.m)/rad]< / span >
< span class = "org-comment" > % - Cf_F [6x1] - Bending (Rx, Ry) Damping of each bottom joint [(N.m)/(rad/s)]< / span >
< span class = "org-comment" > % - Cf_F [6x1] - Torsion (Rz) Damping of each bottom joint [(N.m)/(rad/s)]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - stewart.joints_F and stewart.joints_M:< / span >
< span class = "org-comment" > % - type - 1 (universal), 2 (spherical), 3 (universal perfect), 4 (spherical perfect)< / span >
< span class = "org-comment" > % - Kx, Ky, Kz [6x1] - Translation (Tx, Ty, Tz) Stiffness [N/m]< / span >
< span class = "org-comment" > % - Kf [6x1] - Flexion (Rx, Ry) Stiffness [(N.m)/rad]< / span >
< span class = "org-comment" > % - Kt [6x1] - Torsion (Rz) Stiffness [(N.m)/rad]< / span >
< span class = "org-comment" > % - Cx, Cy, Cz [6x1] - Translation (Rx, Ry) Damping [N/(m/s)]< / span >
< span class = "org-comment" > % - Cf [6x1] - Flexion (Rx, Ry) Damping [(N.m)/(rad/s)]< / span >
< span class = "org-comment" > % - Cb [6x1] - Torsion (Rz) Damping [(N.m)/(rad/s)]< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgd046fdd" class = "outline-4" >
< h4 id = "orgd046fdd" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orgd046fdd" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .type_F char {mustBeMember(args.type_F,{< span class = "org-string" > 'universal'< / span > , < span class = "org-string" > 'spherical'< / span > , < span class = "org-string" > 'universal_p'< / span > , < span class = "org-string" > 'spherical_p'< / span > , < span class = "org-string" > 'universal_3dof'< / span > , < span class = "org-string" > 'spherical_3dof'< / span > , < span class = "org-string" > 'flexible'< / span > })} = < span class = "org-string" > 'universal'< / span >
< span class = "org-variable-name" > args< / span > .type_M char {mustBeMember(args.type_M,{< span class = "org-string" > 'universal'< / span > , < span class = "org-string" > 'spherical'< / span > , < span class = "org-string" > 'universal_p'< / span > , < span class = "org-string" > 'spherical_p'< / span > , < span class = "org-string" > 'universal_3dof'< / span > , < span class = "org-string" > 'spherical_3dof'< / span > , < span class = "org-string" > 'flexible'< / span > })} = < span class = "org-string" > 'spherical'< / span >
< span class = "org-variable-name" > args< / span > .Kf_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 33< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Cf_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e< span class = "org-type" > -< / span > 4< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Kt_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 236< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Ct_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e< span class = "org-type" > -< / span > 3< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Kf_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 33< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Cf_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e< span class = "org-type" > -< / span > 4< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Kt_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 236< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Ct_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e< span class = "org-type" > -< / span > 3< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Ka_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 1.2e8< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Ca_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e1< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Kr_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 1.1e7< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Cr_F (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e1< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Ka_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 1.2e8< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Ca_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e1< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Kr_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 1.1e7< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .Cr_M (6,1) double {mustBeNumeric, mustBeNonnegative} = 1e1< span class = "org-type" > *< / span > ones(6,1)
< span class = "org-variable-name" > args< / span > .K_M double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .M_M double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .n_xyz_M double {mustBeNumeric} = zeros(2,3)
< span class = "org-variable-name" > args< / span > .xi_M double {mustBeNumeric} = 0.1
< span class = "org-variable-name" > args< / span > .step_file_M char {} = < span class = "org-string" > ''< / span >
< span class = "org-variable-name" > args< / span > .K_F double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .M_F double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .n_xyz_F double {mustBeNumeric} = zeros(2,3)
< span class = "org-variable-name" > args< / span > .xi_F double {mustBeNumeric} = 0.1
< span class = "org-variable-name" > args< / span > .step_file_F char {} = < span class = "org-string" > ''< / span >
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org1c44749" class = "outline-4" >
< h4 id = "org1c44749" > Add Actuator Type< / h4 >
< div class = "outline-text-4" id = "text-org1c44749" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > switch< / span > < span class = "org-constant" > args.type_F< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'universal'< / span >
stewart.joints_F.type = 1;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'spherical'< / span >
stewart.joints_F.type = 2;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'universal_p'< / span >
stewart.joints_F.type = 3;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'spherical_p'< / span >
stewart.joints_F.type = 4;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'flexible'< / span >
stewart.joints_F.type = 5;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'universal_3dof'< / span >
stewart.joints_F.type = 6;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'spherical_3dof'< / span >
stewart.joints_F.type = 7;
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > switch< / span > < span class = "org-constant" > args.type_M< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'universal'< / span >
stewart.joints_M.type = 1;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'spherical'< / span >
stewart.joints_M.type = 2;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'universal_p'< / span >
stewart.joints_M.type = 3;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'spherical_p'< / span >
stewart.joints_M.type = 4;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'flexible'< / span >
stewart.joints_M.type = 5;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'universal_3dof'< / span >
stewart.joints_M.type = 6;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'spherical_3dof'< / span >
stewart.joints_M.type = 7;
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org8a45695" class = "outline-4" >
< h4 id = "org8a45695" > Add Stiffness and Damping in Translation of each strut< / h4 >
< div class = "outline-text-4" id = "text-org8a45695" >
2020-02-11 15:16:07 +01:00
< p >
2020-09-01 13:19:26 +02:00
Axial and Radial (shear) Stiffness
2020-02-11 15:16:07 +01:00
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.joints_M.Ka = args.Ka_M;
stewart.joints_M.Kr = args.Kr_M;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.joints_F.Ka = args.Ka_F;
stewart.joints_F.Kr = args.Kr_F;
2020-02-11 15:16:07 +01:00
< / pre >
2020-01-27 17:42:09 +01:00
< / div >
2020-02-07 17:12:26 +01:00
< p >
2020-02-11 15:16:07 +01:00
Translation Damping
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.joints_M.Ca = args.Ca_M;
stewart.joints_M.Cr = args.Cr_M;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.joints_F.Ca = args.Ca_F;
stewart.joints_F.Cr = args.Cr_F;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgcba9dbe" class = "outline-4" >
< h4 id = "orgcba9dbe" > Add Stiffness and Damping in Rotation of each strut< / h4 >
< div class = "outline-text-4" id = "text-orgcba9dbe" >
2020-02-11 15:16:07 +01:00
< p >
Rotational Stiffness
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.joints_M.Kf = args.Kf_M;
stewart.joints_M.Kt = args.Kt_M;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.joints_F.Kf = args.Kf_F;
stewart.joints_F.Kt = args.Kt_F;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< p >
Rotational Damping
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.joints_M.Cf = args.Cf_M;
stewart.joints_M.Ct = args.Ct_M;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
stewart.joints_F.Cf = args.Cf_F;
stewart.joints_F.Ct = args.Ct_F;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-08-05 13:28:14 +02:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orge78c1bc" class = "outline-4" >
< h4 id = "orge78c1bc" > Stiffness and Mass matrices for flexible joint< / h4 >
< div class = "outline-text-4" id = "text-orge78c1bc" >
2020-08-05 13:28:14 +02:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.joints_F.M = args.M_F;
stewart.joints_F.K = args.K_F;
stewart.joints_F.n_xyz = args.n_xyz_F;
stewart.joints_F.xi = args.xi_F;
stewart.joints_F.xi = args.xi_F;
stewart.joints_F.step_file = args.step_file_F;
2020-08-05 13:28:14 +02:00
2021-01-08 15:34:53 +01:00
stewart.joints_M.M = args.M_M;
stewart.joints_M.K = args.K_M;
stewart.joints_M.n_xyz = args.n_xyz_M;
stewart.joints_M.xi = args.xi_M;
stewart.joints_M.step_file = args.step_file_M;
2020-08-05 13:28:14 +02:00
< / pre >
< / div >
< / div >
< / div >
2020-02-11 15:16:07 +01:00
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org995e0ff" class = "outline-3" >
< h3 id = "org995e0ff" > < span class = "section-number-3" > 5.13< / span > < code > initializeFlexibleStrutAndJointDynamics< / code > : Model each strut with a flexible element< / h3 >
< div class = "outline-text-3" id = "text-5-13" >
< p >
< a id = "orgc4ca382" > < / a >
< / p >
2020-02-11 15:16:07 +01:00
< p >
2021-01-08 15:34:53 +01:00
This Matlab function is accessible < a href = "../src/initializeFlexibleStrutAndJointDynamics.m" > here< / a > .
< / p >
< / div >
< div id = "outline-container-org796edd5" class = "outline-4" >
< h4 id = "org796edd5" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org796edd5" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeFlexibleStrutAndJointDynamics< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeFlexibleStrutAndJointDynamics - Add Stiffness and Damping properties of each strut< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeFlexibleStrutAndJointDynamics(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - K [nxn] - Vertical stiffness contribution of the piezoelectric stack [N/m]< / span >
< span class = "org-comment" > % - M [nxn] - Vertical damping contribution of the piezoelectric stack [N/(m/s)]< / span >
< span class = "org-comment" > % - xi [1x1] - Vertical (residual) stiffness when the piezoelectric stack is removed [N/m]< / span >
< span class = "org-comment" > % - step_file [6x1] - Vertical (residual) damping when the piezoelectric stack is removed [N/(m/s)]< / span >
< span class = "org-comment" > % - Gf [6x1] - Gain from strain in [m] to measured [N] such that it matches< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org81f8b20" class = "outline-4" >
< h4 id = "org81f8b20" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org81f8b20" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .K double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .M double {mustBeNumeric} = zeros(6,6)
< span class = "org-variable-name" > args< / span > .H double {mustBeNumeric} = 0
< span class = "org-variable-name" > args< / span > .n_xyz double {mustBeNumeric} = zeros(2,3)
< span class = "org-variable-name" > args< / span > .xi double {mustBeNumeric} = 0.1
< span class = "org-variable-name" > args< / span > .Gf double {mustBeNumeric} = 1
< span class = "org-variable-name" > args< / span > .step_file char {} = < span class = "org-string" > ''< / span >
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org67ae6f5" class = "outline-4" >
< h4 id = "org67ae6f5" > Compute the axial offset< / h4 >
< div class = "outline-text-4" id = "text-org67ae6f5" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > stewart.actuators.ax_off = (stewart.geometry.l(1) < span class = "org-type" > -< / span > args.H)< span class = "org-type" > /< / span > 2; < span class = "org-comment" > % Axial Offset at the ends of the actuator< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgb405c72" class = "outline-4" >
< h4 id = "orgb405c72" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-orgb405c72" >
< p >
No discrete joints:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > stewart.joints_F.type = 10;
stewart.joints_M.type = 10;
< / pre >
< / div >
< p >
No discrete struts:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > stewart.struts_F.type = 3;
stewart.struts_M.type = 3;
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > stewart.actuators.type = 4;
stewart.actuators.Km = args.K;
stewart.actuators.Mm = args.M;
stewart.actuators.n_xyz = args.n_xyz;
stewart.actuators.xi = args.xi;
stewart.actuators.step_file = args.step_file;
stewart.actuators.K = args.K(3,3); < span class = "org-comment" > % Axial Stiffness< / span >
stewart.actuators.Gf = args.Gf;
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org0873774" class = "outline-3" >
< h3 id = "org0873774" > < span class = "section-number-3" > 5.14< / span > < code > initializeInertialSensor< / code > : Initialize the inertial sensor in each strut< / h3 >
< div class = "outline-text-3" id = "text-5-14" >
< p >
< a id = "orgacc02e7" > < / a >
2020-02-11 15:16:07 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/initializeInertialSensor.m" > here< / a > .
2020-02-11 15:16:07 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org8521d8c" class = "outline-4" >
< h4 id = "org8521d8c" > Geophone - Working Principle< / h4 >
< div class = "outline-text-4" id = "text-org8521d8c" >
2020-02-13 15:48:03 +01:00
< p >
2021-01-08 15:34:53 +01:00
From the schematic of the Z-axis geophone shown in Figure < a href = "#org2566f07" > 15< / a > , we can write the transfer function from the support velocity \(\dot{w}\) to the relative velocity of the inertial mass \(\dot{d}\):
2020-02-13 15:48:03 +01:00
\[ \frac{\dot{d}}{\dot{w}} = \frac{-\frac{s^2}{{\omega_0}^2}}{\frac{s^2}{{\omega_0}^2} + 2 \xi \frac{s}{\omega_0} + 1} \]
with:
< / p >
< ul class = "org-ul" >
< li > \(\omega_0 = \sqrt{\frac{k}{m}}\)< / li >
< li > \(\xi = \frac{1}{2} \sqrt{\frac{m}{k}}\)< / li >
< / ul >
2021-01-08 15:34:53 +01:00
< div id = "org2566f07" class = "figure" >
2020-02-13 15:48:03 +01:00
< p > < img src = "figs/inertial_sensor.png" alt = "inertial_sensor.png" / >
< / p >
< p > < span class = "figure-number" > Figure 15: < / span > Schematic of a Z-Axis geophone< / p >
< / div >
< p >
We see that at frequencies above \(\omega_0\):
\[ \frac{\dot{d}}{\dot{w}} \approx -1 \]
< / p >
< p >
And thus, the measurement of the relative velocity of the mass with respect to its support gives the absolute velocity of the support.
< / p >
< p >
We generally want to have the smallest resonant frequency \(\omega_0\) to measure low frequency absolute velocity, however there is a trade-off between \(\omega_0\) and the mass of the inertial mass.
< / p >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org66673a3" class = "outline-4" >
< h4 id = "org66673a3" > Accelerometer - Working Principle< / h4 >
< div class = "outline-text-4" id = "text-org66673a3" >
2020-02-13 15:48:03 +01:00
< p >
2021-01-08 15:34:53 +01:00
From the schematic of the Z-axis accelerometer shown in Figure < a href = "#orga1d9095" > 16< / a > , we can write the transfer function from the support acceleration \(\ddot{w}\) to the relative position of the inertial mass \(d\):
2020-02-13 15:48:03 +01:00
\[ \frac{d}{\ddot{w}} = \frac{-\frac{1}{{\omega_0}^2}}{\frac{s^2}{{\omega_0}^2} + 2 \xi \frac{s}{\omega_0} + 1} \]
with:
< / p >
< ul class = "org-ul" >
< li > \(\omega_0 = \sqrt{\frac{k}{m}}\)< / li >
< li > \(\xi = \frac{1}{2} \sqrt{\frac{m}{k}}\)< / li >
< / ul >
2021-01-08 15:34:53 +01:00
< div id = "orga1d9095" class = "figure" >
2020-02-13 15:48:03 +01:00
< p > < img src = "figs/inertial_sensor.png" alt = "inertial_sensor.png" / >
< / p >
< p > < span class = "figure-number" > Figure 16: < / span > Schematic of a Z-Axis geophone< / p >
< / div >
< p >
We see that at frequencies below \(\omega_0\):
\[ \frac{d}{\ddot{w}} \approx -\frac{1}{{\omega_0}^2} \]
< / p >
< p >
And thus, the measurement of the relative displacement of the mass with respect to its support gives the absolute acceleration of the support.
< / p >
< p >
Note that there is trade-off between:
< / p >
< ul class = "org-ul" >
< li > the highest measurable acceleration \(\omega_0\)< / li >
< li > the sensitivity of the accelerometer which is equal to \(-\frac{1}{{\omega_0}^2}\)< / li >
< / ul >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org6242c90" class = "outline-4" >
< h4 id = "org6242c90" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org6242c90" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [stewart]< / span > = < span class = "org-function-name" > initializeInertialSensor< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % initializeInertialSensor - Initialize the inertial sensor in each strut< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [stewart] = initializeInertialSensor(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - type - 'geophone', 'accelerometer', 'none'< / span >
< span class = "org-comment" > % - mass [1x1] - Weight of the inertial mass [kg]< / span >
< span class = "org-comment" > % - freq [1x1] - Cutoff frequency [Hz]< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
< span class = "org-comment" > % - stewart - updated Stewart structure with the added fields:< / span >
< span class = "org-comment" > % - stewart.sensors.inertial< / span >
< span class = "org-comment" > % - type - 1 (geophone), 2 (accelerometer), 3 (none)< / span >
< span class = "org-comment" > % - K [1x1] - Stiffness [N/m]< / span >
< span class = "org-comment" > % - C [1x1] - Damping [N/(m/s)]< / span >
< span class = "org-comment" > % - M [1x1] - Inertial Mass [kg]< / span >
< span class = "org-comment" > % - G [1x1] - Gain< / span >
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orge44b879" class = "outline-4" >
< h4 id = "orge44b879" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orge44b879" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .type char {mustBeMember(args.type,{< span class = "org-string" > 'geophone'< / span > , < span class = "org-string" > 'accelerometer'< / span > , < span class = "org-string" > 'none'< / span > })} = < span class = "org-string" > 'none'< / span >
< span class = "org-variable-name" > args< / span > .mass (1,1) double {mustBeNumeric, mustBeNonnegative} = 1e< span class = "org-type" > -< / span > 2
< span class = "org-variable-name" > args< / span > .freq (1,1) double {mustBeNumeric, mustBeNonnegative} = 1e3
< span class = "org-keyword" > end< / span >
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org96a29e4" class = "outline-4" >
< h4 id = "org96a29e4" > Compute the properties of the sensor< / h4 >
< div class = "outline-text-4" id = "text-org96a29e4" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > sensor = struct();
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > switch< / span > < span class = "org-constant" > args.type< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'geophone'< / span >
sensor.type = 1;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
sensor.M = args.mass;
sensor.K = sensor.M < span class = "org-type" > *< / span > (2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > args.freq)< span class = "org-type" > ^< / span > 2;
sensor.C = 2< span class = "org-type" > *< / span > sqrt(sensor.M < span class = "org-type" > *< / span > sensor.K);
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'accelerometer'< / span >
sensor.type = 2;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
sensor.M = args.mass;
sensor.K = sensor.M < span class = "org-type" > *< / span > (2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > args.freq)< span class = "org-type" > ^< / span > 2;
sensor.C = 2< span class = "org-type" > *< / span > sqrt(sensor.M < span class = "org-type" > *< / span > sensor.K);
sensor.G = < span class = "org-type" > -< / span > sensor.K< span class = "org-type" > /< / span > sensor.M;
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'none'< / span >
sensor.type = 3;
< span class = "org-keyword" > end< / span >
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgc8f8c81" class = "outline-4" >
< h4 id = "orgc8f8c81" > Populate the < code > stewart< / code > structure< / h4 >
< div class = "outline-text-4" id = "text-orgc8f8c81" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > stewart.sensors.inertial = sensor;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org5a66d3a" class = "outline-3" >
< h3 id = "org5a66d3a" > < span class = "section-number-3" > 5.15< / span > < code > displayArchitecture< / code > : 3D plot of the Stewart platform architecture< / h3 >
< div class = "outline-text-3" id = "text-5-15" >
2020-02-11 15:16:07 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org2878132" > < / a >
2020-02-07 17:12:26 +01:00
< / p >
< p >
2020-02-11 18:04:45 +01:00
This Matlab function is accessible < a href = "../src/displayArchitecture.m" > here< / a > .
2020-02-07 17:12:26 +01:00
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orga146c7e" class = "outline-4" >
< h4 id = "orga146c7e" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orga146c7e" >
2020-02-07 17:12:26 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > []< / span > = < span class = "org-function-name" > displayArchitecture< / span > (< span class = "org-variable-name" > stewart< / span > , < span class = "org-variable-name" > args< / span > )
< span class = "org-comment" > % displayArchitecture - 3D plot of the Stewart platform architecture< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [] = displayArchitecture(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - stewart< / span >
< span class = "org-comment" > % - args - Structure with the following fields:< / span >
< span class = "org-comment" > % - AP [3x1] - The wanted position of {B} with respect to {A}< / span >
< span class = "org-comment" > % - ARB [3x3] - The rotation matrix that gives the wanted orientation of {B} with respect to {A}< / span >
< span class = "org-comment" > % - ARB [3x3] - The rotation matrix that gives the wanted orientation of {B} with respect to {A}< / span >
< span class = "org-comment" > % - F_color [color] - Color used for the Fixed elements< / span >
< span class = "org-comment" > % - M_color [color] - Color used for the Mobile elements< / span >
< span class = "org-comment" > % - L_color [color] - Color used for the Legs elements< / span >
< span class = "org-comment" > % - frames [true/false] - Display the Frames< / span >
< span class = "org-comment" > % - legs [true/false] - Display the Legs< / span >
< span class = "org-comment" > % - joints [true/false] - Display the Joints< / span >
< span class = "org-comment" > % - labels [true/false] - Display the Labels< / span >
< span class = "org-comment" > % - platforms [true/false] - Display the Platforms< / span >
< span class = "org-comment" > % - views ['all', 'xy', 'yz', 'xz', 'default'] -< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgca3d076" class = "outline-4" >
< h4 id = "orgca3d076" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orgca3d076" >
2020-02-07 17:12:26 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-variable-name" > args< / span > .AP (3,1) double {mustBeNumeric} = zeros(3,1)
< span class = "org-variable-name" > args< / span > .ARB (3,3) double {mustBeNumeric} = eye(3)
< span class = "org-variable-name" > args< / span > .F_color = [0 0.4470 0.7410]
< span class = "org-variable-name" > args< / span > .M_color = [0.8500 0.3250 0.0980]
< span class = "org-variable-name" > args< / span > .L_color = [0 0 0]
< span class = "org-variable-name" > args< / span > .frames logical {mustBeNumericOrLogical} = < span class = "org-constant" > true< / span >
< span class = "org-variable-name" > args< / span > .legs logical {mustBeNumericOrLogical} = < span class = "org-constant" > true< / span >
< span class = "org-variable-name" > args< / span > .joints logical {mustBeNumericOrLogical} = < span class = "org-constant" > true< / span >
< span class = "org-variable-name" > args< / span > .labels logical {mustBeNumericOrLogical} = < span class = "org-constant" > true< / span >
< span class = "org-variable-name" > args< / span > .platforms logical {mustBeNumericOrLogical} = < span class = "org-constant" > true< / span >
< span class = "org-variable-name" > args< / span > .views char {mustBeMember(args.views,{< span class = "org-string" > 'all'< / span > , < span class = "org-string" > 'xy'< / span > , < span class = "org-string" > 'xz'< / span > , < span class = "org-string" > 'yz'< / span > , < span class = "org-string" > 'default'< / span > })} = < span class = "org-string" > 'default'< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org8f74792" class = "outline-4" >
< h4 id = "org8f74792" > Check the < code > stewart< / code > structure elements< / h4 >
< div class = "outline-text-4" id = "text-org8f74792" >
2020-02-11 15:16:07 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > assert(isfield(stewart.platform_F, < span class = "org-string" > 'FO_A'< / span > ), < span class = "org-string" > 'stewart.platform_F should have attribute FO_A'< / span > )
FO_A = stewart.platform_F.FO_A;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.platform_M, < span class = "org-string" > 'MO_B'< / span > ), < span class = "org-string" > 'stewart.platform_M should have attribute MO_B'< / span > )
MO_B = stewart.platform_M.MO_B;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.geometry, < span class = "org-string" > 'H'< / span > ), < span class = "org-string" > 'stewart.geometry should have attribute H'< / span > )
H = stewart.geometry.H;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.platform_F, < span class = "org-string" > 'Fa'< / span > ), < span class = "org-string" > 'stewart.platform_F should have attribute Fa'< / span > )
Fa = stewart.platform_F.Fa;
2020-02-11 15:16:07 +01:00
2021-01-08 15:34:53 +01:00
assert(isfield(stewart.platform_M, < span class = "org-string" > 'Mb'< / span > ), < span class = "org-string" > 'stewart.platform_M should have attribute Mb'< / span > )
Mb = stewart.platform_M.Mb;
2020-02-11 15:16:07 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgb7e5d05" class = "outline-4" >
< h4 id = "orgb7e5d05" > Figure Creation, Frames and Homogeneous transformations< / h4 >
< div class = "outline-text-4" id = "text-orgb7e5d05" >
2020-02-07 17:12:26 +01:00
< p >
The reference frame of the 3d plot corresponds to the frame \(\{F\}\).
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > < span class = "org-type" > ~< / span > strcmp(args.views, < span class = "org-string" > 'all'< / span > )
< span class = "org-type" > figure< / span > ;
< span class = "org-keyword" > else< / span >
f = < span class = "org-type" > figure< / span > (< span class = "org-string" > 'visible'< / span > , < span class = "org-string" > 'off'< / span > );
< span class = "org-keyword" > end< / span >
2020-02-12 14:16:32 +01:00
2021-01-08 15:34:53 +01:00
hold on;
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
We first compute homogeneous matrices that will be useful to position elements on the figure where the reference frame is \(\{F\}\).
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > FTa = [eye(3), FO_A; ...
zeros< span class = "org-type" > (1,3), 1];< / span >
ATb = [args.ARB, args.AP; ...
zeros< span class = "org-type" > (1,3), 1];< / span >
BTm = [eye(3), < span class = "org-type" > -< / span > MO_B; ...
zeros< span class = "org-type" > (1,3), 1];< / span >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
FTm = FTa< span class = "org-type" > *< / span > ATb< span class = "org-type" > *< / span > BTm;
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Let’ s define a parameter that define the length of the unit vectors used to display the frames.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > d_unit_vector = H< span class = "org-type" > /< / span > 4;
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Let’ s define a parameter used to position the labels with respect to the center of the element.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > d_label = H< span class = "org-type" > /< / span > 20;
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orge26b777" class = "outline-4" >
< h4 id = "orge26b777" > Fixed Base elements< / h4 >
< div class = "outline-text-4" id = "text-orge26b777" >
2020-02-07 17:12:26 +01:00
< p >
Let’ s first plot the frame \(\{F\}\).
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Ff = [0, 0, 0];
< span class = "org-keyword" > if< / span > args.frames
quiver3(Ff(1)< span class = "org-type" > *< / span > ones(1,3), Ff(2)< span class = "org-type" > *< / span > ones(1,3), Ff(3)< span class = "org-type" > *< / span > ones(1,3), ...
[d_unit_vector 0 0], [0 d_unit_vector 0], [0 0 d_unit_vector], < span class = "org-string" > '-'< / span > , < span class = "org-string" > 'Color'< / span > , args.F_color)
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.labels
< span class = "org-type" > text< / span > (Ff(1) < span class = "org-type" > +< / span > d_label, ...
Ff< span class = "org-type" > (2) + d_label, ...< / span >
Ff(3) < span class = "org-type" > +< / span > d_label, < span class = "org-string" > '$\{F\}$'< / span > , < span class = "org-string" > 'Color'< / span > , args.F_color);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Now plot the frame \(\{A\}\) fixed to the Base.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > args.frames
quiver3(FO_A(1)< span class = "org-type" > *< / span > ones(1,3), FO_A(2)< span class = "org-type" > *< / span > ones(1,3), FO_A(3)< span class = "org-type" > *< / span > ones(1,3), ...
[d_unit_vector 0 0], [0 d_unit_vector 0], [0 0 d_unit_vector], < span class = "org-string" > '-'< / span > , < span class = "org-string" > 'Color'< / span > , args.F_color)
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.labels
< span class = "org-type" > text< / span > (FO_A(1) < span class = "org-type" > +< / span > d_label, ...
FO_A< span class = "org-type" > (2) + d_label, ...< / span >
FO_A(3) < span class = "org-type" > +< / span > d_label, < span class = "org-string" > '$\{A\}$'< / span > , < span class = "org-string" > 'Color'< / span > , args.F_color);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Let’ s then plot the circle corresponding to the shape of the Fixed base.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > args.platforms < span class = "org-type" > & & < / span > stewart.platform_F.type < span class = "org-type" > ==< / span > 1
theta = [0< span class = "org-type" > :< / span > 0.01< span class = "org-type" > :< / span > 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > +< / span > 0.01]; < span class = "org-comment" > % Angles [rad]< / span >
v = null([0; 0; 1]< span class = "org-type" > '< / span > ); < span class = "org-comment" > % Two vectors that are perpendicular to the circle normal< / span >
center = [0; 0; 0]; < span class = "org-comment" > % Center of the circle< / span >
radius = stewart.platform_F.R; < span class = "org-comment" > % Radius of the circle [m]< / span >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
points = center< span class = "org-type" > *< / span > ones(1, length(theta)) < span class = "org-type" > +< / span > radius< span class = "org-type" > *< / span > (v(< span class = "org-type" > :< / span > ,1)< span class = "org-type" > *< / span > cos(theta) < span class = "org-type" > +< / span > v(< span class = "org-type" > :< / span > ,2)< span class = "org-type" > *< / span > sin(theta));
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
plot3(points(1,< span class = "org-type" > :< / span > ), ...
points< span class = "org-type" > (2,:), ...< / span >
points(3,< span class = "org-type" > :< / span > ), < span class = "org-string" > '-'< / span > , < span class = "org-string" > 'Color'< / span > , args.F_color);
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Let’ s now plot the position and labels of the Fixed Joints
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > args.joints
scatter3(Fa(1,< span class = "org-type" > :< / span > ), ...
Fa< span class = "org-type" > (2,:), ...< / span >
Fa(3,< span class = "org-type" > :< / span > ), < span class = "org-string" > 'MarkerEdgeColor'< / span > , args.F_color);
< span class = "org-keyword" > if< / span > args.labels
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:size(Fa,2)< / span >
< span class = "org-type" > text< / span > (Fa(1,< span class = "org-constant" > i< / span > ) < span class = "org-type" > +< / span > d_label, ...
Fa(2,< span class = "org-constant" > i< / span > ), ...
Fa(3,< span class = "org-constant" > i< / span > ), sprintf(< span class = "org-string" > '$a_{%i}$'< / span > , < span class = "org-constant" > i< / span > ), < span class = "org-string" > 'Color'< / span > , args.F_color);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org8dd54b6" class = "outline-4" >
< h4 id = "org8dd54b6" > Mobile Platform elements< / h4 >
< div class = "outline-text-4" id = "text-org8dd54b6" >
2020-02-07 17:12:26 +01:00
< p >
Plot the frame \(\{M\}\).
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > Fm = FTm< span class = "org-type" > *< / span > [0; 0; 0; 1]; < span class = "org-comment" > % Get the position of frame {M} w.r.t. {F}< / span >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.frames
FM_uv = FTm< span class = "org-type" > *< / span > [d_unit_vector< span class = "org-type" > *< / span > eye(3); zeros(1,3)]; < span class = "org-comment" > % Rotated Unit vectors< / span >
quiver3(Fm(1)< span class = "org-type" > *< / span > ones(1,3), Fm(2)< span class = "org-type" > *< / span > ones(1,3), Fm(3)< span class = "org-type" > *< / span > ones(1,3), ...
FM_uv(1,1< span class = "org-type" > :< / span > 3), FM_uv(2,1< span class = "org-type" > :< / span > 3), FM_uv(3,1< span class = "org-type" > :< / span > 3), < span class = "org-string" > '-'< / span > , < span class = "org-string" > 'Color'< / span > , args.M_color)
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.labels
< span class = "org-type" > text< / span > (Fm(1) < span class = "org-type" > +< / span > d_label, ...
Fm< span class = "org-type" > (2) + d_label, ...< / span >
Fm(3) < span class = "org-type" > +< / span > d_label, < span class = "org-string" > '$\{M\}$'< / span > , < span class = "org-string" > 'Color'< / span > , args.M_color);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Plot the frame \(\{B\}\).
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > FB = FO_A < span class = "org-type" > +< / span > args.AP;
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.frames
FB_uv = FTm< span class = "org-type" > *< / span > [d_unit_vector< span class = "org-type" > *< / span > eye(3); zeros(1,3)]; < span class = "org-comment" > % Rotated Unit vectors< / span >
quiver3(FB(1)< span class = "org-type" > *< / span > ones(1,3), FB(2)< span class = "org-type" > *< / span > ones(1,3), FB(3)< span class = "org-type" > *< / span > ones(1,3), ...
FB_uv(1,1< span class = "org-type" > :< / span > 3), FB_uv(2,1< span class = "org-type" > :< / span > 3), FB_uv(3,1< span class = "org-type" > :< / span > 3), < span class = "org-string" > '-'< / span > , < span class = "org-string" > 'Color'< / span > , args.M_color)
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.labels
< span class = "org-type" > text< / span > (FB(1) < span class = "org-type" > -< / span > d_label, ...
FB< span class = "org-type" > (2) + d_label, ...< / span >
FB(3) < span class = "org-type" > +< / span > d_label, < span class = "org-string" > '$\{B\}$'< / span > , < span class = "org-string" > 'Color'< / span > , args.M_color);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Let’ s then plot the circle corresponding to the shape of the Mobile platform.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > args.platforms < span class = "org-type" > & & < / span > stewart.platform_M.type < span class = "org-type" > ==< / span > 1
theta = [0< span class = "org-type" > :< / span > 0.01< span class = "org-type" > :< / span > 2< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > +< / span > 0.01]; < span class = "org-comment" > % Angles [rad]< / span >
v = null((FTm(1< span class = "org-type" > :< / span > 3,1< span class = "org-type" > :< / span > 3)< span class = "org-type" > *< / span > [0;0;1])< span class = "org-type" > '< / span > ); < span class = "org-comment" > % Two vectors that are perpendicular to the circle normal< / span >
center = Fm(1< span class = "org-type" > :< / span > 3); < span class = "org-comment" > % Center of the circle< / span >
radius = stewart.platform_M.R; < span class = "org-comment" > % Radius of the circle [m]< / span >
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
points = center< span class = "org-type" > *< / span > ones(1, length(theta)) < span class = "org-type" > +< / span > radius< span class = "org-type" > *< / span > (v(< span class = "org-type" > :< / span > ,1)< span class = "org-type" > *< / span > cos(theta) < span class = "org-type" > +< / span > v(< span class = "org-type" > :< / span > ,2)< span class = "org-type" > *< / span > sin(theta));
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
plot3(points(1,< span class = "org-type" > :< / span > ), ...
points< span class = "org-type" > (2,:), ...< / span >
points(3,< span class = "org-type" > :< / span > ), < span class = "org-string" > '-'< / span > , < span class = "org-string" > 'Color'< / span > , args.M_color);
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< p >
Plot the position and labels of the rotation joints fixed to the mobile platform.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > args.joints
Fb = FTm< span class = "org-type" > *< / span > [Mb;ones(1,6)];
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
scatter3(Fb(1,< span class = "org-type" > :< / span > ), ...
Fb< span class = "org-type" > (2,:), ...< / span >
Fb(3,< span class = "org-type" > :< / span > ), < span class = "org-string" > 'MarkerEdgeColor'< / span > , args.M_color);
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.labels
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:size(Fb,2)< / span >
< span class = "org-type" > text< / span > (Fb(1,< span class = "org-constant" > i< / span > ) < span class = "org-type" > +< / span > d_label, ...
Fb(2,< span class = "org-constant" > i< / span > ), ...
Fb(3,< span class = "org-constant" > i< / span > ), sprintf(< span class = "org-string" > '$b_{%i}$'< / span > , < span class = "org-constant" > i< / span > ), < span class = "org-string" > 'Color'< / span > , args.M_color);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org3569efd" class = "outline-4" >
< h4 id = "org3569efd" > Legs< / h4 >
< div class = "outline-text-4" id = "text-org3569efd" >
2020-02-07 17:12:26 +01:00
< p >
Plot the legs connecting the joints of the fixed base to the joints of the mobile platform.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > args.legs
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
plot3([Fa(1,< span class = "org-constant" > i< / span > ), Fb(1,< span class = "org-constant" > i< / span > )], ...
[Fa(2,< span class = "org-constant" > i< / span > ), Fb(2,< span class = "org-constant" > i< / span > )], ...
[Fa(3,< span class = "org-constant" > i< / span > ), Fb(3,< span class = "org-constant" > i< / span > )], < span class = "org-string" > '-'< / span > , < span class = "org-string" > 'Color'< / span > , args.L_color);
2020-02-07 17:12:26 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > args.labels
< span class = "org-type" > text< / span > ((Fa(1,< span class = "org-constant" > i< / span > )< span class = "org-type" > +< / span > Fb(1,< span class = "org-constant" > i< / span > ))< span class = "org-type" > /< / span > 2 < span class = "org-type" > +< / span > d_label, ...
(Fa(2,< span class = "org-constant" > i< / span > )< span class = "org-type" > +< / span > Fb(2,< span class = "org-constant" > i< / span > ))< span class = "org-type" > /< / span > 2, ...
(Fa(3,< span class = "org-constant" > i< / span > )< span class = "org-type" > +< / span > Fb(3,< span class = "org-constant" > i< / span > ))< span class = "org-type" > /< / span > 2, sprintf(< span class = "org-string" > '$%i$'< / span > , < span class = "org-constant" > i< / span > ), < span class = "org-string" > 'Color'< / span > , args.L_color);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orgcb42b83" class = "outline-4" >
< h4 id = "orgcb42b83" > < span class = "section-number-4" > 5.15.1< / span > Figure parameters< / h4 >
< div class = "outline-text-4" id = "text-5-15-1" >
2020-02-07 17:12:26 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > switch< / span > < span class = "org-constant" > args.views< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'default'< / span >
view([1 < span class = "org-type" > -< / span > 0.6 0.4]);
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'xy'< / span >
view([0 0 1]);
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'xz'< / span >
view([0 < span class = "org-type" > -< / span > 1 0]);
< span class = "org-keyword" > case< / span > < span class = "org-string" > 'yz'< / span >
view([1 0 0]);
< span class = "org-keyword" > end< / span >
< span class = "org-type" > axis< / span > equal;
< span class = "org-type" > axis< / span > off;
2020-02-07 17:12:26 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-02-12 14:16:32 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org06467e9" class = "outline-4" >
< h4 id = "org06467e9" > < span class = "section-number-4" > 5.15.2< / span > Subplots< / h4 >
< div class = "outline-text-4" id = "text-5-15-2" >
2020-02-12 14:16:32 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > if< / span > strcmp(args.views, < span class = "org-string" > 'all'< / span > )
hAx = findobj(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'axes'< / span > );
2020-02-12 14:16:32 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-type" > figure< / span > ;
s1 = subplot(2,2,1);
copyobj(< span class = "org-type" > get< / span > (hAx(< span class = "org-variable-name" > 1< / span > ), < span class = "org-string" > 'Children'< / span > ), s1);
view([0 0 1]);
< span class = "org-type" > axis< / span > equal;
< span class = "org-type" > axis< / span > off;
title(< span class = "org-string" > 'Top'< / span > )
2020-02-12 14:16:32 +01:00
2021-01-08 15:34:53 +01:00
s2 = subplot(2,2,2);
copyobj(< span class = "org-type" > get< / span > (hAx(< span class = "org-variable-name" > 1< / span > ), < span class = "org-string" > 'Children'< / span > ), s2);
view([1 < span class = "org-type" > -< / span > 0.6 0.4]);
< span class = "org-type" > axis< / span > equal;
< span class = "org-type" > axis< / span > off;
2020-02-12 14:16:32 +01:00
2021-01-08 15:34:53 +01:00
s3 = subplot(2,2,3);
copyobj(< span class = "org-type" > get< / span > (hAx(< span class = "org-variable-name" > 1< / span > ), < span class = "org-string" > 'Children'< / span > ), s3);
view([1 0 0]);
< span class = "org-type" > axis< / span > equal;
< span class = "org-type" > axis< / span > off;
title(< span class = "org-string" > 'Front'< / span > )
2020-02-12 14:16:32 +01:00
2021-01-08 15:34:53 +01:00
s4 = subplot(2,2,4);
copyobj(< span class = "org-type" > get< / span > (hAx(< span class = "org-variable-name" > 1< / span > ), < span class = "org-string" > 'Children'< / span > ), s4);
view([0 < span class = "org-type" > -< / span > 1 0]);
< span class = "org-type" > axis< / span > equal;
< span class = "org-type" > axis< / span > off;
title(< span class = "org-string" > 'Side'< / span > )
2020-02-13 15:48:03 +01:00
2021-01-08 15:34:53 +01:00
close(f);
< span class = "org-keyword" > end< / span >
2020-02-12 14:16:32 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-02-07 17:12:26 +01:00
< / div >
2020-03-13 10:06:18 +01:00
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org02e6772" class = "outline-3" >
< h3 id = "org02e6772" > < span class = "section-number-3" > 5.16< / span > < code > describeStewartPlatform< / code > : Display some text describing the current defined Stewart Platform< / h3 >
< div class = "outline-text-3" id = "text-5-16" >
2020-03-13 10:06:18 +01:00
< p >
2021-01-08 15:34:53 +01:00
< a id = "org95559dc" > < / a >
2020-03-13 10:06:18 +01:00
< / p >
< p >
This Matlab function is accessible < a href = "../src/describeStewartPlatform.m" > here< / a > .
< / p >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org4c43493" class = "outline-4" >
< h4 id = "org4c43493" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org4c43493" >
2020-03-13 10:06:18 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > []< / span > = < span class = "org-function-name" > describeStewartPlatform< / span > (< span class = "org-variable-name" > stewart< / span > )
< span class = "org-comment" > % describeStewartPlatform - Display some text describing the current defined Stewart Platform< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Syntax: [] = describeStewartPlatform(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Inputs:< / span >
< span class = "org-comment" > % - stewart< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment" > % Outputs:< / span >
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org55b09bc" class = "outline-4" >
< h4 id = "org55b09bc" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org55b09bc" >
2020-03-13 10:06:18 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > arguments< / span >
< span class = "org-variable-name" > stewart< / span >
< span class = "org-keyword" > end< / span >
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-orge43c89a" class = "outline-4" >
< h4 id = "orge43c89a" > < span class = "section-number-4" > 5.16.1< / span > Geometry< / h4 >
< div class = "outline-text-4" id = "text-5-16-1" >
2020-03-13 10:06:18 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > fprintf(< span class = "org-string" > 'GEOMETRY:\n'< / span > )
fprintf(< span class = "org-string" > '- The height between the fixed based and the top platform is %.3g [mm].\n'< / span > , 1e3< span class = "org-type" > *< / span > stewart.geometry.H)
2020-03-13 10:06:18 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > stewart.platform_M.MO_B(3) < span class = "org-type" > > < / span > 0
fprintf(< span class = "org-string" > '- Frame {A} is located %.3g [mm] above the top platform.\n'< / span > , 1e3< span class = "org-type" > *< / span > stewart.platform_M.MO_B(3))
< span class = "org-keyword" > else< / span >
fprintf(< span class = "org-string" > '- Frame {A} is located %.3g [mm] below the top platform.\n'< / span > , < span class = "org-type" > -< / span > 1e3< span class = "org-type" > *< / span > stewart.platform_M.MO_B(3))
< span class = "org-keyword" > end< / span >
2020-03-13 10:06:18 +01:00
2021-01-08 15:34:53 +01:00
fprintf(< span class = "org-string" > '- The initial length of the struts are:\n'< / span > )
fprintf(< span class = "org-string" > '\t %.3g, %.3g, %.3g, %.3g, %.3g, %.3g [mm]\n'< / span > , 1e3< span class = "org-type" > *< / span > stewart.geometry.l)
fprintf(< span class = "org-string" > '\n'< / span > )
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< / div >
2020-01-27 17:42:09 +01:00
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org41beea5" class = "outline-4" >
< h4 id = "org41beea5" > < span class = "section-number-4" > 5.16.2< / span > Actuators< / h4 >
< div class = "outline-text-4" id = "text-5-16-2" >
2020-03-13 10:06:18 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > fprintf(< span class = "org-string" > 'ACTUATORS:\n'< / span > )
< span class = "org-keyword" > if< / span > stewart.actuators.type < span class = "org-type" > ==< / span > 1
fprintf(< span class = "org-string" > '- The actuators are classical.\n'< / span > )
fprintf(< span class = "org-string" > '- The Stiffness and Damping of each actuators is:\n'< / span > )
fprintf(< span class = "org-string" > '\t k = %.0e [N/m] \t c = %.0e [N/(m/s)]\n'< / span > , stewart.actuators.K(1), stewart.actuators.C(1))
< span class = "org-keyword" > elseif< / span > stewart.actuators.type < span class = "org-type" > ==< / span > 2
fprintf(< span class = "org-string" > '- The actuators are mechanicaly amplified.\n'< / span > )
fprintf(< span class = "org-string" > '- The vertical stiffness and damping contribution of the piezoelectric stack is:\n'< / span > )
fprintf(< span class = "org-string" > '\t ka = %.0e [N/m] \t ca = %.0e [N/(m/s)]\n'< / span > , stewart.actuators.Ka(1), stewart.actuators.Ca(1))
fprintf(< span class = "org-string" > '- Vertical stiffness when the piezoelectric stack is removed is:\n'< / span > )
fprintf(< span class = "org-string" > '\t kr = %.0e [N/m] \t cr = %.0e [N/(m/s)]\n'< / span > , stewart.actuators.Kr(1), stewart.actuators.Cr(1))
< span class = "org-keyword" > end< / span >
fprintf(< span class = "org-string" > '\n'< / span > )
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org293e123" class = "outline-4" >
< h4 id = "org293e123" > < span class = "section-number-4" > 5.16.3< / span > Joints< / h4 >
< div class = "outline-text-4" id = "text-5-16-3" >
2020-03-13 10:06:18 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > fprintf(< span class = "org-string" > 'JOINTS:\n'< / span > )
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< p >
Type of the joints on the fixed base.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > switch< / span > < span class = "org-constant" > stewart.joints_F.type< / span >
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 1< / span >
fprintf(< span class = "org-string" > '- The joints on the fixed based are universal joints\n'< / span > )
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 2< / span >
fprintf(< span class = "org-string" > '- The joints on the fixed based are spherical joints\n'< / span > )
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 3< / span >
fprintf(< span class = "org-string" > '- The joints on the fixed based are perfect universal joints\n'< / span > )
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 4< / span >
fprintf(< span class = "org-string" > '- The joints on the fixed based are perfect spherical joints\n'< / span > )
< span class = "org-keyword" > end< / span >
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< p >
Type of the joints on the mobile platform.
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > < span class = "org-keyword" > switch< / span > < span class = "org-constant" > stewart.joints_M.type< / span >
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 1< / span >
fprintf(< span class = "org-string" > '- The joints on the mobile based are universal joints\n'< / span > )
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 2< / span >
fprintf(< span class = "org-string" > '- The joints on the mobile based are spherical joints\n'< / span > )
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 3< / span >
fprintf(< span class = "org-string" > '- The joints on the mobile based are perfect universal joints\n'< / span > )
< span class = "org-keyword" > case< / span > < span class = "org-constant" > 4< / span >
fprintf(< span class = "org-string" > '- The joints on the mobile based are perfect spherical joints\n'< / span > )
< span class = "org-keyword" > end< / span >
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< p >
Position of the fixed joints
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > fprintf(< span class = "org-string" > '- The position of the joints on the fixed based with respect to {F} are (in [mm]):\n'< / span > )
fprintf(< span class = "org-string" > '\t % .3g \t % .3g \t % .3g\n'< / span > , 1e3< span class = "org-type" > *< / span > stewart.platform_F.Fa)
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< p >
Position of the mobile joints
< / p >
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > fprintf(< span class = "org-string" > '- The position of the joints on the mobile based with respect to {M} are (in [mm]):\n'< / span > )
fprintf(< span class = "org-string" > '\t % .3g \t % .3g \t % .3g\n'< / span > , 1e3< span class = "org-type" > *< / span > stewart.platform_M.Mb)
fprintf(< span class = "org-string" > '\n'< / span > )
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-01-08 15:34:53 +01:00
< div id = "outline-container-org94283a1" class = "outline-4" >
< h4 id = "org94283a1" > < span class = "section-number-4" > 5.16.4< / span > Kinematics< / h4 >
< div class = "outline-text-4" id = "text-5-16-4" >
2020-03-13 10:06:18 +01:00
< div class = "org-src-container" >
2021-01-08 15:34:53 +01:00
< pre class = "src src-matlab" > fprintf(< span class = "org-string" > 'KINEMATICS:\n'< / span > )
2020-03-13 10:06:18 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > isfield(stewart.kinematics, < span class = "org-string" > 'K'< / span > )
fprintf(< span class = "org-string" > '- The Stiffness matrix K is (in [N/m]):\n'< / span > )
fprintf(< span class = "org-string" > '\t % .0e \t % .0e \t % .0e \t % .0e \t % .0e \t % .0e\n'< / span > , stewart.kinematics.K)
< span class = "org-keyword" > end< / span >
2020-03-13 10:06:18 +01:00
2021-01-08 15:34:53 +01:00
< span class = "org-keyword" > if< / span > isfield(stewart.kinematics, < span class = "org-string" > 'C'< / span > )
fprintf(< span class = "org-string" > '- The Damping matrix C is (in [m/N]):\n'< / span > )
fprintf(< span class = "org-string" > '\t % .0e \t % .0e \t % .0e \t % .0e \t % .0e \t % .0e\n'< / span > , stewart.kinematics.C)
< span class = "org-keyword" > end< / span >
2020-03-13 10:06:18 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
< / div >
2020-02-12 14:16:32 +01:00
2020-01-27 17:42:09 +01:00
< p >
< / p >
2020-08-05 13:28:14 +02:00
< style > . csl-entry { text-indent : -1.5 em ; margin-left : 1.5 em ; } < / style > < h2 class = 'citeproc-org-bib-h2' > Bibliography< / h2 >
< div class = "csl-bib-body" >
< div class = "csl-entry" > < a name = "citeproc_bib_item_1" > < / a > Taghirad, Hamid. 2013. < i > Parallel Robots : Mechanics and Control< / i > . Boca Raton, FL: CRC Press.< / div >
< / div >
2020-01-27 17:42:09 +01:00
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2021-01-08 15:34:53 +01:00
< p class = "date" > Created: 2021-01-08 ven. 15:29< / p >
2020-01-27 17:42:09 +01:00
< / div >
< / body >
< / html >