382 lines
14 KiB
HTML
382 lines
14 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
<head>
|
|
<!-- 2021-02-20 sam. 23:07 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<title>Compensating the gravity forces to start at steady state</title>
|
|
<meta name="generator" content="Org mode" />
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<link rel="stylesheet" type="text/css" href="https://research.tdehaeze.xyz/css/style.css"/>
|
|
<script type="text/javascript" src="https://research.tdehaeze.xyz/js/script.js"></script>
|
|
</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">Compensating the gravity forces to start at steady state</h1>
|
|
<div id="table-of-contents">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents">
|
|
<ul>
|
|
<li><a href="#orgb5e305a">1. Initialization of the Experimental Conditions</a></li>
|
|
<li><a href="#org96a269f">2. Without compensation</a></li>
|
|
<li><a href="#orged240b5">3. Simulation to compute the required force in each joint</a></li>
|
|
<li><a href="#org25738bf">4. New simulation with compensation of gravity forces</a></li>
|
|
<li><a href="#orgb003af1">5. Conclusion</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<p>
|
|
In this file is shown a technique used to compensate the gravity forces at t=0.
|
|
</p>
|
|
|
|
<p>
|
|
The problem is that in presence of gravity, the system does not start at steady state and experience a transient phase (section <a href="#orgf3b9673">2</a>).
|
|
</p>
|
|
|
|
<p>
|
|
In order to start the simulation at steady state in presence of gravity:
|
|
</p>
|
|
<ul class="org-ul">
|
|
<li>section <a href="#orgaf044de">3</a>: first the stages are initialize in such a way that they are rigid, and the forces/torques applied at the location of their joints is measured</li>
|
|
<li>section <a href="#orga475c79">4</a>: Then, the equilibrium position of each joint is modified in such a way that at t=0, the forces in each joints exactly compensate the forces due to gravity forces</li>
|
|
</ul>
|
|
|
|
<div id="outline-container-orgb5e305a" class="outline-2">
|
|
<h2 id="orgb5e305a"><span class="section-number-2">1</span> Initialization of the Experimental Conditions</h2>
|
|
<div class="outline-text-2" id="text-1">
|
|
<p>
|
|
We don’t inject any perturbations and no reference tracking.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">initializeReferences();
|
|
initializeDisturbances(<span class="org-string">'enable'</span>, <span class="org-constant">false</span>);
|
|
initializeController();
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
We include the gravity and log all the signals to display.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">initializeSimscapeConfiguration(<span class="org-string">'gravity'</span>, <span class="org-constant">true</span>);
|
|
initializeLoggingConfiguration(<span class="org-string">'log'</span>, <span class="org-string">'all'</span>);
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org96a269f" class="outline-2">
|
|
<h2 id="org96a269f"><span class="section-number-2">2</span> Without compensation</h2>
|
|
<div class="outline-text-2" id="text-2">
|
|
<p>
|
|
<a id="orgf3b9673"></a>
|
|
Let’s simulate the system without any compensation of gravity forces.
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">initializeGround();
|
|
initializeGranite();
|
|
initializeTy();
|
|
initializeRy();
|
|
initializeRz();
|
|
initializeMicroHexapod();
|
|
initializeAxisc();
|
|
initializeMirror();
|
|
initializeNanoHexapod();
|
|
initializeSample();
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<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>);
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab"><span class="org-matlab-simulink-keyword">sim</span>(<span class="org-string">'nass_model'</span>);
|
|
sim_no_compensation = simout;
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
And we can observe on Figure <a href="#org3568468">1</a> that there are some motion in the system.
|
|
</p>
|
|
|
|
<div id="org3568468" class="figure">
|
|
<p><img src="figs/transient_phase_gravity_no_compensation.png" alt="transient_phase_gravity_no_compensation.png" />
|
|
</p>
|
|
<p><span class="figure-number">Figure 1: </span>Motion of the sample at the start of the simulation in presence of gravity (<a href="./figs/transient_phase_gravity_no_compensation.png">png</a>, <a href="./figs/transient_phase_gravity_no_compensation.pdf">pdf</a>)</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orged240b5" class="outline-2">
|
|
<h2 id="orged240b5"><span class="section-number-2">3</span> Simulation to compute the required force in each joint</h2>
|
|
<div class="outline-text-2" id="text-3">
|
|
<p>
|
|
<a id="orgaf044de"></a>
|
|
We here wish to simulate the system in order to compute the required force in each joint to compensate the gravity forces.
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">initializeGround();
|
|
initializeGranite(<span class="org-string">'type'</span>, <span class="org-string">'init'</span>);
|
|
initializeTy(<span class="org-string">'type'</span>, <span class="org-string">'init'</span>);
|
|
initializeRy(<span class="org-string">'type'</span>, <span class="org-string">'init'</span>);
|
|
initializeRz(<span class="org-string">'type'</span>, <span class="org-string">'init'</span>);
|
|
initializeMicroHexapod(<span class="org-string">'type'</span>, <span class="org-string">'init'</span>);
|
|
initializeAxisc();
|
|
initializeMirror();
|
|
initializeNanoHexapod(<span class="org-string">'type'</span>, <span class="org-string">'init'</span>);
|
|
initializeSample(<span class="org-string">'type'</span>, <span class="org-string">'init'</span>);
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
We simulate for a short time period (all the bodies are solid, so nothing should move).
|
|
</p>
|
|
<div class="org-src-container">
|
|
<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.1'</span>);
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab"><span class="org-matlab-simulink-keyword">sim</span>(<span class="org-string">'nass_model'</span>);
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Verification that nothing is moving by looking at the maximum displacement of the sample:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">max(max(simout.Em.En.Data))
|
|
</pre>
|
|
</div>
|
|
|
|
<pre class="example">
|
|
1.0681e-15
|
|
</pre>
|
|
|
|
|
|
<p>
|
|
We here show the measured total force/torque applied at the location of each joint.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">data2orgtable([Fgm 0 0 0; Ftym; Fym; Fsm], {<span class="org-string">'Granite'</span>, <span class="org-string">'Translation Stage'</span>, <span class="org-string">'Tilt Stage'</span>, <span class="org-string">'Sample'</span>}, {<span class="org-string">'Fx'</span>, <span class="org-string">'Fy'</span>, <span class="org-string">'Fz'</span>, <span class="org-string">'Mx'</span>, <span class="org-string">'My'</span>, <span class="org-string">'Mz'</span>}, <span class="org-string">' %.1e '</span>);
|
|
</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">Fx</th>
|
|
<th scope="col" class="org-right">Fy</th>
|
|
<th scope="col" class="org-right">Fz</th>
|
|
<th scope="col" class="org-right">Mx</th>
|
|
<th scope="col" class="org-right">My</th>
|
|
<th scope="col" class="org-right">Mz</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">Granite</td>
|
|
<td class="org-right">-7.6e-12</td>
|
|
<td class="org-right">1.2e-11</td>
|
|
<td class="org-right">-34000.0</td>
|
|
<td class="org-right">0.0</td>
|
|
<td class="org-right">0.0</td>
|
|
<td class="org-right">0.0</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">Translation Stage</td>
|
|
<td class="org-right">-7.6e-12</td>
|
|
<td class="org-right">1.2e-11</td>
|
|
<td class="org-right">-12000.0</td>
|
|
<td class="org-right">31.0</td>
|
|
<td class="org-right">2.5</td>
|
|
<td class="org-right">6.6e-13</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">Tilt Stage</td>
|
|
<td class="org-right">-7.6e-12</td>
|
|
<td class="org-right">1.2e-11</td>
|
|
<td class="org-right">-8800.0</td>
|
|
<td class="org-right">33.0</td>
|
|
<td class="org-right">-0.52</td>
|
|
<td class="org-right">6.6e-13</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">Sample</td>
|
|
<td class="org-right">-5.7e-12</td>
|
|
<td class="org-right">1.3e-11</td>
|
|
<td class="org-right">-490.0</td>
|
|
<td class="org-right">-2.5e-12</td>
|
|
<td class="org-right">-8.1e-13</td>
|
|
<td class="org-right">2.7e-13</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">data2orgtable([Fhm; Fnm], {<span class="org-string">'Micro-Hexapod'</span>, <span class="org-string">'Nano-Hexapod'</span>}, {<span class="org-string">'F1'</span>, <span class="org-string">'F2'</span>, <span class="org-string">'F3'</span>, <span class="org-string">'F4'</span>, <span class="org-string">'F5'</span>, <span class="org-string">'F6'</span>}, <span class="org-string">' %.1e '</span>);
|
|
</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">F1</th>
|
|
<th scope="col" class="org-right">F2</th>
|
|
<th scope="col" class="org-right">F3</th>
|
|
<th scope="col" class="org-right">F4</th>
|
|
<th scope="col" class="org-right">F5</th>
|
|
<th scope="col" class="org-right">F6</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">Micro-Hexapod</td>
|
|
<td class="org-right">-180.0</td>
|
|
<td class="org-right">-180.0</td>
|
|
<td class="org-right">-180.0</td>
|
|
<td class="org-right">-180.0</td>
|
|
<td class="org-right">-180.0</td>
|
|
<td class="org-right">-180.0</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">Nano-Hexapod</td>
|
|
<td class="org-right">-160.0</td>
|
|
<td class="org-right">-160.0</td>
|
|
<td class="org-right">-160.0</td>
|
|
<td class="org-right">-160.0</td>
|
|
<td class="org-right">-160.0</td>
|
|
<td class="org-right">-160.0</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p>
|
|
We save these forces in <code>Foffset.mat</code>.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">save(<span class="org-string">'mat/Foffset.mat'</span>, <span class="org-string">'Fgm'</span>, <span class="org-string">'Ftym'</span>, <span class="org-string">'Fym'</span>, <span class="org-string">'Fzm'</span>, <span class="org-string">'Fhm'</span>, <span class="org-string">'Fnm'</span>, <span class="org-string">'Fsm'</span>);
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org25738bf" class="outline-2">
|
|
<h2 id="org25738bf"><span class="section-number-2">4</span> New simulation with compensation of gravity forces</h2>
|
|
<div class="outline-text-2" id="text-4">
|
|
<p>
|
|
<a id="orga475c79"></a>
|
|
We now initialize the stages with the option <code>Foffset</code>.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab">initializeGround();
|
|
initializeGranite(<span class="org-string">'Foffset'</span>, <span class="org-constant">true</span>);
|
|
initializeTy(<span class="org-string">'Foffset'</span>, <span class="org-constant">true</span>);
|
|
initializeRy(<span class="org-string">'Foffset'</span>, <span class="org-constant">true</span>);
|
|
initializeRz(<span class="org-string">'Foffset'</span>, <span class="org-constant">true</span>);
|
|
initializeMicroHexapod(<span class="org-string">'Foffset'</span>, <span class="org-constant">true</span>);
|
|
initializeAxisc();
|
|
initializeMirror();
|
|
initializeNanoHexapod(<span class="org-string">'Foffset'</span>, <span class="org-constant">true</span>);
|
|
initializeSample(<span class="org-string">'Foffset'</span>, <span class="org-constant">true</span>);
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
And we simulate the system for 0.5 seconds.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<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>);
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-matlab"><span class="org-matlab-simulink-keyword">sim</span>(<span class="org-string">'nass_model'</span>);
|
|
sim_compensation = simout;
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Verification that nothing is moving
|
|
</p>
|
|
|
|
<div id="org2b3d436" class="figure">
|
|
<p><img src="figs/transient_phase_gravity_compensation.png" alt="transient_phase_gravity_compensation.png" />
|
|
</p>
|
|
<p><span class="figure-number">Figure 2: </span>Motion of the sample at the start of the simulation in presence of gravity when compensating the gravity forces (<a href="./figs/transient_phase_gravity_compensation.png">png</a>, <a href="./figs/transient_phase_gravity_compensation.pdf">pdf</a>)</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="outline-container-orgb003af1" class="outline-2">
|
|
<h2 id="orgb003af1"><span class="section-number-2">5</span> Conclusion</h2>
|
|
<div class="outline-text-2" id="text-5">
|
|
<div class="important" id="org3329ee9">
|
|
<p>
|
|
This initialization technique permits to compute the required forces/torques to be applied in each joint in order to compensate for gravity forces.
|
|
This initialization should be redone for each configuration (change of sample mass, change of tilt angle), but not when changing the stiffness of joints, for instant when changing from lorentz based nano-hexapod or piezo based.
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="author">Author: Dehaeze Thomas</p>
|
|
<p class="date">Created: 2021-02-20 sam. 23:07</p>
|
|
</div>
|
|
</body>
|
|
</html>
|