瀏覽代碼

Add documentation for kinematics model

iss17/08_feature_implementation_02
Wouter Horlings 5 年之前
父節點
當前提交
52d5e572bb
共有 23 個文件被更改,包括 10233 次插入0 次删除
  1. 二進制
      implementation/SCARA/01_kinematics/3D.png
  2. 二進制
      implementation/SCARA/01_kinematics/geometrics.odg
  3. 二進制
      implementation/SCARA/01_kinematics/geometrics.pdf
  4. +32
    -0
      implementation/SCARA/01_kinematics/implementation.md
  5. +2333
    -0
      implementation/SCARA/01_kinematics/kinematics.emx
  6. 二進制
      implementation/SCARA/documentation/compatibility.odg
  7. 二進制
      implementation/SCARA/documentation/compatibility.pdf
  8. 二進制
      implementation/SCARA/documentation/division.odg
  9. 二進制
      implementation/SCARA/documentation/division.pdf
  10. 二進制
      implementation/SCARA/documentation/generaldesign.odg
  11. 二進制
      implementation/SCARA/documentation/generaldesign.pdf
  12. +59
    -0
      implementation/SCARA/documentation/implementation.md
  13. +1771
    -0
      implementation/SCARA/spike/inverse_kinematics.emx
  14. +407
    -0
      implementation/SCARA/spike/motionprofiletest.emx
  15. +0
    -0
      implementation/endeffector/endeffector.3dm
  16. +0
    -0
      implementation/endeffector/endeffector.emx
  17. +1238
    -0
      implementation/endeffector/endeffector.scn
  18. 二進制
      implementation/endeffector/endeffectorIcon.png
  19. +0
    -0
      implementation/endeffector/gripper.scad
  20. +786
    -0
      implementation/endeffector/gripperbase.stl
  21. +1962
    -0
      implementation/endeffector/markerholder.stl
  22. +1628
    -0
      implementation/library/SCARA/inverse_kinematics_v1.emx
  23. +17
    -0
      implementation/library/setpoint/rectanglepath.emx

二進制
implementation/SCARA/01_kinematics/3D.png 查看文件

Before After
Width: 1250  |  Height: 860  |  Size: 35KB

二進制
implementation/SCARA/01_kinematics/geometrics.odg 查看文件


二進制
implementation/SCARA/01_kinematics/geometrics.pdf 查看文件


+ 32
- 0
implementation/SCARA/01_kinematics/implementation.md 查看文件

@@ -0,0 +1,32 @@
# Kinematics model

This is a really simple model.
It has some inverse kinematics and forwards kinematics.

## Inverse model

The setpoint on the board is given as a x,y position.
We have to convert this point in to angles of the SCARA joints.
We have the following setup:
![Geometrics of the scara](geometrics.pdf)

We can resolve this via the *law of cosines* and *pythagoras theorem*.
We can find the length of **C** with pythagoras.
Then with the use of a tangent we can find the angle **phi**.
Then filling in the *law of cosines* with **C** calculated and **A** and **B** as arm lengths, we can calculate the angles **a**, **b** and **c**.
As a check we sum these angles and they should add up to the value of Pi.

Then we add **phi** and **b** to get the corner of the first joint relative to the world frame.
And **c** - Pi + **phi** + **b** gives the angle of the second joint relative to the world frame.


## Forward model
The forward model is as follows.
```
joint1 = A_length*[cos(angle1);sin(angle1)];
joint2 = B_length*[cos(angle2);sin(angle2)];
end_effector = joint1 + joint2;
```
This is then drawn as two arms in a 3D viewer.
![3D view of forward model](3D.png)
It follows the outside of the square.

+ 2333
- 0
implementation/SCARA/01_kinematics/kinematics.emx
文件差異過大導致無法顯示
查看文件


二進制
implementation/SCARA/documentation/compatibility.odg 查看文件


二進制
implementation/SCARA/documentation/compatibility.pdf 查看文件


二進制
implementation/SCARA/documentation/division.odg 查看文件


二進制
implementation/SCARA/documentation/division.pdf 查看文件


二進制
implementation/SCARA/documentation/generaldesign.odg 查看文件


二進制
implementation/SCARA/documentation/generaldesign.pdf 查看文件


+ 59
- 0
implementation/SCARA/documentation/implementation.md 查看文件

@@ -0,0 +1,59 @@
# SCARA implementation

## Design
The Scara moves the marker in a small space along the board.
The Scara has to be quick and precise. Therefore we want to keep it as small and light as possible.
In the next image we have a general idea of the design.

![Rough design idea](generaldesign.pdf)

## Specifications
The Scara has as goal to move the end-effector in a area of 50 mm high and 70 mm wide.
On of the first tests is to be able to travers that square with in a second.
Therefore it has to achieve an average speed of 240 mm/s.
Al be it not for very long. Probably up to 500 mm/s maximum velocity.

The marker has to be lifted as well.
That will be the task of the end-effector.

## Details
The levels of detail that we will implement are at least the following steps.

### Kinematics
A first model is just a kinematics model without any physics.
If we look at the design it only implements the A and B part of the arms.
And we can just mathematically calculate the position of the arms.
This is usefull to check whether we can even reach all the corners of the square.

### Simple Physics.
Start adding some Mass to the arms and the marker.
We can learn some basic requirements for the motor that we require.
The current implementation would require some infinite power as we have some instantanious speed.
Thus we have to update our path and induce some control.

It is probably to make some pathing block where we can put some set points into.

### Adding motor physics.
Start the better motor physics.
What kind of motor do we need to power the setup.

### Complex arm structure.
Add the the C, D and E arms.
All the arms should now also have complete inertia and mass specifications.

### Add parasitics to the arm structure
This has to be reviewed at the point that we get here.

## Division
The submodels will be divided as follows.
However, during the design I will probably run in more blocks than normal.

![Division of models](division.pdf)

