@@ -91,10 +91,12 @@ Then you can see the following structure inside:
9191``` AnyScriptDoc
9292AnyFolder Joints =
9393{
94+
9495};
9596
9697AnyFolder Drivers =
9798{
99+
98100};
99101```
100102
@@ -142,18 +144,19 @@ by double-clicking the following line, and make the changes show in red:
142144
143145``` AnyScriptDoc
144146...
145- #path BM_MANNEQUIN_FILE "Model\Mannequin.any"
147+ #include "Model\Mannequin.any"
146148...
147149```
148150
149151``` AnyScriptDoc
150- AnyFolder Mannequin = {
152+ HumanModel.Mannequin = {
153+
154+ Posture = {
155+ //This controls the position of the pelvi wrt. to the global reference frame
156+ PelvisPosX=§-0.7§;
157+ PelvisPosY=§0.5§;
158+ PelvisPosZ=0;
151159
152- AnyFolder Posture = {
153- //This controls the position of the pelvis wrt. to the global reference frame
154- AnyVar PelvisPosX = §-0.7§;
155- AnyVar PelvisPosY = §0.5§;
156- AnyVar PelvisPosZ = 0;
157160...
158161```
159162
@@ -163,31 +166,32 @@ in the leg so that the foot is closer to the pedal. This can be done further dow
163166in the Mannequin file:
164167
165168``` AnyScriptDoc
166- AnyFolder Right = {
167- //Arm
168- AnyVar SternoClavicularProtraction=-23; //This value is not used for initial position
169- AnyVar SternoClavicularElevation=11.5; //This value is not used for initial position
170- AnyVar SternoClavicularAxialRotation=-20; //This value is not used for initial position
171-
172- AnyVar GlenohumeralFlexion =-0;
173- AnyVar GlenohumeralAbduction = 10;
174- AnyVar GlenohumeralExternalRotation = 0;
175-
176- AnyVar ElbowFlexion = 0.01;
177- AnyVar ElbowPronation = -20.0;
178-
179- AnyVar WristFlexion =0;
180- AnyVar WristAbduction =0;
181-
169+ Right = {
170+ //Arm
171+ SternoClavicularProtraction=-23; //This value is not used for initial position
172+ SternoClavicularElevation=11.5; //This value is not used for initial position
173+ SternoClavicularAxialRotation=-20; ///< Only used when the clavicular axial rotation rhythm is diabled
174+
175+ GlenohumeralFlexion =-0;
176+ GlenohumeralAbduction = 10;
177+ GlenohumeralExternalRotation = 0;
178+
179+ ElbowFlexion = 0.01;
180+ ElbowPronation = -20.0;
181+
182+ WristFlexion =0;
183+ WristAbduction =0;
184+
182185 //Leg
183- AnyVar HipFlexion = §110.0§;
184- AnyVar HipAbduction = 5.0;
185- AnyVar HipExternalRotation = 0.0;
186-
187- AnyVar KneeFlexion = §100.0§;
186+ HipFlexion = §110.0§;
187+ HipAbduction = 5.0;
188+ HipExternalRotation = 0.0;
189+
190+ KneeFlexion = §100.0§;
191+
192+ AnklePlantarFlexion =0.0;
193+ SubTalarEversion =0.0;
188194
189- AnyVar AnklePlantarFlexion =0.0;
190- AnyVar SubTalarEversion =0.0;
191195...
192196```
193197
@@ -227,7 +231,7 @@ AnyFolder Drivers =
227231};
228232```
229233
230- Insert a"PelvisThoraxDriver" into the Drivers folder, created using the ` AnyKinEqSimpleDriver ` class.
234+ Insert a "PelvisThoraxDriver" into the Drivers folder, created using the ` AnyKinEqSimpleDriver ` class.
231235You already know how to create model objects from scratch by using the
232236the "Class Inserter" ({ref}` described here <class-inserter> ` ). More details on properties
233237such as DriverPos, DriverVel etc. can be ({ref}` found here <anykineqsimpledriver> ` ) :
@@ -237,9 +241,9 @@ AnyFolder Drivers =
237241{
238242 §AnyKinEqSimpleDriver PelvisThoraxDriver =
239243 {
240- AnyKinMeasure& ref0 = ...HumanModel.BodyModel.Interface.Trunk.PelvisThoraxExtension;
241- AnyKinMeasure& ref1 = ...HumanModel.BodyModel.Interface.Trunk.PelvisThoraxLateralBending;
242- AnyKinMeasure& ref2 = ...HumanModel.BodyModel.Interface.Trunk.PelvisThoraxRotation;
244+ AnyKinMeasure& ref0 = .... HumanModel.BodyModel.Interface.Trunk.PelvisThoraxExtension;
245+ AnyKinMeasure& ref1 = .... HumanModel.BodyModel.Interface.Trunk.PelvisThoraxLateralBending;
246+ AnyKinMeasure& ref2 = .... HumanModel.BodyModel.Interface.Trunk.PelvisThoraxRotation;
243247
244248 DriverPos = pi/180*{0,0,0};
245249 DriverVel = pi/180*{0,0,0};
@@ -257,9 +261,9 @@ AnyFolder Drivers =
257261{
258262 AnyKinEqSimpleDriver PelvisThoraxDriver =
259263 {
260- AnyKinMeasure& ref0 = ...HumanModel.BodyModel.Interface.Trunk.PelvisThoraxExtension;
261- AnyKinMeasure& ref1 = ...HumanModel.BodyModel.Interface.Trunk.PelvisThoraxLateralBending;
262- AnyKinMeasure& ref2 = ...HumanModel.BodyModel.Interface.Trunk.PelvisThoraxRotation;
264+ AnyKinMeasure& ref0 = .... HumanModel.BodyModel.Interface.Trunk.PelvisThoraxExtension;
265+ AnyKinMeasure& ref1 = .... HumanModel.BodyModel.Interface.Trunk.PelvisThoraxLateralBending;
266+ AnyKinMeasure& ref2 = .... HumanModel.BodyModel.Interface.Trunk.PelvisThoraxRotation;
263267
264268 DriverPos = pi/180*{0,0,0};
265269 DriverVel = pi/180*{0,0,0};
@@ -268,9 +272,9 @@ AnyFolder Drivers =
268272
269273 §AnyKinEqSimpleDriver SkullThoraxDriver =
270274 {
271- AnyKinMeasure& ref0 = ...HumanModel.BodyModel.Interface.Trunk.SkullThoraxFlexion;
272- AnyKinMeasure& ref1 = ...HumanModel.BodyModel.Interface.Trunk.SkullThoraxLateralBending;
273- AnyKinMeasure& ref2 = ...HumanModel.BodyModel.Interface.Trunk.SkullThoraxRotation;
275+ AnyKinMeasure& ref0 = .... HumanModel.BodyModel.Interface.Trunk.SkullThoraxFlexion;
276+ AnyKinMeasure& ref1 = .... HumanModel.BodyModel.Interface.Trunk.SkullThoraxLateralBending;
277+ AnyKinMeasure& ref2 = .... HumanModel.BodyModel.Interface.Trunk.SkullThoraxRotation;
274278
275279 DriverPos = pi/180*{0,0,0};
276280 DriverVel = pi/180*{0,0,0};
@@ -312,18 +316,18 @@ AnyFolder Drivers =
312316...
313317 AnyKinEqSimpleDriver SkullThoraxDriver =
314318 {
315- AnyKinMeasure& ref0 = ...HumanModel.BodyModel.Interface.Trunk.SkullThoraxFlexion;
316- AnyKinMeasure& ref1 = ...HumanModel.BodyModel.Interface.Trunk.SkullThoraxLateralBending;
317- AnyKinMeasure& ref2 = ...HumanModel.BodyModel.Interface.Trunk.SkullThoraxRotation;
319+ AnyKinMeasure& ref0 = .... HumanModel.BodyModel.Interface.Trunk.SkullThoraxFlexion;
320+ AnyKinMeasure& ref1 = .... HumanModel.BodyModel.Interface.Trunk.SkullThoraxLateralBending;
321+ AnyKinMeasure& ref2 = .... HumanModel.BodyModel.Interface.Trunk.SkullThoraxRotation;
318322
319323 DriverPos = pi/180*{0,0,0};
320324 DriverVel = pi/180*{0,0,0};
321325 };
322326
323327 §AnyKinEqSimpleDriver AnkleDriver =
324328 {
325- AnyKinMeasure& ref0 = ...HumanModel.BodyModel.Interface.Right.AnklePlantarFlexion;
326- AnyKinMeasure& ref1 = ...HumanModel.BodyModel.Interface.Right.SubTalarEversion;
329+ AnyKinMeasure& ref0 = .... HumanModel.BodyModel.Interface.Right.AnklePlantarFlexion;
330+ AnyKinMeasure& ref1 = .... HumanModel.BodyModel.Interface.Right.SubTalarEversion;
327331
328332 DriverPos = pi/180*{0, 0};
329333 DriverVel = pi/180*{0, 0};
@@ -348,8 +352,8 @@ AnyFolder Drivers =
348352...
349353 AnyKinEqSimpleDriver AnkleDriver =
350354 {
351- AnyKinMeasure& ref0 = ...HumanModel.BodyModel.Interface.Right.AnklePlantarFlexion;
352- AnyKinMeasure& ref1 = ...HumanModel.BodyModel.Interface.Right.SubTalarEversion;
355+ AnyKinMeasure& ref0 = .... HumanModel.BodyModel.Interface.Right.AnklePlantarFlexion;
356+ AnyKinMeasure& ref1 = .... HumanModel.BodyModel.Interface.Right.SubTalarEversion;
353357
354358 DriverPos = pi/180*{0, 0};
355359 DriverVel = pi/180*{0, 0};
@@ -437,7 +441,7 @@ Then you see the Object Description dialog will open.
437441![ ObjectDescription DOFs] ( _static/lesson3/image5.png )
438442
439443** This indicates that the total number of DOFs(degrees of freedom) in your
440- model is 132. It makes sense because there are 21 segments in your model
444+ model is 132. It makes sense because there are 22 segments in your model
441445and each segment has 6 DOFs.**
442446
443447If you scroll down this dialog a little bit more, then you can see the
0 commit comments