2019-12-06 12:03:16 +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 >
2019-12-17 18:03:21 +01:00
<!-- 2019 - 12 - 17 mar. 18:01 -->
2019-12-06 12:03: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 > Tomography Experiment< / 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 >
2019-12-13 19:07:54 +01:00
< 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 >
2019-12-06 12:03:16 +01:00
< script type = "text/javascript" >
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2019 Free Software Foundation, Inc.
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 >
< / 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" > Tomography Experiment< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
2019-12-17 18:03:21 +01:00
< li > < a href = "#org9876dd1" > 1. Simscape Model< / a > < / li >
< li > < a href = "#orge5e5b16" > 2. Tomography Experiment with no disturbances< / a >
< ul >
< li > < a href = "#org5e4ce3d" > 2.1. Simulation Setup< / a > < / li >
< li > < a href = "#org8ae8a5d" > 2.2. Analysis< / a > < / li >
< li > < a href = "#orgc99de70" > 2.3. Conclusion< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org236226d" > 3. Tomography Experiment with included perturbations< / a >
< ul >
< li > < a href = "#org8aa359d" > 3.1. Simulation Setup< / a > < / li >
< li > < a href = "#orgd63048b" > 3.2. Analysis< / a > < / li >
< li > < a href = "#org5328197" > 3.3. Conclusion< / a > < / li >
< / ul >
< / li >
< li > < a href = "#orgbcf3187" > 4. Tomography when the micro-hexapod is not centered< / a >
< ul >
< li > < a href = "#orgb8fc603" > 4.1. Simulation Setup< / a > < / li >
< li > < a href = "#org22f9788" > 4.2. Analysis< / a > < / li >
< li > < a href = "#orga8287ac" > 4.3. Conclusion< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org9e0e5be" > 5. Raster Scans with the translation stage< / a >
< ul >
< li > < a href = "#org0b48fba" > 5.1. Simulation Setup< / a > < / li >
< li > < a href = "#orge9df7a3" > 5.2. Analysis< / a > < / li >
< li > < a href = "#orgbdb4d14" > 5.3. Conclusion< / a > < / li >
< / ul >
< / li >
2019-12-06 12:03:16 +01:00
< / ul >
< / div >
< / div >
2019-12-17 18:03:21 +01:00
< p >
The goal here is to simulate some scientific experiments with the tuned Simscape model when no control is applied to the nano-hexapod.
< / p >
< p >
This has several goals:
< / p >
< ul class = "org-ul" >
< li > Validate the model< / li >
< li > Estimate the expected error motion for the experiments< / li >
< li > Estimate the stroke that we may need for the nano-hexapod< / li >
< / ul >
< p >
The document in organized as follow:
< / p >
< ul class = "org-ul" >
< li > In section < a href = "#orga91d1df" > 1< / a > the Simscape model is initialized< / li >
< li > In section < a href = "#org1018b85" > 2< / a > a tomography experiment is performed where the sample is aligned with the rotation axis. No disturbance is included< / li >
< li > In section < a href = "#org8c019e4" > 3< / a > , the same is done but with disturbance included< / li >
< li > In section < a href = "#org395e7ec" > 4< / a > the micro-hexapod translate the sample such that its center of mass is no longer aligned with the rotation axis. No disturbance is included< / li >
< li > In section < a href = "#orga1dc368" > 5< / a > , scans with the translation stage are simulated with no perturbation included< / li >
< / ul >
< div id = "outline-container-org9876dd1" class = "outline-2" >
< h2 id = "org9876dd1" > < span class = "section-number-2" > 1< / span > Simscape Model< / h2 >
2019-12-06 12:03:16 +01:00
< div class = "outline-text-2" id = "text-1" >
2019-12-17 18:03:21 +01:00
< p >
< a id = "orga91d1df" > < / a >
< / p >
2019-12-06 12:03:16 +01:00
< p >
2019-12-13 19:07:54 +01:00
The simulink file to do tomography experiments is < code > sim_nano_station_tomo.slx< / code > .
2019-12-06 12:03:16 +01:00
< / p >
< div class = "org-src-container" >
2019-12-13 19:07:54 +01:00
< pre class = "src src-matlab" > open< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/matlab/sim_nano_station_tomo.slx'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
< p >
2019-12-17 18:03:21 +01:00
We load the shared simulink configuration and we set the < code > StopTime< / code > .
2019-12-06 12:03:16 +01:00
< / p >
< div class = "org-src-container" >
2019-12-13 19:07:54 +01:00
< pre class = "src src-matlab" > load< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'mat/conf_simscape.mat'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-17 18:03:21 +01:00
< span class = "org-matlab-simulink-keyword" > set_param< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-variable-name" > conf_simscape< / span > , < span class = "org-string" > 'StopTime'< / span > , '< span class = "org-highlight-numbers-number" > 5< / span > < span class = "org-type" > '< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
< p >
2019-12-13 19:07:54 +01:00
We first initialize all the stages.
2019-12-06 12:03:16 +01:00
< / p >
< div class = "org-src-container" >
2019-12-13 19:07:54 +01:00
< pre class = "src src-matlab" > initializeGround< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeGranite< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeTy< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeRy< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeRz< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeMicroHexapod< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeAxisc< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeMirror< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeNanoHexapod< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'actuator'< / span > , < span class = "org-string" > 'piezo'< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
initializeSample< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'mass'< / span > , < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
< p >
2019-12-13 19:07:54 +01:00
We initialize the reference path for all the stages.
All stage is set to its zero position except the Spindle which is rotating at 60rpm.
2019-12-06 12:03:16 +01:00
< / p >
< div class = "org-src-container" >
2019-12-13 19:07:54 +01:00
< pre class = "src src-matlab" > initializeReferences< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'Rz_type'< / span > , < span class = "org-string" > 'rotating'< / span > , < span class = "org-string" > 'Rz_period'< / span > , < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
< / div >
< / div >
2019-12-17 18:03:21 +01:00
< div id = "outline-container-orge5e5b16" class = "outline-2" >
< h2 id = "orge5e5b16" > < span class = "section-number-2" > 2< / span > Tomography Experiment with no disturbances< / h2 >
2019-12-13 19:07:54 +01:00
< div class = "outline-text-2" id = "text-2" >
2019-12-06 12:03:16 +01:00
< p >
2019-12-17 18:03:21 +01:00
< a id = "org1018b85" > < / a >
< / p >
< / div >
< div id = "outline-container-org5e4ce3d" class = "outline-3" >
< h3 id = "org5e4ce3d" > < span class = "section-number-3" > 2.1< / span > Simulation Setup< / h3 >
< div class = "outline-text-3" id = "text-2-1" >
< p >
And we initialize the disturbances to be equal to zero.
2019-12-06 12:03:16 +01:00
< / p >
< div class = "org-src-container" >
2019-12-13 19:07:54 +01:00
< pre class = "src src-matlab" > opts = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > ...
< span class = "org-string" > 'Dwx'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - X direction< / span >
< span class = "org-string" > 'Dwy'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - Y direction< / span >
< span class = "org-string" > 'Dwz'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - Z direction< / span >
< span class = "org-string" > 'Fty_x'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Translation Stage - X direction< / span >
< span class = "org-string" > 'Fty_z'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Translation Stage - Z direction< / span >
< span class = "org-string" > 'Frz_z'< / span > , < span class = "org-constant" > false< / span > ...< span class = "org-comment" > % Spindle - Z direction< / span >
< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
initDisturbances< span class = "org-rainbow-delimiters-depth-1" > (< / span > opts< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
2019-12-17 18:03:21 +01:00
< p >
We simulate the model.
< / p >
2019-12-06 12:03:16 +01:00
< div class = "org-src-container" >
2019-12-17 18:03:21 +01:00
< pre class = "src src-matlab" > < span class = "org-matlab-simulink-keyword" > sim< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'sim_nano_station_tomo'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
2019-12-17 18:03:21 +01:00
< p >
And we save the obtained data.
< / p >
2019-12-06 12:03:16 +01:00
< div class = "org-src-container" >
2019-12-17 18:03:21 +01:00
< pre class = "src src-matlab" > tomo_align_no_dist = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 't'< / span > , t, < span class = "org-string" > 'MTr'< / span > , MTr< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
save< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'tomo_align_no_dist'< / span > , < span class = "org-string" > '-append'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org8ae8a5d" class = "outline-3" >
< h3 id = "org8ae8a5d" > < span class = "section-number-3" > 2.2< / span > Analysis< / h3 >
< div class = "outline-text-3" id = "text-2-2" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > load< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'tomo_align_no_dist'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
t = tomo_align_no_dist.t;
MTr = tomo_align_no_dist.MTr;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
< div class = "org-src-container" >
2019-12-17 18:03:21 +01:00
< pre class = "src src-matlab" > Edx = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edy = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edz = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< span class = "org-comment" > % The angles obtained are u-v-w Euler angles (rotations in the moving frame)< / span >
Ery = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > +< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erx = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erz = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
2019-12-17 18:03:21 +01:00
< div id = "orgda4d10e" class = "figure" >
2019-12-13 19:07:54 +01:00
< p > < img src = "figs/exp_tomo_without_dist_trans.png" alt = "exp_tomo_without_dist_trans.png" / >
2019-12-06 12:03:16 +01:00
< / p >
2019-12-13 19:07:54 +01:00
< p > < span class = "figure-number" > Figure 1: < / span > X-Y-Z translation of the sample w.r.t. granite when performing tomography experiment with no disturbances (< a href = "./figs/exp_tomo_without_dist_trans.png" > png< / a > , < a href = "./figs/exp_tomo_without_dist_trans.pdf" > pdf< / a > )< / p >
2019-12-06 12:03:16 +01:00
< / div >
2019-12-17 18:03:21 +01:00
< div id = "orgf194db1" class = "figure" >
< p > < img src = "figs/exp_tomo_without_dist_rot.png" alt = "exp_tomo_without_dist_rot.png" / >
< / p >
< p > < span class = "figure-number" > Figure 2: < / span > X-Y-Z rotations of the sample w.r.t. granite when performing tomography experiment with no disturbances (< a href = "./figs/exp_tomo_without_dist_rot.png" > png< / a > , < a href = "./figs/exp_tomo_without_dist_rot.pdf" > pdf< / a > )< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgc99de70" class = "outline-3" >
< h3 id = "orgc99de70" > < span class = "section-number-3" > 2.3< / span > Conclusion< / h3 >
< div class = "outline-text-3" id = "text-2-3" >
< div class = "important" >
2019-12-06 12:03:16 +01:00
< p >
2019-12-17 18:03:21 +01:00
When everything is aligned, the resulting error motion is very small (nm range) and is quite negligible with respect to the error when disturbances are included.
This residual error motion probably comes from a small misalignment somewhere.
2019-12-06 12:03:16 +01:00
< / p >
2019-12-17 18:03:21 +01:00
< / div >
< / div >
2019-12-06 12:03:16 +01:00
< / div >
< / div >
2019-12-17 18:03:21 +01:00
< div id = "outline-container-org236226d" class = "outline-2" >
< h2 id = "org236226d" > < span class = "section-number-2" > 3< / span > Tomography Experiment with included perturbations< / h2 >
2019-12-13 19:07:54 +01:00
< div class = "outline-text-2" id = "text-3" >
2019-12-17 18:03:21 +01:00
< p >
< a id = "org8c019e4" > < / a >
< / p >
< / div >
< div id = "outline-container-org8aa359d" class = "outline-3" >
< h3 id = "org8aa359d" > < span class = "section-number-3" > 3.1< / span > Simulation Setup< / h3 >
< div class = "outline-text-3" id = "text-3-1" >
< p >
We now activate the disturbances.
< / p >
2019-12-06 12:03:16 +01:00
< div class = "org-src-container" >
2019-12-13 19:07:54 +01:00
< pre class = "src src-matlab" > opts = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > ...
< span class = "org-string" > 'Dwx'< / span > , < span class = "org-constant" > true< / span > , ...< span class = "org-comment" > % Ground Motion - X direction< / span >
< span class = "org-string" > 'Dwy'< / span > , < span class = "org-constant" > true< / span > , ...< span class = "org-comment" > % Ground Motion - Y direction< / span >
< span class = "org-string" > 'Dwz'< / span > , < span class = "org-constant" > true< / span > , ...< span class = "org-comment" > % Ground Motion - Z direction< / span >
< span class = "org-string" > 'Fty_x'< / span > , < span class = "org-constant" > true< / span > , ...< span class = "org-comment" > % Translation Stage - X direction< / span >
< span class = "org-string" > 'Fty_z'< / span > , < span class = "org-constant" > true< / span > , ...< span class = "org-comment" > % Translation Stage - Z direction< / span >
< span class = "org-string" > 'Frz_z'< / span > , < span class = "org-constant" > true< / span > ...< span class = "org-comment" > % Spindle - Z direction< / span >
< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
initDisturbances< span class = "org-rainbow-delimiters-depth-1" > (< / span > opts< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
2019-12-17 18:03:21 +01:00
< p >
We simulate the model.
< / p >
2019-12-06 12:03:16 +01:00
< div class = "org-src-container" >
2019-12-17 18:03:21 +01:00
< pre class = "src src-matlab" > < span class = "org-matlab-simulink-keyword" > sim< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'sim_nano_station_tomo'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
2019-12-17 18:03:21 +01:00
< p >
And we save the obtained data.
< / p >
2019-12-06 12:03:16 +01:00
< div class = "org-src-container" >
2019-12-17 18:03:21 +01:00
< pre class = "src src-matlab" > tomo_align_dist = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 't'< / span > , t, < span class = "org-string" > 'MTr'< / span > , MTr< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
save< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'tomo_align_dist'< / span > , < span class = "org-string" > '-append'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
2019-12-06 12:03:16 +01:00
< / pre >
< / div >
2019-12-17 18:03:21 +01:00
< / div >
< / div >
2019-12-06 12:03:16 +01:00
2019-12-17 18:03:21 +01:00
< div id = "outline-container-orgd63048b" class = "outline-3" >
< h3 id = "orgd63048b" > < span class = "section-number-3" > 3.2< / span > Analysis< / h3 >
< div class = "outline-text-3" id = "text-3-2" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > load< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'tomo_align_dist'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
t = tomo_align_dist.t;
MTr = tomo_align_dist.MTr;
< / pre >
< / div >
2019-12-06 12:03:16 +01:00
2019-12-17 18:03:21 +01:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > Edx = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edy = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edz = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< span class = "org-comment" > % The angles obtained are u-v-w Euler angles (rotations in the moving frame)< / span >
Ery = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > +< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erx = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erz = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< div id = "orge9cec44" class = "figure" >
2019-12-13 19:07:54 +01:00
< p > < img src = "figs/exp_tomo_dist_trans.png" alt = "exp_tomo_dist_trans.png" / >
< / p >
2019-12-17 18:03:21 +01:00
< p > < span class = "figure-number" > Figure 3: < / span > X-Y-Z translation of the sample w.r.t. the granite when performing tomography experiment with disturbances (< a href = "./figs/exp_tomo_dist_trans.png" > png< / a > , < a href = "./figs/exp_tomo_dist_trans.pdf" > pdf< / a > )< / p >
< / div >
< div id = "org98cbd3c" class = "figure" >
< p > < img src = "figs/exp_tomo_dist_rot.png" alt = "exp_tomo_dist_rot.png" / >
< / p >
< p > < span class = "figure-number" > Figure 4: < / span > X-Y-Z rotations of the sample w.r.t. the granite when performing tomography experiment with disturbances (< a href = "./figs/exp_tomo_dist_rot.png" > png< / a > , < a href = "./figs/exp_tomo_dist_rot.pdf" > pdf< / a > )< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org5328197" class = "outline-3" >
< h3 id = "org5328197" > < span class = "section-number-3" > 3.3< / span > Conclusion< / h3 >
< div class = "outline-text-3" id = "text-3-3" >
< div class = "important" >
< p >
Error motion is what expected from the disturbance measurements.
< / p >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orgbcf3187" class = "outline-2" >
< h2 id = "orgbcf3187" > < span class = "section-number-2" > 4< / span > Tomography when the micro-hexapod is not centered< / h2 >
< div class = "outline-text-2" id = "text-4" >
< p >
< a id = "org395e7ec" > < / a >
< / p >
< / div >
< div id = "outline-container-orgb8fc603" class = "outline-3" >
< h3 id = "orgb8fc603" > < span class = "section-number-3" > 4.1< / span > Simulation Setup< / h3 >
< div class = "outline-text-3" id = "text-4-1" >
< p >
We first set the wanted translation of the Micro Hexapod.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > P_micro_hexapod = < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-highlight-numbers-number" > 0< / span > .< span class = "org-highlight-numbers-number" > 01< / span > ; < span class = "org-highlight-numbers-number" > 0< / span > ; < span class = "org-highlight-numbers-number" > 0< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-comment" > % [m]< / span >
< / pre >
< / div >
< p >
We initialize the reference path.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > initializeReferences< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'Dh_pos'< / span > , < span class = "org-rainbow-delimiters-depth-3" > [< / span > P_micro_hexapod; < span class = "org-highlight-numbers-number" > 0< / span > ; < span class = "org-highlight-numbers-number" > 0< / span > ; < span class = "org-highlight-numbers-number" > 0< / span > < span class = "org-rainbow-delimiters-depth-3" > ]< / span > , < span class = "org-string" > 'Rz_type'< / span > , < span class = "org-string" > 'rotating'< / span > , < span class = "org-string" > 'Rz_period'< / span > , < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
We initialize the stages.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > initializeMicroHexapod< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'AP'< / span > , P_micro_hexapod< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
And we initialize the disturbances to zero.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > opts = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > ...
< span class = "org-string" > 'Dwx'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - X direction< / span >
< span class = "org-string" > 'Dwy'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - Y direction< / span >
< span class = "org-string" > 'Dwz'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - Z direction< / span >
< span class = "org-string" > 'Fty_x'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Translation Stage - X direction< / span >
< span class = "org-string" > 'Fty_z'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Translation Stage - Z direction< / span >
< span class = "org-string" > 'Frz_z'< / span > , < span class = "org-constant" > false< / span > ...< span class = "org-comment" > % Spindle - Z direction< / span >
< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
initDisturbances< span class = "org-rainbow-delimiters-depth-1" > (< / span > opts< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
We simulate the model.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-simulink-keyword" > sim< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'sim_nano_station_tomo'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
And we save the obtained data.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > tomo_not_align = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 't'< / span > , t, < span class = "org-string" > 'MTr'< / span > , MTr< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
save< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'tomo_not_align'< / span > , < span class = "org-string" > '-append'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org22f9788" class = "outline-3" >
< h3 id = "org22f9788" > < span class = "section-number-3" > 4.2< / span > Analysis< / h3 >
< div class = "outline-text-3" id = "text-4-2" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > load< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'tomo_not_align'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
t = tomo_not_align.t;
MTr = tomo_not_align.MTr;
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > Edx = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edy = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edz = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< span class = "org-comment" > % The angles obtained are u-v-w Euler angles (rotations in the moving frame)< / span >
Ery = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > +< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erx = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erz = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< div id = "org7fb9a86" class = "figure" >
< p > < img src = "figs/exp_tomo_offset_trans.png" alt = "exp_tomo_offset_trans.png" / >
< / p >
< p > < span class = "figure-number" > Figure 5: < / span > X-Y-Z translation of the sample w.r.t. granite when performing tomography experiment with no disturbances (< a href = "./figs/exp_tomo_offset_trans.png" > png< / a > , < a href = "./figs/exp_tomo_offset_trans.pdf" > pdf< / a > )< / p >
< / div >
< div id = "orgbe8a23e" class = "figure" >
< p > < img src = "figs/exp_tomo_offset_rot.png" alt = "exp_tomo_offset_rot.png" / >
< / p >
< p > < span class = "figure-number" > Figure 6: < / span > X-Y-Z rotations of the sample w.r.t. granite when performing tomography experiment with no disturbances (< a href = "./figs/exp_tomo_offset_rot.png" > png< / a > , < a href = "./figs/exp_tomo_offset_rot.pdf" > pdf< / a > )< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orga8287ac" class = "outline-3" >
< h3 id = "orga8287ac" > < span class = "section-number-3" > 4.3< / span > Conclusion< / h3 >
< div class = "outline-text-3" id = "text-4-3" >
< div class = "important" >
< p >
The main motions are translations in the X direction of the mobile platform (corresponds to the eccentricity of the micro-hexapod) and rotations along the rotating Y axis.
< / p >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org9e0e5be" class = "outline-2" >
< h2 id = "org9e0e5be" > < span class = "section-number-2" > 5< / span > Raster Scans with the translation stage< / h2 >
< div class = "outline-text-2" id = "text-5" >
< p >
< a id = "orga1dc368" > < / a >
< / p >
< / div >
< div id = "outline-container-org0b48fba" class = "outline-3" >
< h3 id = "org0b48fba" > < span class = "section-number-3" > 5.1< / span > Simulation Setup< / h3 >
< div class = "outline-text-3" id = "text-5-1" >
< p >
We set the reference path.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > initializeReferences< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'Dy_type'< / span > , < span class = "org-string" > 'triangular'< / span > , < span class = "org-string" > 'Dy_amplitude'< / span > , < span class = "org-highlight-numbers-number" > 10e< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-string" > 'Dy_period'< / span > , < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
We initialize the stages.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > initializeGround< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeGranite< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeTy< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeRy< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeRz< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeMicroHexapod< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeAxisc< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeMirror< span class = "org-rainbow-delimiters-depth-1" > ()< / span > ;
initializeNanoHexapod< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'actuator'< / span > , < span class = "org-string" > 'piezo'< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
initializeSample< span class = "org-rainbow-delimiters-depth-1" > (< / span > struct< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-string" > 'mass'< / span > , < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
And we initialize the disturbances to zero.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > opts = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > ...
< span class = "org-string" > 'Dwx'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - X direction< / span >
< span class = "org-string" > 'Dwy'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - Y direction< / span >
< span class = "org-string" > 'Dwz'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Ground Motion - Z direction< / span >
< span class = "org-string" > 'Fty_x'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Translation Stage - X direction< / span >
< span class = "org-string" > 'Fty_z'< / span > , < span class = "org-constant" > false< / span > , ...< span class = "org-comment" > % Translation Stage - Z direction< / span >
< span class = "org-string" > 'Frz_z'< / span > , < span class = "org-constant" > false< / span > ...< span class = "org-comment" > % Spindle - Z direction< / span >
< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
initDisturbances< span class = "org-rainbow-delimiters-depth-1" > (< / span > opts< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
We simulate the model.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-simulink-keyword" > sim< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'sim_nano_station_tomo'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< p >
And we save the obtained data.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > ty_scan = struct< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 't'< / span > , t, < span class = "org-string" > 'MTr'< / span > , MTr< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
save< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'ty_scan'< / span > , < span class = "org-string" > '-append'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orge9df7a3" class = "outline-3" >
< h3 id = "orge9df7a3" > < span class = "section-number-3" > 5.2< / span > Analysis< / h3 >
< div class = "outline-text-3" id = "text-5-2" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > load< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-string" > 'experiment_tomography/mat/experiment.mat'< / span > , < span class = "org-string" > 'ty_scan'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
t = ty_scan.t;
MTr = ty_scan.MTr;
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > Edx = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edy = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Edz = squeeze< span class = "org-rainbow-delimiters-depth-1" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 4< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< span class = "org-comment" > % The angles obtained are u-v-w Euler angles (rotations in the moving frame)< / span >
Ery = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > +< / span > MTr< span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > .^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erx = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-highlight-numbers-number" > 3< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
Erz = atan2< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-type" > -< / span > squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 2< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > , squeeze< span class = "org-rainbow-delimiters-depth-2" > (< / span > MTr< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-highlight-numbers-number" > 1< / span > , < span class = "org-type" > :< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ./< / span > cos< span class = "org-rainbow-delimiters-depth-2" > (< / span > Ery< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< div id = "org3533d00" class = "figure" >
< p > < img src = "figs/exp_ty_scan_trans.png" alt = "exp_ty_scan_trans.png" / >
< / p >
< p > < span class = "figure-number" > Figure 7: < / span > X-Y-Z translation of the sample w.r.t. granite when performing tomography experiment with no disturbances (< a href = "./figs/exp_ty_scan_trans.png" > png< / a > , < a href = "./figs/exp_ty_scan_trans.pdf" > pdf< / a > )< / p >
< / div >
< div id = "orgcf32c40" class = "figure" >
< p > < img src = "figs/exp_ty_scan_rot.png" alt = "exp_ty_scan_rot.png" / >
< / p >
< p > < span class = "figure-number" > Figure 8: < / span > X-Y-Z rotations of the sample w.r.t. granite when performing tomography experiment with no disturbances (< a href = "./figs/exp_ty_scan_rot.png" > png< / a > , < a href = "./figs/exp_ty_scan_rot.pdf" > pdf< / a > )< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgbdb4d14" class = "outline-3" >
< h3 id = "orgbdb4d14" > < span class = "section-number-3" > 5.3< / span > Conclusion< / h3 >
< div class = "outline-text-3" id = "text-5-3" >
< div class = "important" >
< p >
This is logic that the main error moving is translation along the Y axis and rotation along the X axis.
In order to reduce the errors, we can make a smoother reference path for the translation stage.
< / p >
< / div >
2019-12-06 12:03:16 +01:00
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2019-12-17 18:03:21 +01:00
< p class = "date" > Created: 2019-12-17 mar. 18:01< / p >
2019-12-06 12:03:16 +01:00
< p class = "validation" > < a href = "http://validator.w3.org/check?uri=referer" > Validate< / a > < / p >
< / div >
< / body >
< / html >