The submodels in the division should be compatible with each other.
To avoid that we have to update all our models all the time.
We will build every part of the model in a library for 20-sim. This way it is easy for 20-sim to find the updated models.

![Compatibility solution between different versions](compatibility.pdf)



+ 1771
- 0
implementation/SCARA/spike/inverse_kinematics.emx
文件差異過大導致無法顯示
查看文件


+ 407
- 0
implementation/SCARA/spike/motionprofiletest.emx 查看文件

@@ -0,0 +1,407 @@
<?xml version="1.0" encoding="UTF-8"?>
<Document>
<Model version="4.8" build="4.8.2.10124">
<Sidops><![CDATA[model 128 184
description '<Information>
<Description>
<Version>4.8</Version>
<IsMainModel>0</IsMainModel>
<KeepParameterValues>False</KeepParameterValues>
<LibraryPath>Z:\home\wouter\Documents\studie\ma\mahd\implementation\submodel\SCARA\spike\motionprofiletest.emx</LibraryPath>
<TimeStamp>2020-7-9 14:43:21</TimeStamp>
</Description>
</Information>';
type Mainmodel
end;
implementation bg
submodels
Submodel1 328 200
description '<Description><Version>4.0</Version>
<LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
<IsMainModel>1</IsMainModel>
<KeepParameterValues>False</KeepParameterValues>
<TimeStamp>2007-11-1 22:32:1</TimeStamp>
<AllowLibraryUpdate>False</AllowLibraryUpdate>
</Description>';
type 'Submodel-Equation'
ports
signal out output;
end;
implementation eq
/* Equation Submodel
Enter your equations here. You can use the Toolbar buttons at the top ( Add , f(x) etc. ).
*/
parameters
string dllname = 'MotionProfiles.dll';
variables
real x[3];
real t;
equations
// start typing here
t = time-0.5;
x = dll(dllname,'ProfileCycloidal',t);
output = x[1];
implementation_end;
end;
connections
end;
implementation_end;
]]>
</Sidops>
</Model>
<Experiments>
<DefaultExperiment><![CDATA[Experiment 1]]>
</DefaultExperiment>
<Experiment>
<Name>Experiment 1</Name>
<CreatedBy></CreatedBy>
<Info></Info>
<ExpData>
<VersionNumber>4.8</VersionNumber>
<ModelProperties>
</ModelProperties>
<Variables>
<Parameters>
</Parameters>
</Variables>
<PlotSpecs>
<VarNames>
<VarName>time</VarName>
<VarName>Submodel1\x[1]</VarName>
<VarName>Submodel1\x[2]</VarName>
<VarName>Submodel1\x[3]</VarName>
</VarNames>
<Plots>
<Plot>
<PlotType>GraphPlot</PlotType>
<BasePlot>
<PlotId>1</PlotId>
<UseWindowsBGColor>false</UseWindowsBGColor>
<BGColor>16777215</BGColor>
<PlotIsVisible>true</PlotIsVisible>
</BasePlot>
<Grid>
<DrawGrid>true</DrawGrid>
<GridColor>15780518</GridColor>
<GridBorderLineColor>12624260</GridBorderLineColor>
<GridZeroLineColor>0</GridZeroLineColor>
<XTicks>10</XTicks>
<YTicks>10</YTicks>
<ZTicks>10</ZTicks>
<Use3DLook>false</Use3DLook>
</Grid>
<PlotBGColor>16777215</PlotBGColor>
<ShowPlotTitle>true</ShowPlotTitle>
<TitlePosition>1</TitlePosition>
<PlotTitle>model</PlotTitle>
<ShowXValues>true</ShowXValues>
<Fonts>
<TitleFont>
<Name>Arial</Name>
<Height>12</Height>
<PitchFamily>34</PitchFamily>
<Weight>400</Weight>
<Italic>0</Italic>
<UnderLine>0</UnderLine>
<StrikeOut>0</StrikeOut>
<Color>0</Color>
</TitleFont>
<LabelFont>
<Name>Arial</Name>
<Height>12</Height>
<PitchFamily>34</PitchFamily>
<Weight>400</Weight>
<Italic>0</Italic>
<UnderLine>0</UnderLine>
<StrikeOut>0</StrikeOut>
<Color>0</Color>
</LabelFont>
<ValuesFont>
<Name>Arial</Name>
<Height>10</Height>
<PitchFamily>34</PitchFamily>
<Weight>400</Weight>
<Italic>0</Italic>
<UnderLine>0</UnderLine>
<StrikeOut>0</StrikeOut>
<Color>0</Color>
</ValuesFont>
<LegendFont>
<Name>Arial</Name>
<Height>12</Height>
<PitchFamily>34</PitchFamily>
<Weight>400</Weight>
<Italic>0</Italic>
<UnderLine>0</UnderLine>
<StrikeOut>0</StrikeOut>
<Color>0</Color>
</LegendFont>
</Fonts>
<SharedXAxis>true</SharedXAxis>
<SharedYAxis>true</SharedYAxis>
<SharedZAxis>false</SharedZAxis>
<XAxes>
<Axis>
<Minimum>0.0</Minimum>
<Maximum>10.0</Maximum>
<Linear>true</Linear>
<Scaling>3</Scaling>
<Label>time</Label>
</Axis>
</XAxes>
<YAxes>
<Axis>
<Minimum>-8.0</Minimum>
<Maximum>12.0</Maximum>
<Linear>true</Linear>
<Scaling>2</Scaling>
<Label>x[1]</Label>
</Axis>
<Axis>
<Minimum>0.0</Minimum>
<Maximum>10.0</Maximum>
<Linear>true</Linear>
<Scaling>2</Scaling>
<Label>x[2]</Label>
</Axis>
<Axis>
<Minimum>0.0</Minimum>
<Maximum>10.0</Maximum>
<Linear>true</Linear>
<Scaling>2</Scaling>
<Label>x[3]</Label>
</Axis>
</YAxes>
<ZAxes>
</ZAxes>
<Curves>
<Curve>
<LineColor>3355111</LineColor>
<LineStyle>1</LineStyle>
<TickColor>3355111</TickColor>
<TickStyle>0</TickStyle>
<CurveVisible>true</CurveVisible>
<PixelThresshold>1</PixelThresshold>
<LineThickness>2</LineThickness>
<LineOrder>1</LineOrder>
<ShowYValues>true</ShowYValues>
<XCurveData>
<ShowUnit>true</ShowUnit>
<VarName>time</VarName>
</XCurveData>
<YCurveData>
<ShowUnit>true</ShowUnit>
<VarName>Submodel1\x[1]</VarName>
</YCurveData>
</Curve>
<Curve>
<LineColor>6076255</LineColor>
<LineStyle>1</LineStyle>
<TickColor>6076255</TickColor>
<TickStyle>0</TickStyle>
<CurveVisible>true</CurveVisible>
<PixelThresshold>1</PixelThresshold>
<LineThickness>2</LineThickness>
<LineOrder>1</LineOrder>
<ShowYValues>true</ShowYValues>
<XCurveData>
<ShowUnit>true</ShowUnit>
<VarName>time</VarName>
</XCurveData>
<YCurveData>
<ShowUnit>true</ShowUnit>
<VarName>Submodel1\x[2]</VarName>
</YCurveData>
</Curve>
<Curve>
<LineColor>12553035</LineColor>
<LineStyle>1</LineStyle>
<TickColor>12553035</TickColor>
<TickStyle>0</TickStyle>
<CurveVisible>true</CurveVisible>
<PixelThresshold>1</PixelThresshold>
<LineThickness>2</LineThickness>
<LineOrder>1</LineOrder>
<ShowYValues>true</ShowYValues>
<XCurveData>
<ShowUnit>true</ShowUnit>
<VarName>time</VarName>
</XCurveData>
<YCurveData>
<ShowUnit>true</ShowUnit>
<VarName>Submodel1\x[3]</VarName>
</YCurveData>
</Curve>
</Curves>
<Legenda>
<ShowLegenda>true</ShowLegenda>
<BorderPenColor>0</BorderPenColor>
<BackgroundColor>16777215</BackgroundColor>
</Legenda>
</Plot>
</Plots>
<PlotPanels>
<PlotPanel>
<PlotPanelId>1</PlotPanelId>
<PlotPanelVisible>true</PlotPanelVisible>
<Name>Window 1</Name>
<Tiling>0</Tiling>
<PlotIds>
<PlotId>1</PlotId>
</PlotIds>
<ToggleState>Base</ToggleState>
</PlotPanel>
</PlotPanels>
<WindowRectangles virtualDesktopWidth="1920" virtualDesktopHeight="1080">
<WindowRectangle monitor="0" left="0" top="0" right="1920" bottom="1080" plotpanelid="1">
0.146354 0.222222 0.856771 1.01296
</WindowRectangle>
</WindowRectangles>
</PlotSpecs>
<RunSpecs>
<SimulatorSettings>
<StartTime>0.0</StartTime>
<FinishTime>10.0</FinishTime>
<AllowPassFinishTime>false</AllowPassFinishTime>
<Warp>false</Warp>
<FPGonio>false</FPGonio>
<UseOutputAfterEach>false</UseOutputAfterEach>
<OutputAfterEach>0.1</OutputAfterEach>
<EventEpsilon>1.0e-6</EventEpsilon>
<AlgebraicTolerance>1.0e-7</AlgebraicTolerance>
<SteadyStateAnalysis>false</SteadyStateAnalysis>
<UpdateHoldInstructions>true</UpdateHoldInstructions>
</SimulatorSettings>
<IntegrationMethods>
<IntegrationMethod>
<Name>Euler</Name>
<StepSize>0.01</StepSize>
<AutoStepSize>false</AutoStepSize>
</IntegrationMethod>
<IntegrationMethod>
<Name>BackwardEuler</Name>
<AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
<RelativeTolerance>1.0e-5</RelativeTolerance>
<AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
<AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
<StepSize>0.01</StepSize>
<Alpha>1.0</Alpha>
</IntegrationMethod>
<IntegrationMethod>
<Name>AdamsBashforth</Name>
<StepSize>0.01</StepSize>
<AutoStepSize>false</AutoStepSize>
</IntegrationMethod>
<IntegrationMethod>
<Name>RungeKutta2</Name>
<StepSize>0.01</StepSize>
<AutoStepSize>false</AutoStepSize>
</IntegrationMethod>
<IntegrationMethod>
<Name>RungeKutta4</Name>
<StepSize>0.01</StepSize>
<AutoStepSize>false</AutoStepSize>
</IntegrationMethod>
<IntegrationMethod>
<Name>RungeKutta8</Name>
<UseInitialStepSize>false</UseInitialStepSize>
<InitialStepSize>0.001</InitialStepSize>
<UseMaximumStepSize>false</UseMaximumStepSize>
<MaximumStepSize>1.0</MaximumStepSize>
<AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
<RelativeTolerance>1.0e-6</RelativeTolerance>
<SafetyFactor>0.9</SafetyFactor>
<Factor1>0.33</Factor1>
<Factor2>6.0</Factor2>
<Beta>0.0</Beta>
<UseMaxNrSteps>false</UseMaxNrSteps>
<MaxNrSteps>100000</MaxNrSteps>
<UseStiffDetection>false</UseStiffDetection>
<MaxNrStiffnessSteps>1000</MaxNrStiffnessSteps>
</IntegrationMethod>
<IntegrationMethod>
<Name>RungeKuttaFehlberg</Name>
<UseInitialStepSize>false</UseInitialStepSize>
<InitialStepSize>0.001</InitialStepSize>
<UseMaximumStepSize>false</UseMaximumStepSize>
<MaximumStepSize>1.0</MaximumStepSize>
<AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
<RelativeTolerance>1.0e-6</RelativeTolerance>
</IntegrationMethod>
<IntegrationMethod>
<Name>VodeAdams</Name>
<UseInitialStepSize>false</UseInitialStepSize>
<InitialStepSize>0.001</InitialStepSize>
<UseMaximumStepSize>false</UseMaximumStepSize>
<MaximumStepSize>1.0</MaximumStepSize>
<AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
<RelativeTolerance>1.0e-6</RelativeTolerance>
<VodeUseBDF>true</VodeUseBDF>
<VodeUseNewton>true</VodeUseNewton>
</IntegrationMethod>
<IntegrationMethod>
<Name>BDFMethod</Name>
<AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
<RelativeTolerance>1.0e-5</RelativeTolerance>
<AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
<AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
<UseInitialStepSize>false</UseInitialStepSize>
<InitialStepSize>0.001</InitialStepSize>
<UseMaximumStepSize>false</UseMaximumStepSize>
<MaximumStepSize>1.0</MaximumStepSize>
</IntegrationMethod>
<IntegrationMethod>
<Name>MeBDFiMethod</Name>
<AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
<RelativeTolerance>1.0e-5</RelativeTolerance>
<AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
<AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
<UseInitialStepSize>false</UseInitialStepSize>
<InitialStepSize>0.001</InitialStepSize>
<UseMaximumStepSize>false</UseMaximumStepSize>
<MaximumStepSize>1.0</MaximumStepSize>
</IntegrationMethod>
<SelectedIntegrationMethod>8</SelectedIntegrationMethod>
</IntegrationMethods>
</RunSpecs>
<MultipleRun>
<NrSteps>10</NrSteps>
<CopyFromStates>false</CopyFromStates>
<JoinParameterVariation>true</JoinParameterVariation>
<ClearAfterRun>true</ClearAfterRun>
<RedrawAfterRun>false</RedrawAfterRun>
<DrawDuringSimulation>true</DrawDuringSimulation>
<ActionBeforeOptimization>0</ActionBeforeOptimization>
<CompareValue>0.0</CompareValue>
<UseCompareValue>true</UseCompareValue>
<MultipleRunType>MultipleRun</MultipleRunType>
<Minimize>true</Minimize>
<OptimizationVariable></OptimizationVariable>
<ResulVarUsage>UseEndValue</ResulVarUsage>
<Tolerance>0.001</Tolerance>
<OptimizationMethod>BroydonFletcherGoldfarbShanno</OptimizationMethod>
<MultipleRunVariables>
</MultipleRunVariables>
</MultipleRun>
<ExportData>
<WriteAsText>true</WriteAsText>
<ReadAsText>true</ReadAsText>
<WriteHeader>true</WriteHeader>
<ReadHeader>true</ReadHeader>
<ReadFilename></ReadFilename>
<WriteFilename></WriteFilename>
<DoWrite>false</DoWrite>
<ExportVariables>
</ExportVariables>
<ImportVariables>
</ImportVariables>
</ExportData>
<BreakPoints>
</BreakPoints>
<AnimationPlayback>
<PlaybackSpeed>1.0</PlaybackSpeed>
</AnimationPlayback>
</ExpData>
</Experiment>
</Experiments>
</Document>

