Switch to unified view

a b/Tests/Symmetry/DynamicTest/Model/Mannequin.any
1
2
3
// This is to switch On or Off the MannequinDrivers. It is a quick way to drive any joint of the body 
4
// with pre-existing drivers. They are based on the FreePosture drivers, 
5
// so they are driving directly the joint angles and are really independent from each other. Also
6
// all DOF can be driven separatly.
7
// 0 switch the driver Off and 1 switch it On.
8
// The input value for each driver is the joint angles and velocities defined below in the Mannequin folder.
9
// Notice that even if it is possible to drive fully the model with those drivers, we originaly thinked them
10
// as alternative or debug drivers.
11
// *********************************************************************************************************
12
13
// Those variable control the initial position of the body.
14
// They are also the input values for the MannequinDrivers if switched On above.
15
// ****************************************************************************
16
17
18
Main.HumanModel.Mannequin = {
19
  
20
  Posture = {
21
    //This controls the position of the pelvi wrt. to the global reference frame
22
    PelvisPosX=0;
23
    PelvisPosY=1.0;
24
    PelvisPosZ=0;
25
    
26
    //This controls the rotation of the pelvis wrt. to the global reference frame
27
    PelvisRotX=0;
28
    PelvisRotY=0;
29
    PelvisRotZ=0;
30
    
31
    // These variables control the rotation of the thorax wrt the
32
    // pelvis    
33
    PelvisThoraxExtension=0; 
34
    PelvisThoraxLateralBending=0;  
35
    PelvisThoraxRotation=0;        
36
    
37
    NeckExtension=0; 
38
    NeckLateralBending=0; 
39
    NeckRotation=0; 
40
    
41
    Right = {
42
      //Arm 
43
      SternoClavicularProtraction=-23;   //This value is not used for initial position
44
      SternoClavicularElevation=11.5;    //This value is not used for initial position
45
      
46
      GlenohumeralFlexion =45; 
47
      GlenohumeralAbduction = 90; 
48
      GlenohumeralExternalRotation = 00; 
49
      
50
      ElbowFlexion = 5; 
51
      ElbowPronation = -60.0;
52
      
53
      WristFlexion =0;
54
      WristAbduction =0;
55
      
56
      //Hand
57
      Finger1 ={
58
        CMCDeviation=-20;
59
        CMCFlexion=20;
60
        MCPFlexion= 20;
61
        MCPDeviation=0;
62
        DIPFlexion=20;
63
      };
64
      
65
      Finger2 ={
66
        MCPFlexion=20;
67
        PIPFlexion=20;
68
        DIPFlexion=20;
69
      };
70
      
71
      Finger3 ={
72
        MCPFlexion=20;
73
        PIPFlexion=20;
74
        DIPFlexion=20;
75
      };
76
      
77
      Finger4 ={
78
        MCPFlexion=20;
79
        PIPFlexion=20;
80
        DIPFlexion=20;
81
      };
82
      
83
      Finger5 ={
84
        MCPFlexion=20;
85
        PIPFlexion=20;
86
        DIPFlexion=20;
87
      };
88
      
89
      //Leg
90
      HipFlexion = 0.0; 
91
      HipAbduction = 10.0; 
92
      HipExternalRotation = 0.0;
93
      
94
      KneeFlexion = 0.0; 
95
      
96
      AnklePlantarFlexion =0.0; 
97
      
98
      SubTalarEversion = 0;
99
    };
100
    
101
    Left = {
102
      //all values are set to be equal to the right side values 
103
      //feel free to change this!
104
      
105
      //Arm
106
      SternoClavicularProtraction=.Right.SternoClavicularProtraction;
107
      SternoClavicularElevation=.Right.SternoClavicularElevation;
108
      
109
      GlenohumeralFlexion = .Right.GlenohumeralFlexion ; 
110
      GlenohumeralAbduction =.Right.GlenohumeralAbduction ;
111
      GlenohumeralExternalRotation =.Right.GlenohumeralExternalRotation ;
112
113
      ElbowFlexion = .Right.ElbowFlexion; 
114
      ElbowPronation = .Right.ElbowPronation;       
115
      WristFlexion =.Right.WristFlexion;
116
      WristAbduction =.Right.WristAbduction;
117
      
118
      //Hand
119
      Finger1 ={
120
        CMCDeviation= ..Right.Finger1.CMCDeviation;
121
        CMCFlexion= ..Right.Finger1.CMCFlexion;
122
        MCPFlexion= ..Right.Finger1.MCPFlexion;
123
        MCPDeviation= ..Right.Finger1.MCPDeviation;
124
        DIPFlexion= ..Right.Finger1.DIPFlexion;
125
      };
126
      
127
      Finger2 ={
128
        MCPFlexion= ..Right.Finger2.MCPFlexion;
129
        PIPFlexion= ..Right.Finger2.PIPFlexion;
130
        DIPFlexion= ..Right.Finger2.DIPFlexion;
131
      };
132
      
133
      Finger3 ={
134
        MCPFlexion= ..Right.Finger3.MCPFlexion;
135
        PIPFlexion= ..Right.Finger3.PIPFlexion;
136
        DIPFlexion= ..Right.Finger3.DIPFlexion;
137
      };
138
      
139
      Finger4 ={
140
        MCPFlexion= ..Right.Finger4.MCPFlexion;
141
        PIPFlexion= ..Right.Finger4.PIPFlexion;
142
        DIPFlexion= ..Right.Finger4.DIPFlexion;
143
      };
144
      
145
      Finger5 ={
146
        MCPFlexion= ..Right.Finger5.MCPFlexion;
147
        PIPFlexion= ..Right.Finger5.PIPFlexion;
148
        DIPFlexion= ..Right.Finger5.DIPFlexion;
149
      };
150
      
151
      //Leg     
152
      HipFlexion =.Right.HipFlexion;  
153
      HipAbduction =.Right.HipAbduction;
154
      HipExternalRotation = .Right.HipExternalRotation;
155
      KneeFlexion = .Right.KneeFlexion;       
156
      AnklePlantarFlexion = .Right.AnklePlantarFlexion ;
157
      SubTalarEversion =.Right.SubTalarEversion; 
158
   };
159
  };
160
  
161
  
162
  
163
PostureVel={  
164
      //This controls the position of the pelvi wrt. to the global reference frame
165
    PelvisPosX=0;
166
    PelvisPosY=0;
167
    PelvisPosZ=0;
168
    
169
    //This controls the rotation of the pelvis wrt. to the global reference frame
170
    PelvisRotX=0;
171
    PelvisRotY=0;
172
    PelvisRotZ=0;
173
    
174
    // These variables control the rotation of the thorax wrt the
175
    // pelvis    
176
    PelvisThoraxExtension=0; 
177
    PelvisThoraxLateralBending=0;  
178
    PelvisThoraxRotation=0;        
179
    
180
    NeckExtension=0; 
181
    NeckLateralBending=0; 
182
    NeckRotation=0; 
183
    
184
    Right = {
185
      //Arm 
186
      SternoClavicularProtraction=0;   //This value is not used for initial position
187
      SternoClavicularElevation=0;    //This value is not used for initial position
188
      
189
      GlenohumeralFlexion =0; 
190
      GlenohumeralAbduction = 0; 
191
      GlenohumeralExternalRotation = 0; 
192
      
193
      ElbowFlexion = 0.0;
194
      ElbowPronation = 0.0;
195
      
196
      WristFlexion =0;
197
      WristAbduction =0;
198
      
199
      HipFlexion = 0.0; 
200
      HipAbduction = 0.0; 
201
      HipExternalRotation = 0.0;
202
      
203
      KneeFlexion = 0.0; 
204
      
205
      AnklePlantarFlexion =0.0; 
206
      SubTalarEversion =0.0; 
207
      
208
    };
209
    
210
    Left = {
211
      //all values are set to be equal to the right side values 
212
      //feel free to change this!
213
      
214
      //Arm
215
      SternoClavicularProtraction=.Right.SternoClavicularProtraction;
216
      SternoClavicularElevation=.Right.SternoClavicularElevation;
217
      
218
      GlenohumeralFlexion = .Right.GlenohumeralFlexion ; 
219
      GlenohumeralAbduction =.Right.GlenohumeralAbduction ;
220
      GlenohumeralExternalRotation =.Right.GlenohumeralExternalRotation ;
221
222
      ElbowFlexion = .Right.ElbowFlexion; 
223
      ElbowPronation = .Right.ElbowPronation;       
224
      WristFlexion =.Right.WristFlexion;
225
      WristAbduction =.Right.WristAbduction;
226
      
227
      
228
      
229
      //Leg     
230
      HipFlexion =.Right.HipFlexion;  
231
      HipAbduction =.Right.HipAbduction;
232
      HipExternalRotation = .Right.HipExternalRotation;
233
      KneeFlexion = .Right.KneeFlexion;       
234
      AnklePlantarFlexion = .Right.AnklePlantarFlexion ;      
235
      SubTalarEversion = .Right.SubTalarEversion;
236
    };
237
  };
238
239
  
240
  
241
};
242
243