Switch to unified view

a b/Application/Examples/StandingModelScalingDisplay/Model/RightFootDrivers.any
1
  AnyReacForce RightFootReaction = {
2
    
3
    AnyKinLinear RightFootLinMeasure = {
4
      AnySeg &ref1=...HumanModel.BodyModel.Right.Leg.Seg.Foot;
5
      AnyFixedRefFrame &ref2 = ...Environment.GlobalRef;
6
    };
7
    AnyKinRotational RightFootRotMeasure = {
8
      AnySeg &ref1=...HumanModel.BodyModel.Right.Leg.Seg.Foot;
9
      AnyFixedRefFrame &ref2 = ...Environment.GlobalRef;
10
      Type = RotVector;
11
    };  
12
  };
13
14
15
16
  // Place the right toe and heel on the ground
17
  AnyKinEqSimpleDriver RToeGroundConstraint ={
18
    AnyKinLinear ToePos = {
19
      AnyFixedRefFrame &Ground = ...Environment.GlobalRef;
20
      AnyRefNode &Ball = ...HumanModel.BodyModel.Right.Leg.Seg.Foot.ToeJoint;
21
    };
22
   MeasureOrganizer = {1};  // Only the y coordinate
23
    DriverPos = {0.0};
24
    DriverVel = {0};
25
    Reaction.Type = {Off};   // Provide ground reaction forces
26
  
27
  };
28
  
29
  AnyKinEqSimpleDriver RHeelGroundConstraint ={
30
    AnyKinLinear HeelPos = {
31
      AnyFixedRefFrame &Ground = ...Environment.GlobalRef;
32
      #if BM_LEG_MODEL == _LEG_MODEL_LEG_
33
        AnyRefNode &Ball = ...HumanModel.BodyModel.Right.Leg.Seg.Foot.HeelJoint;
34
      #else
35
        AnyRefNode &Ball = ...HumanModel.BodyModel.Right.Leg.Seg.Foot.HeelNode;
36
      #endif
37
    };
38
    MeasureOrganizer = {1};  // Only the y coordinate
39
    DriverPos = {0.0};
40
    DriverVel = {0};
41
    Reaction.Type = {Off};   // Provide ground reaction forces
42
  };
43
44
  
45
    // Position the Ankles right above the z axis
46
  AnyKinEqSimpleDriver RAnkleX = {
47
    AnyKinLinear AnklePos = {
48
      AnyFixedRefFrame &Ground = ...Environment.GlobalRef;
49
      #if BM_LEG_MODEL == _LEG_MODEL_LEG_
50
        AnyRefNode &Ankle = ...HumanModel.BodyModel.Right.Leg.Seg.Foot.AnkleJoint;
51
      #else
52
        AnyRefNode &Ankle = ...HumanModel.BodyModel.Right.Leg.Seg.Foot.SubTalarJoint;
53
      #endif      
54
    };
55
    MeasureOrganizer = {0};  // Only the x coordinate
56
    DriverPos = {0.0};
57
    DriverVel = {0.0};
58
    Reaction.Type = {Off};
59
  };
60
61