|
a |
|
b/Application/Examples/BikeModel2D/Model/Leg2D.any |
|
|
1 |
AnyFolder Leg2D = { |
|
|
2 |
// ********************************************************** |
|
|
3 |
// The following references refers to stuff that the Leg2D model needs |
|
|
4 |
// and which does not differ for rigth and left side |
|
|
5 |
// ********************************************************** |
|
|
6 |
|
|
|
7 |
// ********************************************************** |
|
|
8 |
// This is a reference to where the body parameters are located. |
|
|
9 |
// The model will need the following quantities |
|
|
10 |
// AnyVar BodyMass |
|
|
11 |
// AnyVar BodyHeight |
|
|
12 |
// AnyVar Density |
|
|
13 |
// ********************************************************** |
|
|
14 |
AnyFolder &BodyParRef = ..BodyParameters; |
|
|
15 |
|
|
|
16 |
// ********************************************************** |
|
|
17 |
// This is a reference to where the colors for the model are located |
|
|
18 |
// The model will need the following quantities |
|
|
19 |
// AnyVec3 Nodes |
|
|
20 |
// AnyVec3 Segments |
|
|
21 |
// ********************************************************** |
|
|
22 |
AnyFolder &ColorRef = ..DrawSettings.Colors; |
|
|
23 |
AnyVar HipWidth = ..BikeParameters.PedalArmWidth; |
|
|
24 |
|
|
|
25 |
// ********************************************************** |
|
|
26 |
// This is a reference to the folder which contains the drawing settings for the muscles |
|
|
27 |
// ********************************************************** |
|
|
28 |
AnyFolder &MusDrawRef = ..DrawSettings.Muscle; |
|
|
29 |
|
|
|
30 |
//This is the path to the trunk segments which the legs will attach too |
|
|
31 |
#include "<ANYBODY_PATH_BODY>\Leg2D\SegmentsTrunk.any" |
|
|
32 |
|
|
|
33 |
//This folder contains the right leg |
|
|
34 |
AnyFolder Right = { |
|
|
35 |
|
|
|
36 |
//This is a sign variable which indicates that this is the right side |
|
|
37 |
AnyVar Sign = 1; |
|
|
38 |
|
|
|
39 |
//This is the node where the leg is attached to the pelvis right hipnode |
|
|
40 |
AnyRefFrame &HipNodeRef = .Pelvis.HipJointRight; |
|
|
41 |
|
|
|
42 |
//This the include file that contains the leg |
|
|
43 |
#include "<ANYBODY_PATH_BODY>\Leg2D\Leg.root.any" |
|
|
44 |
|
|
|
45 |
}; //Right |
|
|
46 |
|
|
|
47 |
//This folder contains the left leg |
|
|
48 |
AnyFolder Left = { |
|
|
49 |
|
|
|
50 |
//This is a sign variable which indicates that this is the left side |
|
|
51 |
AnyVar Sign = -1; |
|
|
52 |
|
|
|
53 |
//This is the node where the leg is attached to the pelvis left hipnode |
|
|
54 |
AnyRefFrame &HipNodeRef = .Pelvis.HipJointLeft; |
|
|
55 |
|
|
|
56 |
//This the include file that contains the leg |
|
|
57 |
#include "<ANYBODY_PATH_BODY>\Leg2D\Leg.root.any" |
|
|
58 |
|
|
|
59 |
}; //Left |
|
|
60 |
|
|
|
61 |
}; //Leg2D |
|
|
62 |
|