-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLeftFootDrivers.any
More file actions
61 lines (51 loc) · 1.9 KB
/
LeftFootDrivers.any
File metadata and controls
61 lines (51 loc) · 1.9 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
AnyReacForce LeftFootReaction = {
AnyKinLinear LeftFootLinMeasure = {
AnySeg &ref1=...HumanModel.BodyModel.Left.Leg.Seg.Foot;
AnyFixedRefFrame &ref2 = ...Environment.GlobalRef;
};
AnyKinRotational LeftFootRotMeasure = {
AnySeg &ref1=...HumanModel.BodyModel.Left.Leg.Seg.Foot;
AnyFixedRefFrame &ref2 = ...Environment.GlobalRef;
Type = RotVector;
};
};
// Place the Left toe and heel on the ground
AnyKinEqSimpleDriver LToeGroundConstraint ={
AnyKinLinear ToePos = {
AnyFixedRefFrame &Ground = ...Environment.GlobalRef;
AnyRefNode &Ball = ...HumanModel.BodyModel.Left.Leg.Seg.Foot.ToeJoint;
};
MeasureOrganizer = {1}; // Only the y coordinate
DriverPos = {0.0};
DriverVel = {0};
Reaction.Type = {Off}; // Provide ground reaction forces
};
AnyKinEqSimpleDriver LHeelGroundConstraint ={
AnyKinLinear HeelPos = {
AnyFixedRefFrame &Ground = ...Environment.GlobalRef;
#if BM_LEG_MODEL == _LEG_MODEL_LEG_
AnyRefNode &Ball = ...HumanModel.BodyModel.Left.Leg.Seg.Foot.HeelJoint;
#else
AnyRefNode &Ball = ...HumanModel.BodyModel.Left.Leg.Seg.Foot.HeelNode;
#endif
};
MeasureOrganizer = {1}; // Only the y coordinate
DriverPos = {0.0};
DriverVel = {0};
Reaction.Type = {Off}; // Provide ground reaction forces
};
// Position the Ankles Left above the z axis
AnyKinEqSimpleDriver LAnkleX = {
AnyKinLinear AnklePos = {
AnyFixedRefFrame &Ground = ...Environment.GlobalRef;
#if BM_LEG_MODEL == _LEG_MODEL_LEG_
AnyRefNode &Ankle = ...HumanModel.BodyModel.Left.Leg.Seg.Foot.AnkleJoint;
#else
AnyRefNode &Ankle = ...HumanModel.BodyModel.Left.Leg.Seg.Foot.SubTalarJoint;
#endif
};
MeasureOrganizer = {0}; // Only the x coordinate
DriverPos = {0.0};
DriverVel = {0.0};
Reaction.Type = {Off};
};