-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy path__init__.py
More file actions
78 lines (61 loc) · 2.23 KB
/
Copy path__init__.py
File metadata and controls
78 lines (61 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- coding: utf-8 -*-
"""
The **DataVariationLimiter** component is used to avoid big variation of an input data. It interpolates between two consecutive inputs when a jump is detected.
In this directory you will find one example showing how to use the component:
- **DataVariationLimiter.pyscn** : Soft actuated accordion
Below are images of the simulation.
.. image:: http://project.inria.fr/softrobot/files/2016/02/DataStabilizer_0.png
:width: 110px
.. image:: http://project.inria.fr/softrobot/files/2016/02/DataStabilizer_1.png
:width: 110px
.. image:: http://project.inria.fr/softrobot/files/2016/02/DataStabilizer_2.png
:width: 110px
.. image:: http://project.inria.fr/softrobot/files/2016/02/DataStabilizer_3.png
:width: 110px
.. image:: http://project.inria.fr/softrobot/files/2016/02/DataStabilizer_4.png
:width: 110px
.. image:: http://project.inria.fr/softrobot/files/2016/02/DataStabilizer_5.png
:width: 110px
Example
*******
.. sourcecode:: python
goal = rootNode.createChild('goal')
goal.createObject('EulerImplicitIntegrationScheme')
goal.createObject('CGLinearSolver', iterations='100', tolerance="1e-5", threshold="1e-5")
goal.createObject('MechanicalObject', name='goalMO',
position='0 0 5',
showObject="1",
showObjectScale="1",
drawMode="1")
goal.createObject('DataVariationLimiter', name="stabilizer", listening="1", input="@goalMO.position")
goal.createObject('MechanicalObject', name='goalMOStabilized',
position='@stabilizer.output',
showObject="1",
showObjectScale="1",
drawMode="1")
goal.createObject('UncoupledConstraintCorrection')
Data fields
***********
.. list-table::
:header-rows: 1
:widths: auto
* - Required
- Description
* - **input**
- Link to the input variables
* - **output**
- Link to the output
* - **size**
- Input size.
* - **maxJump**
- Maximal jump allowed. Default 10% is equivalent to jump = 0.1.
* - **nbStep**
- Number of interpolation steps. Default is 50.
.. list-table::
:header-rows: 1
:widths: auto
* - Optional
- Description
* - **initOutput**
- If true, will initialize the output with the input.
"""