|
a |
|
b/Application/Examples/FreePosture/Model/JointsAndDrivers.any |
|
|
1 |
/* ---------------------------------------------------------------- |
|
|
2 |
Drivers for the model: |
|
|
3 |
|
|
|
4 |
-The pelvis is locked to the ground |
|
|
5 |
-The remaining degrees of freedom are controlled by parameters in the mannequin.any file. |
|
|
6 |
-This file is a good way to get an overview of the dof in the full body model |
|
|
7 |
all the dof in the body model is driven from this file. |
|
|
8 |
-In total |
|
|
9 |
|
|
|
10 |
Soeren, March 1, 2006. |
|
|
11 |
---------------------------------------------------------------- */ |
|
|
12 |
|
|
|
13 |
AnyFolder Drivers = { |
|
|
14 |
|
|
|
15 |
#include "<ANYBODY_PATH_BODY>/BodyModels/include/MannequinDrivers.any" |
|
|
16 |
|
|
|
17 |
// Aliases for convenient referencing |
|
|
18 |
AnyFolder &JntPos=..Mannequin.Posture; |
|
|
19 |
AnyFolder &JntVel=..Mannequin.PostureVel; |
|
|
20 |
|
|
|
21 |
AnyFolder &RefHM = Main.Model.HumanModel; |
|
|
22 |
|
|
|
23 |
// AnyFolder &Thorax = .HumanModel.Trunk.SegmentsThorax.ThoraxSeg; |
|
|
24 |
// AnyFolder &ref=.HumanModel.Trunk; |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
// The body parts are included only if there is no unhallowed combination detected |
|
|
28 |
#ifdef UNHALLOWED_COMBINATION |
|
|
29 |
#else |
|
|
30 |
|
|
|
31 |
#include "TrunkDrivers.any" |
|
|
32 |
|
|
|
33 |
#if BM_ARM_RIGHT == ON |
|
|
34 |
#include "RightArmDrivers.any" |
|
|
35 |
#if BM_ARM_DETAILED_HAND == ON |
|
|
36 |
#include "RightHandDrivers.any" |
|
|
37 |
#endif |
|
|
38 |
#endif |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
#if BM_ARM_LEFT == ON |
|
|
42 |
#include "LeftArmDrivers.any" |
|
|
43 |
#if BM_ARM_DETAILED_HAND == ON |
|
|
44 |
#include "LeftHandDrivers.any" |
|
|
45 |
#endif |
|
|
46 |
#endif |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
#if BM_LEG_RIGHT & (BM_LEG_MODEL == _LEG_MODEL_LEG_) |
|
|
50 |
#include "RightLegDrivers.any" |
|
|
51 |
#endif |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
#if BM_LEG_LEFT & (BM_LEG_MODEL == _LEG_MODEL_LEG_) |
|
|
55 |
#include "LeftLegDrivers.any" |
|
|
56 |
#endif |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
#if BM_LEG_RIGHT & BM_LEG_MODEL_IS_TLEM |
|
|
60 |
#include "RightLegTDDrivers.any" |
|
|
61 |
#endif |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
#if BM_LEG_RIGHT & BM_LEG_MODEL_IS_TLEM |
|
|
65 |
#include "LeftLegTDDrivers.any" |
|
|
66 |
#endif |
|
|
67 |
|
|
|
68 |
#endif |
|
|
69 |
};//Drivers |