implementation/submodel/endeffector/endeffector.3dm → implementation/endeffector/endeffector.3dm 查看文件


implementation/submodel/endeffector/endeffector.emx → implementation/endeffector/endeffector.emx 查看文件


+ 1238
- 0
implementation/endeffector/endeffector.scn
文件差異過大導致無法顯示
查看文件


二進制
implementation/endeffector/endeffectorIcon.png 查看文件

Before After
Width: 128  |  Height: 128  |  Size: 6.3KB

implementation/submodel/endeffector/gripper.scad → implementation/endeffector/gripper.scad 查看文件


+ 786
- 0
implementation/endeffector/gripperbase.stl 查看文件

@@ -0,0 +1,786 @@
solid OpenSCAD_Model
facet normal 0.808756 -0 0.588145
outer loop
vertex 0.012145 -0.0149994 -0.00508404
vertex 0.0133677 0.0149994 -0.00676537
vertex 0.012145 0.0149994 -0.00508404
endloop
endfacet
facet normal 0.808756 0 0.588145
outer loop
vertex 0.0133677 0.0149994 -0.00676537
vertex 0.012145 -0.0149994 -0.00508404
vertex 0.0133677 -0.0149994 -0.00676537
endloop
endfacet
facet normal 0.978185 -0 0.207738
outer loop
vertex 0.0133677 -0.0149994 -0.00676537
vertex 0.0137997 0.0149994 -0.00879955
vertex 0.0133677 0.0149994 -0.00676537
endloop
endfacet
facet normal 0.978185 0 0.207738
outer loop
vertex 0.0137997 0.0149994 -0.00879955
vertex 0.0133677 -0.0149994 -0.00676537
vertex 0.0137997 -0.0149994 -0.00879955
endloop
endfacet
facet normal 0.808917 0 -0.587923
outer loop
vertex 0.0133677 -0.0149994 -0.0108328
vertex 0.012145 0.0149994 -0.0125151
vertex 0.0133677 0.0149994 -0.0108328
endloop
endfacet
facet normal 0.808917 0 -0.587923
outer loop
vertex 0.012145 0.0149994 -0.0125151
vertex 0.0133677 -0.0149994 -0.0108328
vertex 0.012145 -0.0149994 -0.0125151
endloop
endfacet
facet normal -0.30921 0 -0.950994
outer loop
vertex 0.00629997 -0.0149994 -0.0131292
vertex 0.00827694 0.0149994 -0.013772
vertex 0.00827694 -0.0149994 -0.013772
endloop
endfacet
facet normal -0.30921 0 -0.950994
outer loop
vertex 0.00827694 0.0149994 -0.013772
vertex 0.00629997 -0.0149994 -0.0131292
vertex 0.00629997 0.0149994 -0.0131292
endloop
endfacet
facet normal 0.499993 0 -0.866029
outer loop
vertex 0.0103445 -0.0149994 -0.0135546
vertex 0.012145 0.0149994 -0.0125151
vertex 0.012145 -0.0149994 -0.0125151
endloop
endfacet
facet normal 0.499993 0 -0.866029
outer loop
vertex 0.012145 0.0149994 -0.0125151
vertex 0.0103445 -0.0149994 -0.0135546
vertex 0.0103445 0.0149994 -0.0135546
endloop
endfacet
facet normal -0.913697 0 0.406395
outer loop
vertex 0.00390911 -0.0149994 -0.00776005
vertex 0.00475407 0.0149994 -0.00586033
vertex 0.00390911 0.0149994 -0.00776005
endloop
endfacet
facet normal -0.913697 0 0.406395
outer loop
vertex 0.00475407 0.0149994 -0.00586033
vertex 0.00390911 -0.0149994 -0.00776005
vertex 0.00475407 -0.0149994 -0.00586033
endloop
endfacet
facet normal 0.499997 0 0.866027
outer loop
vertex 0.0103445 0.0149994 -0.00404453
vertex 0.012145 -0.0149994 -0.00508404
vertex 0.012145 0.0149994 -0.00508404
endloop
endfacet
facet normal 0.499997 0 0.866027
outer loop
vertex 0.012145 -0.0149994 -0.00508404
vertex 0.0103445 0.0149994 -0.00404453
vertex 0.0103445 -0.0149994 -0.00404453
endloop
endfacet
facet normal -0.668739 0 0.743497
outer loop
vertex 0.00475407 0.0149994 -0.00586033
vertex 0.00629997 -0.0149994 -0.00446987
vertex 0.00629997 0.0149994 -0.00446987
endloop
endfacet
facet normal -0.668739 0 0.743497
outer loop
vertex 0.00629997 -0.0149994 -0.00446987
vertex 0.00475407 0.0149994 -0.00586033
vertex 0.00475407 -0.0149994 -0.00586033
endloop
endfacet
facet normal 0.104586 0 0.994516
outer loop
vertex 0.00827694 0.0149994 -0.0038271
vertex 0.0103445 -0.0149994 -0.00404453
vertex 0.0103445 0.0149994 -0.00404453
endloop
endfacet
facet normal 0.104586 0 0.994516
outer loop
vertex 0.0103445 -0.0149994 -0.00404453
vertex 0.00827694 0.0149994 -0.0038271
vertex 0.00827694 -0.0149994 -0.0038271
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00629997 -0.0149994 -0.00446987
vertex 0.0103445 -0.0149994 -0.00404453
vertex 0.00827694 -0.0149994 -0.0038271
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00629997 -0.0149994 -0.00446987
vertex 0.012145 -0.0149994 -0.00508404
vertex 0.0103445 -0.0149994 -0.00404453
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00475407 -0.0149994 -0.00586033
vertex 0.012145 -0.0149994 -0.00508404
vertex 0.00629997 -0.0149994 -0.00446987
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00475407 -0.0149994 -0.00586033
vertex 0.0133677 -0.0149994 -0.00676537
vertex 0.012145 -0.0149994 -0.00508404
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00390911 -0.0149994 -0.00776005
vertex 0.0133677 -0.0149994 -0.00676537
vertex 0.00475407 -0.0149994 -0.00586033
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00390911 -0.0149994 -0.00776005
vertex 0.0137997 -0.0149994 -0.00879955
vertex 0.0133677 -0.0149994 -0.00676537
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00390911 -0.0149994 -0.00983906
vertex 0.0137997 -0.0149994 -0.00879955
vertex 0.00390911 -0.0149994 -0.00776005
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00390911 -0.0149994 -0.00983906
vertex 0.0133677 -0.0149994 -0.0108328
vertex 0.0137997 -0.0149994 -0.00879955
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00475407 -0.0149994 -0.0117388
vertex 0.0133677 -0.0149994 -0.0108328
vertex 0.00390911 -0.0149994 -0.00983906
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00475407 -0.0149994 -0.0117388
vertex 0.012145 -0.0149994 -0.0125151
vertex 0.0133677 -0.0149994 -0.0108328
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00629997 -0.0149994 -0.0131292
vertex 0.012145 -0.0149994 -0.0125151
vertex 0.00475407 -0.0149994 -0.0117388
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.00629997 -0.0149994 -0.0131292
vertex 0.0103445 -0.0149994 -0.0135546
vertex 0.012145 -0.0149994 -0.0125151
endloop
endfacet
facet normal -0 -1 0
outer loop
vertex 0.0103445 -0.0149994 -0.0135546
vertex 0.00629997 -0.0149994 -0.0131292
vertex 0.00827694 -0.0149994 -0.013772
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 0.00390911 -0.0149994 -0.00983906
vertex 0.00390911 0.0149994 -0.00776005
vertex 0.00390911 0.0149994 -0.00983906
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex 0.00390911 0.0149994 -0.00776005
vertex 0.00390911 -0.0149994 -0.00983906
vertex 0.00390911 -0.0149994 -0.00776005
endloop
endfacet
facet normal 0.978165 0 -0.207829
outer loop
vertex 0.0137997 -0.0149994 -0.00879955
vertex 0.0133677 0.0149994 -0.0108328
vertex 0.0137997 0.0149994 -0.00879955
endloop
endfacet
facet normal 0.978165 0 -0.207829
outer loop
vertex 0.0133677 0.0149994 -0.0108328
vertex 0.0137997 -0.0149994 -0.00879955
vertex 0.0133677 -0.0149994 -0.0108328
endloop
endfacet
facet normal -0.309197 0 0.950998
outer loop
vertex 0.00629997 0.0149994 -0.00446987
vertex 0.00827694 -0.0149994 -0.0038271
vertex 0.00827694 0.0149994 -0.0038271
endloop
endfacet
facet normal -0.309197 0 0.950998
outer loop
vertex 0.00827694 -0.0149994 -0.0038271
vertex 0.00629997 0.0149994 -0.00446987
vertex 0.00629997 -0.0149994 -0.00446987
endloop
endfacet
facet normal -0.913699 0 -0.406392
outer loop
vertex 0.00475407 -0.0149994 -0.0117388
vertex 0.00390911 0.0149994 -0.00983906
vertex 0.00475407 0.0149994 -0.0117388
endloop
endfacet
facet normal -0.913699 -0 -0.406392
outer loop
vertex 0.00390911 0.0149994 -0.00983906
vertex 0.00475407 -0.0149994 -0.0117388
vertex 0.00390911 -0.0149994 -0.00983906
endloop
endfacet
facet normal 0.104572 0 -0.994517
outer loop
vertex 0.00827694 -0.0149994 -0.013772
vertex 0.0103445 0.0149994 -0.0135546
vertex 0.0103445 -0.0149994 -0.0135546
endloop
endfacet
facet normal 0.104572 0 -0.994517
outer loop
vertex 0.0103445 0.0149994 -0.0135546
vertex 0.00827694 -0.0149994 -0.013772
vertex 0.00827694 0.0149994 -0.013772
endloop
endfacet
facet normal -0.668723 0 -0.743512
outer loop
vertex 0.00475407 -0.0149994 -0.0117388
vertex 0.00629997 0.0149994 -0.0131292
vertex 0.00629997 -0.0149994 -0.0131292
endloop
endfacet
facet normal -0.668723 0 -0.743512
outer loop
vertex 0.00629997 0.0149994 -0.0131292
vertex 0.00475407 -0.0149994 -0.0117388
vertex 0.00475407 0.0149994 -0.0117388
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.0103445 0.0149994 -0.00404453
vertex 0.00629997 0.0149994 -0.00446987
vertex 0.00827694 0.0149994 -0.0038271
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.012145 0.0149994 -0.00508404
vertex 0.00629997 0.0149994 -0.00446987
vertex 0.0103445 0.0149994 -0.00404453
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.012145 0.0149994 -0.00508404
vertex 0.00475407 0.0149994 -0.00586033
vertex 0.00629997 0.0149994 -0.00446987
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.0133677 0.0149994 -0.00676537
vertex 0.00475407 0.0149994 -0.00586033
vertex 0.012145 0.0149994 -0.00508404
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.0133677 0.0149994 -0.00676537
vertex 0.00390911 0.0149994 -0.00776005
vertex 0.00475407 0.0149994 -0.00586033
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.0137997 0.0149994 -0.00879955
vertex 0.00390911 0.0149994 -0.00776005
vertex 0.0133677 0.0149994 -0.00676537
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.0137997 0.0149994 -0.00879955
vertex 0.00390911 0.0149994 -0.00983906
vertex 0.00390911 0.0149994 -0.00776005
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 0.0133677 0.0149994 -0.0108328
vertex 0.00390911 0.0149994 -0.00983906
vertex 0.0137997 0.0149994 -0.00879955
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.0133677 0.0149994 -0.0108328
vertex 0.00475407 0.0149994 -0.0117388
vertex 0.00390911 0.0149994 -0.00983906
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 0.012145 0.0149994 -0.0125151
vertex 0.00475407 0.0149994 -0.0117388
vertex 0.0133677 0.0149994 -0.0108328
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.012145 0.0149994 -0.0125151
vertex 0.00629997 0.0149994 -0.0131292
vertex 0.00475407 0.0149994 -0.0117388
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 0.0103445 0.0149994 -0.0135546
vertex 0.00629997 0.0149994 -0.0131292
vertex 0.012145 0.0149994 -0.0125151
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.00629997 0.0149994 -0.0131292
vertex 0.0103445 0.0149994 -0.0135546
vertex 0.00827694 0.0149994 -0.013772
endloop
endfacet
facet normal 0.808776 -0 0.588116
outer loop
vertex -0.00545406 -0.0149994 -0.00508404
vertex -0.00423145 0.0149994 -0.00676537
vertex -0.00545406 0.0149994 -0.00508404
endloop
endfacet
facet normal 0.808776 0 0.588116
outer loop
vertex -0.00423145 0.0149994 -0.00676537
vertex -0.00545406 -0.0149994 -0.00508404
vertex -0.00423145 -0.0149994 -0.00676537
endloop
endfacet
facet normal 0.978184 -0 0.207742
outer loop
vertex -0.00423145 -0.0149994 -0.00676537
vertex -0.00379944 0.0149994 -0.00879955
vertex -0.00423145 0.0149994 -0.00676537
endloop
endfacet
facet normal 0.978184 0 0.207742
outer loop
vertex -0.00379944 0.0149994 -0.00879955
vertex -0.00423145 -0.0149994 -0.00676537
vertex -0.00379944 -0.0149994 -0.00879955
endloop
endfacet
facet normal 0.808938 0 -0.587895
outer loop
vertex -0.00423145 -0.0149994 -0.0108328
vertex -0.00545406 0.0149994 -0.0125151
vertex -0.00423145 0.0149994 -0.0108328
endloop
endfacet
facet normal 0.808938 0 -0.587895
outer loop
vertex -0.00545406 0.0149994 -0.0125151
vertex -0.00423145 -0.0149994 -0.0108328
vertex -0.00545406 -0.0149994 -0.0125151
endloop
endfacet
facet normal -0.309216 0 -0.950992
outer loop
vertex -0.0112991 -0.0149994 -0.0131292
vertex -0.00932217 0.0149994 -0.013772
vertex -0.00932217 -0.0149994 -0.013772
endloop
endfacet
facet normal -0.309216 0 -0.950992
outer loop
vertex -0.00932217 0.0149994 -0.013772
vertex -0.0112991 -0.0149994 -0.0131292
vertex -0.0112991 0.0149994 -0.0131292
endloop
endfacet
facet normal 0.499985 0 -0.866034
outer loop
vertex -0.0072546 -0.0149994 -0.0135546
vertex -0.00545406 0.0149994 -0.0125151
vertex -0.00545406 -0.0149994 -0.0125151
endloop
endfacet
facet normal 0.499985 0 -0.866034
outer loop
vertex -0.00545406 0.0149994 -0.0125151
vertex -0.0072546 -0.0149994 -0.0135546
vertex -0.0072546 0.0149994 -0.0135546
endloop
endfacet
facet normal -0.91369 0 0.406412
outer loop
vertex -0.01369 -0.0149994 -0.00776005
vertex -0.012845 0.0149994 -0.00586033
vertex -0.01369 0.0149994 -0.00776005
endloop
endfacet
facet normal -0.91369 0 0.406412
outer loop
vertex -0.012845 0.0149994 -0.00586033
vertex -0.01369 -0.0149994 -0.00776005
vertex -0.012845 -0.0149994 -0.00586033
endloop
endfacet
facet normal 0.499988 0 0.866032
outer loop
vertex -0.0072546 0.0149994 -0.00404453
vertex -0.00545406 -0.0149994 -0.00508404
vertex -0.00545406 0.0149994 -0.00508404
endloop
endfacet
facet normal 0.499988 0 0.866032
outer loop
vertex -0.00545406 -0.0149994 -0.00508404
vertex -0.0072546 0.0149994 -0.00404453
vertex -0.0072546 -0.0149994 -0.00404453
endloop
endfacet
facet normal -0.668739 0 0.743497
outer loop
vertex -0.012845 0.0149994 -0.00586033
vertex -0.0112991 -0.0149994 -0.00446987
vertex -0.0112991 0.0149994 -0.00446987
endloop
endfacet
facet normal -0.668739 0 0.743497
outer loop
vertex -0.0112991 -0.0149994 -0.00446987
vertex -0.012845 0.0149994 -0.00586033
vertex -0.012845 -0.0149994 -0.00586033
endloop
endfacet
facet normal 0.104585 0 0.994516
outer loop
vertex -0.00932217 0.0149994 -0.0038271
vertex -0.0072546 -0.0149994 -0.00404453
vertex -0.0072546 0.0149994 -0.00404453
endloop
endfacet
facet normal 0.104585 0 0.994516
outer loop
vertex -0.0072546 -0.0149994 -0.00404453
vertex -0.00932217 0.0149994 -0.0038271
vertex -0.00932217 -0.0149994 -0.0038271
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.0112991 -0.0149994 -0.00446987
vertex -0.0072546 -0.0149994 -0.00404453
vertex -0.00932217 -0.0149994 -0.0038271
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.0112991 -0.0149994 -0.00446987
vertex -0.00545406 -0.0149994 -0.00508404
vertex -0.0072546 -0.0149994 -0.00404453
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.012845 -0.0149994 -0.00586033
vertex -0.00545406 -0.0149994 -0.00508404
vertex -0.0112991 -0.0149994 -0.00446987
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.012845 -0.0149994 -0.00586033
vertex -0.00423145 -0.0149994 -0.00676537
vertex -0.00545406 -0.0149994 -0.00508404
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.01369 -0.0149994 -0.00776005
vertex -0.00423145 -0.0149994 -0.00676537
vertex -0.012845 -0.0149994 -0.00586033
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.01369 -0.0149994 -0.00776005
vertex -0.00379944 -0.0149994 -0.00879955
vertex -0.00423145 -0.0149994 -0.00676537
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.01369 -0.0149994 -0.00983906
vertex -0.00379944 -0.0149994 -0.00879955
vertex -0.01369 -0.0149994 -0.00776005
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.01369 -0.0149994 -0.00983906
vertex -0.00423145 -0.0149994 -0.0108328
vertex -0.00379944 -0.0149994 -0.00879955
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.012845 -0.0149994 -0.0117388
vertex -0.00423145 -0.0149994 -0.0108328
vertex -0.01369 -0.0149994 -0.00983906
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.012845 -0.0149994 -0.0117388
vertex -0.00545406 -0.0149994 -0.0125151
vertex -0.00423145 -0.0149994 -0.0108328
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.0112991 -0.0149994 -0.0131292
vertex -0.00545406 -0.0149994 -0.0125151
vertex -0.012845 -0.0149994 -0.0117388
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.0112991 -0.0149994 -0.0131292
vertex -0.0072546 -0.0149994 -0.0135546
vertex -0.00545406 -0.0149994 -0.0125151
endloop
endfacet
facet normal -0 -1 0
outer loop
vertex -0.0072546 -0.0149994 -0.0135546
vertex -0.0112991 -0.0149994 -0.0131292
vertex -0.00932217 -0.0149994 -0.013772
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.01369 -0.0149994 -0.00983906
vertex -0.01369 0.0149994 -0.00776005
vertex -0.01369 0.0149994 -0.00983906
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -0.01369 0.0149994 -0.00776005
vertex -0.01369 -0.0149994 -0.00983906
vertex -0.01369 -0.0149994 -0.00776005
endloop
endfacet
facet normal 0.978164 0 -0.207833
outer loop
vertex -0.00379944 -0.0149994 -0.00879955
vertex -0.00423145 0.0149994 -0.0108328
vertex -0.00379944 0.0149994 -0.00879955
endloop
endfacet
facet normal 0.978164 0 -0.207833
outer loop
vertex -0.00423145 0.0149994 -0.0108328
vertex -0.00379944 -0.0149994 -0.00879955
vertex -0.00423145 -0.0149994 -0.0108328
endloop
endfacet
facet normal -0.309203 0 0.950996
outer loop
vertex -0.0112991 0.0149994 -0.00446987
vertex -0.00932217 -0.0149994 -0.0038271
vertex -0.00932217 0.0149994 -0.0038271
endloop
endfacet
facet normal -0.309203 0 0.950996
outer loop
vertex -0.00932217 -0.0149994 -0.0038271
vertex -0.0112991 0.0149994 -0.00446987
vertex -0.0112991 -0.0149994 -0.00446987
endloop
endfacet
facet normal -0.913692 0 -0.406408
outer loop
vertex -0.012845 -0.0149994 -0.0117388
vertex -0.01369 0.0149994 -0.00983906
vertex -0.012845 0.0149994 -0.0117388
endloop
endfacet
facet normal -0.913692 -0 -0.406408
outer loop
vertex -0.01369 0.0149994 -0.00983906
vertex -0.012845 -0.0149994 -0.0117388
vertex -0.01369 -0.0149994 -0.00983906
endloop
endfacet
facet normal 0.104571 0 -0.994517
outer loop
vertex -0.00932217 -0.0149994 -0.013772
vertex -0.0072546 0.0149994 -0.0135546
vertex -0.0072546 -0.0149994 -0.0135546
endloop
endfacet
facet normal 0.104571 0 -0.994517
outer loop
vertex -0.0072546 0.0149994 -0.0135546
vertex -0.00932217 -0.0149994 -0.013772
vertex -0.00932217 0.0149994 -0.013772
endloop
endfacet
facet normal -0.668723 0 -0.743512
outer loop
vertex -0.012845 -0.0149994 -0.0117388
vertex -0.0112991 0.0149994 -0.0131292
vertex -0.0112991 -0.0149994 -0.0131292
endloop
endfacet
facet normal -0.668723 0 -0.743512
outer loop
vertex -0.0112991 0.0149994 -0.0131292
vertex -0.012845 -0.0149994 -0.0117388
vertex -0.012845 0.0149994 -0.0117388
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.0072546 0.0149994 -0.00404453
vertex -0.0112991 0.0149994 -0.00446987
vertex -0.00932217 0.0149994 -0.0038271
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00545406 0.0149994 -0.00508404
vertex -0.0112991 0.0149994 -0.00446987
vertex -0.0072546 0.0149994 -0.00404453
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00545406 0.0149994 -0.00508404
vertex -0.012845 0.0149994 -0.00586033
vertex -0.0112991 0.0149994 -0.00446987
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00423145 0.0149994 -0.00676537
vertex -0.012845 0.0149994 -0.00586033
vertex -0.00545406 0.0149994 -0.00508404
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00423145 0.0149994 -0.00676537
vertex -0.01369 0.0149994 -0.00776005
vertex -0.012845 0.0149994 -0.00586033
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00379944 0.0149994 -0.00879955
vertex -0.01369 0.0149994 -0.00776005
vertex -0.00423145 0.0149994 -0.00676537
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00379944 0.0149994 -0.00879955
vertex -0.01369 0.0149994 -0.00983906
vertex -0.01369 0.0149994 -0.00776005
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -0.00423145 0.0149994 -0.0108328
vertex -0.01369 0.0149994 -0.00983906
vertex -0.00379944 0.0149994 -0.00879955
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00423145 0.0149994 -0.0108328
vertex -0.012845 0.0149994 -0.0117388
vertex -0.01369 0.0149994 -0.00983906
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -0.00545406 0.0149994 -0.0125151
vertex -0.012845 0.0149994 -0.0117388
vertex -0.00423145 0.0149994 -0.0108328
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.00545406 0.0149994 -0.0125151
vertex -0.0112991 0.0149994 -0.0131292
vertex -0.012845 0.0149994 -0.0117388
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -0.0072546 0.0149994 -0.0135546
vertex -0.0112991 0.0149994 -0.0131292
vertex -0.00545406 0.0149994 -0.0125151
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.0112991 0.0149994 -0.0131292
vertex -0.0072546 0.0149994 -0.0135546
vertex -0.00932217 0.0149994 -0.013772
endloop
endfacet
endsolid OpenSCAD_Model

