-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRightLegDrivers.any
More file actions
121 lines (93 loc) · 3.28 KB
/
RightLegDrivers.any
File metadata and controls
121 lines (93 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Place the right toe and heel on the ground
AnyKinEqSimpleDriver RToeGroundConstraint ={
AnyKinLinear ToePos = {
AnyFixedRefFrame &Ground = Main.Model.Environment.GlobalRef;
AnyRefNode &Ball = Main.Model.HumanModel.Right.Leg.Seg.Foot.ToeJoint;
};
MeasureOrganizer = {1}; // Only the y coordinate
DriverPos = {0.0};
DriverVel = {0};
Reaction.Type = {Off}; // Provide ground reaction forces
};
AnyKinEqSimpleDriver RHeelGroundConstraint ={
AnyKinLinear HeelPos = {
AnyFixedRefFrame &Ground = Main.Model.Environment.GlobalRef;
AnyRefNode &Ball = Main.Model.HumanModel.Right.Leg.Seg.Foot.HeelJoint;
};
MeasureOrganizer = {1}; // Only the y coordinate
DriverPos = {0.0};
DriverVel = {0};
Reaction.Type = {Off}; // Provide ground reaction forces
};
// Position the Ankles right above the z axis
AnyKinEqSimpleDriver RAnkleX = {
AnyKinLinear AnklePos = {
AnyFixedRefFrame &Ground = Main.Model.Environment.GlobalRef;
AnyRefNode &Ankle = ..LegR.Seg.Foot.AnkleJoint;
};
MeasureOrganizer = {0}; // Only the x coordinate
DriverPos = {0.0};
DriverVel = {0.0};
Reaction.Type = {Off};
};
// ************************************
// Drivers for the right leg
// ************************************
//Hip driver
AnyKinEqSimpleDriver HipDriverRight={
AnyKinMeasure& ref1 =...HumanModel.Interface.Right.HipFlexion;
AnyKinMeasure& ref2 =...HumanModel.Interface.Right.HipExternalRotation;
AnyKinMeasure& ref3 =...HumanModel.Interface.Right.HipAbduction;
DriverPos= pi/180*{
.JntPos.Right.HipFlexion,
.JntPos.Right.HipExternalRotation,
.JntPos.Right.HipAbduction
};
DriverVel = pi/180*{
.JntVel.Right.HipFlexion,
.JntVel.Right.HipExternalRotation,
.JntVel.Right.HipAbduction
};
Reaction.Type={Off,Off,Off};
};
//Knee driver
AnyKinEqSimpleDriver KneeDriverRight={
AnyKinMeasure& Knee = ...HumanModel.Interface.Right.KneeFlexion;
DriverPos=pi/180*{.JntPos.Right.KneeFlexion};
DriverVel = pi/180*{.JntVel.Right.KneeFlexion};
Reaction.Type={Off};
};
//Ankle driver
AnyKinEqSimpleDriver AnkleDriverRight={
AnyKinMeasure& ref1=...HumanModel.Interface.Right.AnklePlantarFlexion;
AnyKinMeasure& ref2=...HumanModel.Interface.Right.AnkleEversion;
DriverPos = pi/180*{.JntPos.Right.SubTalarEversion};
DriverVel=pi/180*{.JntVel.Right.SubTalarEversion};
Reaction.Type={Off};
MeasureOrganizer={1};
};
AnyReacForce RightFootReaction = {
AnyKinRotational rot = {
AnySeg &ref1=..LegR.Seg.Foot;
AnyFixedRefFrame &ref2 = ....Environment.GlobalRef;
Type = RotVector;
};
AnyKinLinear RightFootLinMeasure = {
AnySeg &ref1=..LegR.Seg.Foot;
AnyFixedRefFrame &ref2 = ....Environment.GlobalRef;
};
};
MannequinLoads.Right = {
AnyForce3D Hip = {
AnyRefNode &ApplPoint = .rhm.Leg.Seg.Thigh.HipJoint;
F = .locmql.Hip;
};
AnyForce3D Knee = {
AnyRefNode &ApplPoint = .rhm.Leg.Seg.Thigh.KneeJoint;
F = .locmql.Knee;
};
AnyForce3D Ankle = {
AnyRefNode &ApplPoint = .rhm.Leg.Seg.Foot.AnkleJoint;
F = .locmql.Ankle;
};
};