2019-12-11 17:33:16 +01:00
<?xml version="1.0" encoding="utf-8"?>
2020-01-22 09:36:43 +01:00
<?xml version="1.0" encoding="utf-8"?>
2020-02-25 18:10:20 +01:00
<?xml version="1.0" encoding="utf-8"?>
2019-12-11 17:33:16 +01:00
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2020-02-25 18:10:20 +01:00
<!-- 2020 - 02 - 25 mar. 18:08 -->
2019-12-11 17:33:16 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > Computation of the Positioning Error with respect to the nano-hexapod< / title >
< meta name = "generator" content = "Org mode" / >
< meta name = "author" content = "Dehaeze Thomas" / >
< style type = "text/css" >
<!-- /* --> <![CDATA[/*> <!-- */
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
< / style >
< link rel = "stylesheet" type = "text/css" href = "../css/htmlize.css" / >
< link rel = "stylesheet" type = "text/css" href = "../css/readtheorg.css" / >
< link rel = "stylesheet" type = "text/css" href = "../css/zenburn.css" / >
< script type = "text/javascript" src = "../js/jquery.min.js" > < / script >
< script type = "text/javascript" src = "../js/bootstrap.min.js" > < / script >
< script type = "text/javascript" src = "../js/jquery.stickytableheaders.min.js" > < / script >
< script type = "text/javascript" src = "../js/readtheorg.js" > < / script >
< script type = "text/javascript" >
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
2020-01-22 09:36:43 +01:00
Copyright (C) 2012-2020 Free Software Foundation, Inc.
2019-12-11 17:33:16 +01:00
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!-- /* --> <![CDATA[/*> <!-- */
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
< / script >
2020-02-25 18:10:20 +01:00
< script >
MathJax = {
tex: { macros: {
bm: ["\\boldsymbol{#1}",1],
}
}
};
< / script >
< script type = "text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">< / script >
2019-12-11 17:33:16 +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" > Computation of the Positioning Error with respect to the nano-hexapod< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
2020-02-25 18:10:20 +01:00
< li > < a href = "#orgf8376ef" > 1. How do we measure the position of the sample with respect to the granite< / a > < / li >
< li > < a href = "#orgb3d760a" > 2. Verify that the function to compute the reference pose is correct< / a >
2019-12-11 17:33:16 +01:00
< ul >
2020-02-25 18:10:20 +01:00
< li > < a href = "#orgffeb030" > 2.1. Prepare the Simulation< / a > < / li >
< li > < a href = "#orgd2fa379" > 2.2. Verify that the pose of the sample is the same as the computed one< / a > < / li >
< li > < a href = "#orgc56cbe3" > 2.3. Conclusion< / a > < / li >
2019-12-11 17:33:16 +01:00
< / ul >
< / li >
2020-02-25 18:10:20 +01:00
< li > < a href = "#orgf6fa84d" > 3. Verify that the function to convert the position error in the frame fixed to the nano-hexapod is working< / a >
2019-12-11 17:33:16 +01:00
< ul >
2020-02-25 18:10:20 +01:00
< li > < a href = "#org5c3ae81" > 3.1. Prepare the Simulation< / a > < / li >
< li > < a href = "#org4e6a2dc" > 3.2. Compute the wanted pose of the sample in the NASS Base from the metrology and the reference< / a > < / li >
< li > < a href = "#orga048dbb" > 3.3. Verify that be imposing the error motion on the nano-hexapod, we indeed have zero error at the end< / a > < / li >
< li > < a href = "#org00066db" > 3.4. Conclusion< / a > < / li >
2019-12-11 17:33:16 +01:00
< / ul >
< / li >
< / ul >
< / div >
< / div >
< p >
2020-02-25 18:10:20 +01:00
The global measurement and control schematic is shown in figure < a href = "#org0939a33" > 1< / a > .
2019-12-11 17:33:16 +01:00
< / p >
2020-02-25 18:10:20 +01:00
< div id = "org0939a33" class = "figure" >
2019-12-11 17:33:16 +01:00
< p > < img src = "figs/control-schematic-nass.png" alt = "control-schematic-nass.png" / >
< / p >
< p > < span class = "figure-number" > Figure 1: < / span > Global Control Schematic for the Station< / p >
< / div >
< p >
2020-02-25 18:10:20 +01:00
In this document, are interesting by the “ compute Sample Position w.r.t. Granite” bloc and we develop and verify that the two green blocs are working.
2019-12-11 17:33:16 +01:00
< / p >
< p >
We suppose that we are able to measure perfectly the position of the sample with respect to the granite.
2020-01-22 09:36:43 +01:00
This means that we do not care about the bloc “ Compute Sample Position w.r.t. Granite” that makes the transformation from the interferometer measurements to the position of the sample.
2019-12-11 17:33:16 +01:00
We suppose that we can directly measure perfectly the position of the sample with respect to the granite.
2020-01-22 09:36:43 +01:00
This is actually done with a “ transform sensor block” that outputs the x-y-z translation of the sample with respect to the granite as well as the rotation matrix that maps the granite frame to the sample frame.
2019-12-11 17:33:16 +01:00
< / p >
< p >
Also, all the stages can be perfectly positioned.
< / p >
< p >
2020-02-25 18:10:20 +01:00
First, in section < a href = "#org82a4cbd" > 1< / a > , is explained how the measurement of the position of the sample with respect to the granite is performed (using Simscape blocs).
< / p >
< p >
In section < a href = "#orgbdef361" > 2< / a > , we verify that the function developed to compute the wanted pose (translation and orientation) of the sample with respect to the granite can be determined from the wanted position of each stage (translation stage, tilt stage, spindle and micro-hexapod). This corresponds to the bloc “ Compute Wanted Sample Position w.r.t. Granite” in figure < a href = "#org0939a33" > 1< / a > .
2019-12-11 17:33:16 +01:00
To do so, we impose a perfect displacement and all the stage, we perfectly measure the position of the sample with respect to the granite, and we verify that this measured position corresponds to the computed wanted pose of the sample.
< / p >
< p >
2020-02-25 18:10:20 +01:00
Then, in section < a href = "#orgb2f3e9c" > 3< / a > , we introduce some positioning error in the micro-station’ s stages.
The positioning error of the sample expressed with respect to the granite frame (the one measured) is expressed in a frame connected to the NASS top platform (corresponding to the green bloc “ Compute Sample Position Error w.r.t. NASS” in figure < a href = "#org0939a33" > 1< / a > ).
2019-12-11 17:33:16 +01:00
Then, we move the NASS such that it compensate for the positioning error that are expressed in the frame of the NASS, and we verify that the positioning error of the sample is well compensated.
< / p >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-orgf8376ef" class = "outline-2" >
< h2 id = "orgf8376ef" > < span class = "section-number-2" > 1< / span > How do we measure the position of the sample with respect to the granite< / h2 >
2019-12-11 17:33:16 +01:00
< div class = "outline-text-2" id = "text-1" >
< p >
2020-02-25 18:10:20 +01:00
< a id = "org82a4cbd" > < / a >
A transform sensor block gives the translation and orientation of the follower frame with respect to the base frame.
< / p >
< p >
The base frame is fixed to the granite and located at the initial sample location that defines the zero position.
< / p >
< p >
The follower frame is attached to the sample (or more precisely to the reflector).
< / p >
< p >
The outputs of the transform sensor are:
< / p >
< ul class = "org-ul" >
< li > the 3 translations x, y and z in meter< / li >
< li > the < b > rotation matrix< / b > \(\bm{R}\) that permits to rotate the base frame into the follower frame.< / li >
< / ul >
< p >
We can then determine extract other orientation conventions such that Euler angles or screw axis.
< / p >
< / div >
< / div >
< div id = "outline-container-orgb3d760a" class = "outline-2" >
< h2 id = "orgb3d760a" > < span class = "section-number-2" > 2< / span > Verify that the function to compute the reference pose is correct< / h2 >
< div class = "outline-text-2" id = "text-2" >
< p >
< a id = "orgbdef361" > < / a >
2019-12-11 17:33:16 +01:00
< / p >
< p >
The goal here is to perfectly move the station and verify that there is no mismatch between the metrology measurement and the computation of the reference pose.
< / p >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-orgffeb030" class = "outline-3" >
< h3 id = "orgffeb030" > < span class = "section-number-3" > 2.1< / span > Prepare the Simulation< / h3 >
< div class = "outline-text-3" id = "text-2-1" >
2019-12-11 17:33:16 +01:00
< p >
We set a small < code > StopTime< / code > .
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > load(< span class = "org-string" > 'mat/conf_simulink.mat'< / span > );
< span class = "org-matlab-simulink-keyword" > set_param< / span > (< span class = "org-variable-name" > conf_simulink< / span > , < span class = "org-string" > 'StopTime'< / span > , < span class = "org-string" > '0.5'< / span > );
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
We initialize all the stages.
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > initializeGround(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeGranite(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeTy(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeRy(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeRz(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeMicroHexapod(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeAxisc(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeMirror(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeNanoHexapod(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > , < span class = "org-string" > 'actuator'< / span > , < span class = "org-string" > 'piezo'< / span > );
initializeSample(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > , < span class = "org-string" > 'mass'< / span > , 50);
< / pre >
< / div >
< p >
No disturbance and no gravity.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > initializeSimscapeConfiguration(< span class = "org-string" > 'gravity'< / span > , < span class = "org-constant" > false< / span > );
initializeDisturbances(< span class = "org-string" > 'enable'< / span > , < span class = "org-constant" > false< / span > );
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
We setup the reference path to be constant.
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > initializeReferences(...
< span class = "org-string" > 'Ts'< / span > , 1e< span class = "org-type" > -< / span > 3, ...< span class = "org-comment" > % Sampling Frequency [s]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Dy_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "triangular" / "sinusoidal"< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Dy_amplitude'< / span > , 5e< span class = "org-type" > -< / span > 3, ...< span class = "org-comment" > % Amplitude of the displacement [m]< / span >
< span class = "org-string" > 'Dy_period'< / span > , 1, ...< span class = "org-comment" > % Period of the displacement [s]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Ry_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "triangular" / "sinusoidal"< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Ry_amplitude'< / span > , < span class = "org-type" > -< / span > 1< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180, ...< span class = "org-comment" > % Amplitude [rad]< / span >
< span class = "org-string" > 'Ry_period'< / span > , 10, ...< span class = "org-comment" > % Period of the displacement [s]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Rz_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "rotating"< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Rz_amplitude'< / span > , < span class = "org-type" > -< / span > 135< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180, ...< span class = "org-comment" > % Initial angle [rad]< / span >
< span class = "org-string" > 'Rz_period'< / span > , 1, ...< span class = "org-comment" > % Period of the rotating [s]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Dh_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Dh_pos'< / span > , [0.01; 0.02; < span class = "org-type" > -< / span > 0.03; < span class = "org-type" > -< / span > 3< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180; 1< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180; 3< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180], ...< span class = "org-comment" > % Initial position [m,m,m,rad,rad,rad] of the top platform< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Rm_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Rm_pos'< / span > , [0, < span class = "org-constant" > pi< / span > ]< span class = "org-type" > '< / span > , ...< span class = "org-comment" > % Initial position of the two masses< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Dn_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Dn_pos'< / span > , [1e< span class = "org-type" > -< / span > 3; 2e< span class = "org-type" > -< / span > 3; 3e< span class = "org-type" > -< / span > 3; 1< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180; 0; 1< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180] ...< span class = "org-comment" > % Initial position [m,m,m,rad,rad,rad] of the top platform< / span >
);
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
No position error for now (perfect positioning).
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > Dye = 0; < span class = "org-comment" > % [m]< / span >
Rye = 0; < span class = "org-comment" > % [rad]< / span >
Rze = 0; < span class = "org-comment" > % [rad]< / span >
Dhe = zeros(6,1); < span class = "org-comment" > % [m,m,m,rad,rad,rad]< / span >
Dhle = zeros(6,1); < span class = "org-comment" > % [m,m,m,m,m,m]< / span >
Dne = zeros(6,1); < span class = "org-comment" > % [m,m,m,rad,rad,rad]< / span >
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
2020-02-25 18:10:20 +01:00
< p >
We want to log the signals
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > initializeLoggingConfiguration(< span class = "org-string" > 'log'< / span > , < span class = "org-string" > 'all'< / span > );
< / pre >
< / div >
2019-12-11 17:33:16 +01:00
< p >
And we run the simulation.
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > < span class = "org-matlab-simulink-keyword" > sim< / span > (< span class = "org-string" > 'nass_model'< / span > );
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-orgd2fa379" class = "outline-3" >
< h3 id = "orgd2fa379" > < span class = "section-number-3" > 2.2< / span > Verify that the pose of the sample is the same as the computed one< / h3 >
< div class = "outline-text-3" id = "text-2-2" >
2019-12-11 17:33:16 +01:00
< p >
2020-01-22 09:36:43 +01:00
Let’ s denote:
2019-12-11 17:33:16 +01:00
< / p >
< ul class = "org-ul" >
< li > \(\{W\}\) the initial fixed frame (base in which the interferometric measurement is done)< / li >
< li > \(\{R\}\) the reference frame corresponding to the wanted pose of the sample< / li >
< li > \(\{M\}\) the frame corresponding to the measured pose of the sample< / li >
< / ul >
< p >
We have then computed:
< / p >
< ul class = "org-ul" >
< li > \({}^W\bm{T}_R\) which corresponds to the wanted pose of the sample with respect to the granite< / li >
< li > \({}^W\bm{T}_M\) which corresponds to the measured pose of the sample with respect to the granite< / li >
< / ul >
< p >
We load the reference and we compute the desired trajectory of the sample in the form of an homogeneous transformation matrix \({}^W\bm{T}_R\).
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > n = length(simout.r.Dy.Time);
2020-01-22 09:36:43 +01:00
WTr = zeros(4, 4, n);
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:n< / span >
2020-02-25 18:10:20 +01:00
WTr(< span class = "org-type" > :< / span > , < span class = "org-type" > :< / span > , < span class = "org-constant" > i< / span > ) = computeReferencePose(simout.r.Dy.Data(< span class = "org-constant" > i< / span > ), simout.r.Ry.Data(< span class = "org-constant" > i< / span > ), simout.r.Rz.Data(< span class = "org-constant" > i< / span > ), simout.r.Dh.Data(< span class = "org-constant" > i< / span > ,< span class = "org-type" > :< / span > ), simout.r.Dn.Data(< span class = "org-constant" > i< / span > ,< span class = "org-type" > :< / span > ));
2019-12-11 17:33:16 +01:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
As the displacement is perfect, we also measure in simulation the pose of the sample with respect to the granite.
From that we can compute the homogeneous transformation matrix \({}^W\bm{T}_M\).
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > n = length(simout.y.R.Time);
2020-01-22 09:36:43 +01:00
WTm = zeros(4, 4, n);
2020-02-25 18:10:20 +01:00
WTm(1< span class = "org-type" > :< / span > 3, 1< span class = "org-type" > :< / span > 3, < span class = "org-type" > :< / span > ) = simout.y.R.Data;
WTm(1< span class = "org-type" > :< / span > 3, 4, < span class = "org-type" > :< / span > ) = [simout.y.x.Data< span class = "org-type" > '< / span > ; simout.y.y.Data< span class = "org-type" > '< / span > ; simout.y.z.Data< span class = "org-type" > '< / span > ];
2020-01-22 09:36:43 +01:00
WTm(4, 4, < span class = "org-type" > :< / span > ) = 1;
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
As the simulation is perfect (no measurement error and no motion error), we should have that
\[ {}^W\bm{T}_R = {}^W\bm{T}_M \]
< / p >
< p >
Or are least:
\[ {}^W\bm{T}_R(1:3, 4) = {}^W\bm{T}_M(1:3, 4) \]
\[ {}^W\bm{R}_R^t \cdot {}^W\bm{R}_M = \bm{I}_3 \]
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > WTr(1< span class = "org-type" > :< / span > 3, 4, end)< span class = "org-type" > -< / span > WTm(1< span class = "org-type" > :< / span > 3, 4, end)
WTr(1< span class = "org-type" > :< / span > 3, 1< span class = "org-type" > :< / span > 3, end)< span class = "org-type" > '*< / span > WTm(1< span class = "org-type" > :< / span > 3, 1< span class = "org-type" > :< / span > 3, end)< span class = "org-type" > -< / span > eye(3)
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< pre class = "example" >
WTr(1:3, 4, end)-WTm(1:3, 4, end)
ans =
2019-12-13 11:06:40 +01:00
8.53830894875784e-15
-5.58580959264532e-15
-5.89805981832114e-17
2019-12-11 17:33:16 +01:00
WTr(1:3, 1:3, end)'*WTm(1:3, 1:3, end)-eye(3)
ans =
2019-12-13 11:06:40 +01:00
1.62092561595273e-14 -1.59832000065641e-14 1.11022302462516e-16
1.61295672998496e-14 1.62092561595273e-14 -1.72431513512095e-15
-1.65492619608187e-15 -9.8879238130678e-16 9.41469124882133e-14
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-orgc56cbe3" class = "outline-3" >
< h3 id = "orgc56cbe3" > < span class = "section-number-3" > 2.3< / span > Conclusion< / h3 >
< div class = "outline-text-3" id = "text-2-3" >
2019-12-11 17:33:16 +01:00
< div class = "important" >
< p >
We are able to compute the wanted position and orientation of the sample.
Both the measurement and the theory gives the same result.
< / p >
< / div >
< / div >
< / div >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-orgf6fa84d" class = "outline-2" >
< h2 id = "orgf6fa84d" > < span class = "section-number-2" > 3< / span > Verify that the function to convert the position error in the frame fixed to the nano-hexapod is working< / h2 >
< div class = "outline-text-2" id = "text-3" >
2019-12-11 17:33:16 +01:00
< p >
2020-02-25 18:10:20 +01:00
< a id = "orgb2f3e9c" > < / a >
2019-12-11 17:33:16 +01:00
< / p >
< p >
We now introduce some positioning error in the stage.
This will induce a global positioning error of the sample with respect to the desired pose that we can compute.
< / p >
< p >
We want to verify that we are able to measure this positioning error and convert it in the frame attached to the Nano-hexapod.
< / p >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-org5c3ae81" class = "outline-3" >
< h3 id = "org5c3ae81" > < span class = "section-number-3" > 3.1< / span > Prepare the Simulation< / h3 >
< div class = "outline-text-3" id = "text-3-1" >
2019-12-11 17:33:16 +01:00
< p >
2020-02-25 18:10:20 +01:00
We set a small < code > StopTime< / code > .
2019-12-11 17:33:16 +01:00
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > load(< span class = "org-string" > 'mat/conf_simulink.mat'< / span > );
< span class = "org-matlab-simulink-keyword" > set_param< / span > (< span class = "org-variable-name" > conf_simulink< / span > , < span class = "org-string" > 'StopTime'< / span > , < span class = "org-string" > '0.5'< / span > );
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
2020-02-25 18:10:20 +01:00
We initialize all the stages.
2019-12-11 17:33:16 +01:00
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > initializeGround(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeGranite(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeTy(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeRy(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeRz(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeMicroHexapod(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeAxisc(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeMirror(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > );
initializeNanoHexapod(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > , < span class = "org-string" > 'actuator'< / span > , < span class = "org-string" > 'piezo'< / span > );
initializeSample(< span class = "org-string" > 'type'< / span > , < span class = "org-string" > 'rigid'< / span > , < span class = "org-string" > 'mass'< / span > , 50);
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
2020-02-25 18:10:20 +01:00
No disturbance and no gravity.
2019-12-11 17:33:16 +01:00
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > initializeSimscapeConfiguration(< span class = "org-string" > 'gravity'< / span > , < span class = "org-constant" > false< / span > );
initializeDisturbances(< span class = "org-string" > 'enable'< / span > , < span class = "org-constant" > false< / span > );
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
We setup the reference path to be constant.
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > initializeReferences(...
< span class = "org-string" > 'Ts'< / span > , 1e< span class = "org-type" > -< / span > 3, ...< span class = "org-comment" > % Sampling Frequency [s]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Dy_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "triangular" / "sinusoidal"< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Dy_amplitude'< / span > , 0, ...< span class = "org-comment" > % Amplitude of the displacement [m]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Ry_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "triangular" / "sinusoidal"< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Ry_amplitude'< / span > , 0, ...< span class = "org-comment" > % Amplitude [rad]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Rz_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "rotating"< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Rz_amplitude'< / span > , 0< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180, ...< span class = "org-comment" > % Initial angle [rad]< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Dh_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Dh_pos'< / span > , [0; 0; 0; 0; 0; 0], ...< span class = "org-comment" > % Initial position [m,m,m,rad,rad,rad] of the top platform< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Rm_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Rm_pos'< / span > , [0, < span class = "org-constant" > pi< / span > ]< span class = "org-type" > '< / span > , ...< span class = "org-comment" > % Initial position of the two masses< / span >
2019-12-11 17:33:16 +01:00
< span class = "org-string" > 'Dn_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
2020-01-22 09:36:43 +01:00
< span class = "org-string" > 'Dn_pos'< / span > , [0; 0; 0; 0; 0; 0] ...< span class = "org-comment" > % Initial position [m,m,m,rad,rad,rad] of the top platform< / span >
);
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
Now we introduce some positioning error.
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > Dye = 1e< span class = "org-type" > -< / span > 6; < span class = "org-comment" > % [m]< / span >
Rye = 2e< span class = "org-type" > -< / span > 4; < span class = "org-comment" > % [rad]< / span >
Rze = 1e< span class = "org-type" > -< / span > 5; < span class = "org-comment" > % [rad]< / span >
2020-02-25 18:10:20 +01:00
initializePosError(< span class = "org-string" > 'error'< / span > , < span class = "org-constant" > true< / span > , < span class = "org-string" > 'Dy'< / span > , Dye, < span class = "org-string" > 'Ry'< / span > , Rye, < span class = "org-string" > 'Rz'< / span > , Rze);
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
And we run the simulation.
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > < span class = "org-matlab-simulink-keyword" > sim< / span > (< span class = "org-string" > 'nass_model'< / span > );
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-org4e6a2dc" class = "outline-3" >
< h3 id = "org4e6a2dc" > < span class = "section-number-3" > 3.2< / span > Compute the wanted pose of the sample in the NASS Base from the metrology and the reference< / h3 >
< div class = "outline-text-3" id = "text-3-2" >
2019-12-11 17:33:16 +01:00
< p >
Now that we have introduced some positioning error, the computed wanted pose and the measured pose will not be the same.
< / p >
< p >
We would like to compute \({}^M\bm{T}_R\) which corresponds to the wanted pose of the sample expressed in a frame attached to the top platform of the nano-hexapod (frame \(\{M\}\)).
< / p >
< p >
We have:
< / p >
\begin{align}
{}^M\bm{T}_R & = {}^M\bm{T}_W \cdot {}^W\bm{T}_R \\
& = {}^W{\bm{T}_M}^{-1} \cdot {}^W\bm{T}_R
\end{align}
< p >
The top platform of the nano-hexapod is considered to be rigidly connected to the sample, thus, \({}^M\bm{T}_R\) corresponds to the pose error of the sample with respect to the nano-hexapod platform.
< / p >
< p >
We load the reference and we compute the desired trajectory of the sample in the form of an homogeneous transformation matrix \({}^W\bm{T}_R\).
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > n = length(simout.r.Dy.Time);
2020-01-22 09:36:43 +01:00
WTr = zeros(4, 4, n);
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:n< / span >
2020-02-25 18:10:20 +01:00
WTr(< span class = "org-type" > :< / span > , < span class = "org-type" > :< / span > , < span class = "org-constant" > i< / span > ) = computeReferencePose(simout.r.Dy.Data(< span class = "org-constant" > i< / span > ), simout.r.Ry.Data(< span class = "org-constant" > i< / span > ), simout.r.Rz.Data(< span class = "org-constant" > i< / span > ), simout.r.Dh.Data(< span class = "org-constant" > i< / span > ,< span class = "org-type" > :< / span > ), simout.r.Dn.Data(< span class = "org-constant" > i< / span > ,< span class = "org-type" > :< / span > ));
2019-12-11 17:33:16 +01:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
We also measure in simulation the pose of the sample with respect to the granite.
From that we can compute the homogeneous transformation matrix \({}^W\bm{T}_M\).
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > n = length(simout.y.R.Time);
2020-01-22 09:36:43 +01:00
WTm = zeros(4, 4, n);
2020-02-25 18:10:20 +01:00
WTm(1< span class = "org-type" > :< / span > 3, 1< span class = "org-type" > :< / span > 3, < span class = "org-type" > :< / span > ) = simout.y.R.Data;
WTm(1< span class = "org-type" > :< / span > 3, 4, < span class = "org-type" > :< / span > ) = [simout.y.x.Data< span class = "org-type" > '< / span > ; simout.y.y.Data< span class = "org-type" > '< / span > ; simout.y.z.Data< span class = "org-type" > '< / span > ];
2020-01-22 09:36:43 +01:00
WTm(4, 4, < span class = "org-type" > :< / span > ) = 1;
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
The < b > inverse of the transformation matrix< / b > can be obtain by (it is less computation intensive than doing a full inverse)
< / p >
\begin{equation}
{}^B\bm{T}_A = {}^A\bm{T}_B^{-1} =
\left[ \begin{array}{ccc|c}
& & & \\
& {}^A\bm{R}_B^T & & -{}^A \bm{R}_B^T {}^A\bm{P}_{O_B} \\
& & & \\
\hline
0 & 0 & 0 & 1 \\
\end{array} \right]
\end{equation}
< p >
Finally, we compute \({}^M\bm{T}_R\).
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > MTr = zeros(4, 4, n);
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:n< / span >
MTr(< span class = "org-type" > :< / span > , < span class = "org-type" > :< / span > , < span class = "org-constant" > i< / span > ) = [WTm(1< span class = "org-type" > :< / span > 3,1< span class = "org-type" > :< / span > 3,< span class = "org-constant" > i< / span > )< span class = "org-type" > '< / span > , < span class = "org-type" > -< / span > WTm(1< span class = "org-type" > :< / span > 3,1< span class = "org-type" > :< / span > 3,< span class = "org-constant" > i< / span > )< span class = "org-type" > '*< / span > WTm(1< span class = "org-type" > :< / span > 3,4,< span class = "org-constant" > i< / span > ) ; 0 0 0 1]< span class = "org-type" > *< / span > WTr(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > );
2019-12-11 17:33:16 +01:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
Verify that the pose error corresponds to the positioning error of the stages.
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > MTr(1< span class = "org-type" > :< / span > 3, 1< span class = "org-type" > :< / span > 3, end)
Rx = [1 0 0;
0 cos(Erx) < span class = "org-type" > -< / span > sin(Erx);
0 sin(Erx) cos(Erx)];
Ry = [ cos(Ery) 0 sin(Ery);
0 1 0;
< span class = "org-type" > -< / span > sin(Ery) 0 cos(Ery)];
Rz = [cos(Erz) < span class = "org-type" > -< / span > sin(Erz) 0;
sin(Erz) cos(Erz) 0;
0 0 1];
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< colgroup >
< col class = "org-left" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< thead >
< tr >
< th scope = "col" class = "org-left" >   < / th >
< th scope = "col" class = "org-right" > Edx [m]< / th >
< th scope = "col" class = "org-right" > Edy [m]< / th >
< th scope = "col" class = "org-right" > Edz [m]< / th >
< th scope = "col" class = "org-right" > Erx [rad]< / th >
< th scope = "col" class = "org-right" > Ery [rad]< / th >
< th scope = "col" class = "org-right" > Erz [rad]< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "org-left" > Error< / td >
2020-02-25 18:10:20 +01:00
< td class = "org-right" > -1.0e-11< / td >
< td class = "org-right" > -1.0e-06< / td >
< td class = "org-right" > -6.2e-16< / td >
< td class = "org-right" > -2.0e-09< / td >
< td class = "org-right" > -2.0e-04< / td >
< td class = "org-right" > -1.0e-05< / td >
2019-12-11 17:33:16 +01:00
< / tr >
< / tbody >
< / table >
< / div >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-orga048dbb" class = "outline-3" >
< h3 id = "orga048dbb" > < span class = "section-number-3" > 3.3< / span > Verify that be imposing the error motion on the nano-hexapod, we indeed have zero error at the end< / h3 >
< div class = "outline-text-3" id = "text-3-3" >
2019-12-11 17:33:16 +01:00
< p >
We now keep the wanted pose but we impose a displacement of the nano hexapod corresponding to the measured position error.
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > initializeReferences(...
< span class = "org-string" > 'Ts'< / span > , 1e< span class = "org-type" > -< / span > 3, ...< span class = "org-comment" > % Sampling Frequency [s]< / span >
< span class = "org-string" > 'Dy_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "triangular" / "sinusoidal"< / span >
< span class = "org-string" > 'Dy_amplitude'< / span > , 0, ...< span class = "org-comment" > % Amplitude of the displacement [m]< / span >
< span class = "org-string" > 'Ry_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "triangular" / "sinusoidal"< / span >
< span class = "org-string" > 'Ry_amplitude'< / span > , 0, ...< span class = "org-comment" > % Amplitude [rad]< / span >
< span class = "org-string" > 'Rz_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % Either "constant" / "rotating"< / span >
< span class = "org-string" > 'Rz_amplitude'< / span > , 0< span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > 180, ...< span class = "org-comment" > % Initial angle [rad]< / span >
< span class = "org-string" > 'Dh_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
< span class = "org-string" > 'Dh_pos'< / span > , [0; 0; 0; 0; 0; 0], ...< span class = "org-comment" > % Initial position [m,m,m,rad,rad,rad] of the top platform< / span >
< span class = "org-string" > 'Rm_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
< span class = "org-string" > 'Rm_pos'< / span > , [0, < span class = "org-constant" > pi< / span > ]< span class = "org-type" > '< / span > , ...< span class = "org-comment" > % Initial position of the two masses< / span >
< span class = "org-string" > 'Dn_type'< / span > , < span class = "org-string" > 'constant'< / span > , ...< span class = "org-comment" > % For now, only constant is implemented< / span >
2020-02-25 18:10:20 +01:00
< span class = "org-string" > 'Dn_pos'< / span > , [Edx; Edy; Edz; Erx; Ery; Erz] ...< span class = "org-comment" > % Initial position [m,m,m,rad,rad,rad] of the top platform< / span >
2020-01-22 09:36:43 +01:00
);
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
And we run the simulation.
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > < span class = "org-matlab-simulink-keyword" > sim< / span > (< span class = "org-string" > 'nass_model'< / span > );
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
We keep the old computed computed reference pose \({}^W\bm{T}_r\) even though we have change the nano hexapod reference, but this is not a real wanted reference but rather a adaptation to reject the positioning errors.
< / p >
< p >
As the displacement is perfect, we also measure in simulation the pose of the sample with respect to the granite.
From that we can compute the homogeneous transformation matrix \({}^W\bm{T}_M\).
< / p >
< div class = "org-src-container" >
2020-02-25 18:10:20 +01:00
< pre class = "src src-matlab" > n = length(simout.y.R.Time);
2020-01-22 09:36:43 +01:00
WTm = zeros(4, 4, n);
2020-02-25 18:10:20 +01:00
WTm(1< span class = "org-type" > :< / span > 3, 1< span class = "org-type" > :< / span > 3, < span class = "org-type" > :< / span > ) = simout.y.R.Data;
WTm(1< span class = "org-type" > :< / span > 3, 4, < span class = "org-type" > :< / span > ) = [simout.y.x.Data< span class = "org-type" > '< / span > ; simout.y.y.Data< span class = "org-type" > '< / span > ; simout.y.z.Data< span class = "org-type" > '< / span > ];
2020-01-22 09:36:43 +01:00
WTm(4, 4, < span class = "org-type" > :< / span > ) = 1;
2019-12-11 17:33:16 +01:00
< / pre >
< / div >
< p >
Finally, we compute \({}^M\bm{T}_R\).
< / p >
< div class = "org-src-container" >
2020-01-22 09:36:43 +01:00
< pre class = "src src-matlab" > MTr = zeros(4, 4, n);
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-constant" > i< / span > < / span > = < span class = "org-constant" > 1:n< / span >
MTr(< span class = "org-type" > :< / span > , < span class = "org-type" > :< / span > , < span class = "org-constant" > i< / span > ) = [WTm(1< span class = "org-type" > :< / span > 3,1< span class = "org-type" > :< / span > 3,< span class = "org-constant" > i< / span > )< span class = "org-type" > '< / span > , < span class = "org-type" > -< / span > WTm(1< span class = "org-type" > :< / span > 3,1< span class = "org-type" > :< / span > 3,< span class = "org-constant" > i< / span > )< span class = "org-type" > '*< / span > WTm(1< span class = "org-type" > :< / span > 3,4,< span class = "org-constant" > i< / span > ) ; 0 0 0 1]< span class = "org-type" > *< / span > WTr(< span class = "org-type" > :< / span > ,< span class = "org-type" > :< / span > ,< span class = "org-constant" > i< / span > );
2019-12-11 17:33:16 +01:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
Verify that the pose error is small.
< / p >
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< colgroup >
< col class = "org-left" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< thead >
< tr >
< th scope = "col" class = "org-left" >   < / th >
< th scope = "col" class = "org-right" > Edx [m]< / th >
< th scope = "col" class = "org-right" > Edy [m]< / th >
< th scope = "col" class = "org-right" > Edz [m]< / th >
< th scope = "col" class = "org-right" > Erx [rad]< / th >
< th scope = "col" class = "org-right" > Ery [rad]< / th >
< th scope = "col" class = "org-right" > Erz [rad]< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "org-left" > Error< / td >
2020-02-25 18:10:20 +01:00
< td class = "org-right" > 2.4e-16< / td >
< td class = "org-right" > -9.9e-17< / td >
< td class = "org-right" > 4.4e-16< / td >
< td class = "org-right" > 2.0e-09< / td >
< td class = "org-right" > -8.9e-15< / td >
< td class = "org-right" > 2.0e-13< / td >
2019-12-11 17:33:16 +01:00
< / tr >
< / tbody >
< / table >
< / div >
< / div >
2020-02-25 18:10:20 +01:00
< div id = "outline-container-org00066db" class = "outline-3" >
< h3 id = "org00066db" > < span class = "section-number-3" > 3.4< / span > Conclusion< / h3 >
< div class = "outline-text-3" id = "text-3-4" >
2019-12-11 17:33:16 +01:00
< div class = "important" >
< p >
Indeed, we are able to convert the position error in the frame of the NASS and then compensate these errors with the NASS.
< / p >
< / div >
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2020-02-25 18:10:20 +01:00
< p class = "date" > Created: 2020-02-25 mar. 18:08< / p >
2019-12-11 17:33:16 +01:00
< / div >
< / body >
< / html >