+ 1962
- 0
implementation/endeffector/markerholder.stl
文件差異過大導致無法顯示
查看文件


+ 1628
- 0
implementation/library/SCARA/inverse_kinematics_v1.emx
文件差異過大導致無法顯示
查看文件


+ 17
- 0
implementation/library/setpoint/rectanglepath.emx 查看文件

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<Document>
<Model version="4.8" build="4.8.2.10124">
<Sidops>
<![CDATA[rectanglepath 112 184 description '<Information>
<Description>
<Version>4.8</Version>
<LibraryPath>setpoint\rectanglepath.emx</LibraryPath>
<IsMainModel>1</IsMainModel>
<KeepParameterValues>False</KeepParameterValues>
<TimeStamp>2020-7-10 12:30:38</TimeStamp>
<AllowLibraryUpdate>False</AllowLibraryUpdate>
</Description>
</Information>'; type 'Submodel-Equation' ports signal out output [2,1]; end; implementation eq /* This will generate coordinates for the box that has to be drawn */ parameters real w = 0.07{m} ; real h = 0.05 {m}; real t = 1 {s}; real origin[2] = [0.05,0.05]{m}; variables real v {m/s}; real t_w {s}; real t_h {s}; real period {s}; real test1, test2, test3; initialequations v = (2*w + 2*h)/t; t_w = w / v; t_h = h / v; equations period = floor(time / t) * t; output[1] = v*(ramp(period+t_h) - ramp(period + t_w+t_h) - ramp(period + t_w + t_h + t_h)) + origin[1]; output[2] = v*(ramp(period) - ramp(period + t_h) - ramp(period + t_h + t_w) + ramp(period + 2 * t_h + t_w))+ origin[2]; implementation_end; ]]>
</Sidops>
</Model>
</Document>

Loading…
取消
儲存