Switch to unified view

a b/Application/Examples/FreePosture/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
      
158
      SubTalarEversion = .Right.SubTalarEversion;
159
    };
160
  };
161
  
162
  
163
  
164
PostureVel={  
165
      //This controls the position of the pelvi wrt. to the global reference frame
166
    PelvisPosX=0;
167
    PelvisPosY=0;
168
    PelvisPosZ=0;
169
    
170
    //This controls the rotation of the pelvis wrt. to the global reference frame
171
    PelvisRotX=0;
172
    PelvisRotY=0;
173
    PelvisRotZ=0;
174
    
175
    // These variables control the rotation of the thorax wrt the
176
    // pelvis    
177
    PelvisThoraxExtension=0; 
178
    PelvisThoraxLateralBending=0;  
179
    PelvisThoraxRotation=0;        
180
    
181
    NeckExtension=0; 
182
    NeckLateralBending=0; 
183
    NeckRotation=0; 
184
    
185
    Right = {
186
      //Arm 
187
      SternoClavicularProtraction=0;   //This value is not used for initial position
188
      SternoClavicularElevation=0;    //This value is not used for initial position
189
      
190
      GlenohumeralFlexion =0; 
191
      GlenohumeralAbduction = 0; 
192
      GlenohumeralExternalRotation = 0; 
193
      
194
      ElbowFlexion = 0.0;
195
      ElbowPronation = 0.0;
196
      
197
      WristFlexion =0;
198
      WristAbduction =0;
199
      
200
      HipFlexion = 0.0; 
201
      HipAbduction = 0.0; 
202
      HipExternalRotation = 0.0;
203
      
204
      KneeFlexion = 0.0; 
205
      
206
      AnklePlantarFlexion =0.0; 
207
      
208
      SubTalarEversion = 0;
209
210
      //Detail Hand
211
      Finger1 ={
212
        CMCDeviation=0;
213
        CMCFlexion=0;
214
        MCPFlexion= 0;
215
        MCPDeviation= 0;
216
        DIPFlexion=0;
217
      };
218
      
219
      Finger2 ={
220
        MCPFlexion=0;
221
        PIPFlexion=0;
222
        DIPFlexion=0;
223
      };
224
      
225
      Finger3 ={
226
        MCPFlexion=0;
227
        PIPFlexion=0;
228
        DIPFlexion=0;
229
      };
230
      
231
      Finger4 ={
232
        MCPFlexion=0;
233
        PIPFlexion=0;
234
        DIPFlexion=0;
235
      };
236
      
237
      Finger5 ={
238
        MCPFlexion=0;
239
        PIPFlexion=0;
240
        DIPFlexion=0;
241
      };      
242
    };
243
    
244
    Left = {
245
      //all values are set to be equal to the right side values 
246
      //feel free to change this!
247
      
248
      //Arm
249
      SternoClavicularProtraction=.Right.SternoClavicularProtraction;
250
      SternoClavicularElevation=.Right.SternoClavicularElevation;
251
      
252
      GlenohumeralFlexion = .Right.GlenohumeralFlexion ; 
253
      GlenohumeralAbduction =.Right.GlenohumeralAbduction ;
254
      GlenohumeralExternalRotation =.Right.GlenohumeralExternalRotation ;
255
256
      ElbowFlexion = .Right.ElbowFlexion; 
257
      ElbowPronation = .Right.ElbowPronation;       
258
      WristFlexion =.Right.WristFlexion;
259
      WristAbduction =.Right.WristAbduction;
260
      
261
      
262
      
263
      //Leg     
264
      HipFlexion =.Right.HipFlexion;  
265
      HipAbduction =.Right.HipAbduction;
266
      HipExternalRotation = .Right.HipExternalRotation;
267
      KneeFlexion = .Right.KneeFlexion;       
268
      AnklePlantarFlexion = .Right.AnklePlantarFlexion ;
269
      
270
      SubTalarEversion = .Right.SubTalarEversion;
271
272
      //Detail Hand
273
      Finger1 ={
274
        CMCDeviation=0;
275
        CMCFlexion=0;
276
        MCPFlexion= 0;
277
        MCPDeviation= 0;
278
        DIPFlexion=0;
279
      };
280
      
281
      Finger2 ={
282
        MCPFlexion=0;
283
        PIPFlexion=0;
284
        DIPFlexion=0;
285
      };
286
      
287
      Finger3 ={
288
        MCPFlexion=0;
289
        PIPFlexion=0;
290
        DIPFlexion=0;
291
      };
292
      
293
      Finger4 ={
294
        MCPFlexion=0;
295
        PIPFlexion=0;
296
        DIPFlexion=0;
297
      };
298
      
299
      Finger5 ={
300
        MCPFlexion=0;
301
        PIPFlexion=0;
302
        DIPFlexion=0;
303
      };            
304
    };
305
  };
306
307
  
308
  
309
};
310
311