[38ba34]: / Tools / AnyMocap / Kinematic_GRF_Hip_Drivers.any

Download this file

82 lines (78 with data), 2.3 kB

AnyFolder Hip_Plate2_GRF_Driver = 
{
  AnyKinMeasureOrg Lin_y_LHipGRF= 
  {
    AnyKinLinear lin = 
    {
      AnyRefFrame& ref1 = Main.EnvironmentModel.ForcePlates.Plate2.Kinematic_GRF.Frame;
      AnyRefFrame& ref2 = Main.HumanModel.BodyModel.Left.Leg.Seg.Thigh.HipJoint;
      Ref = 0;
   };
   MeasureOrganizer = {1};
  };
  AnyKinMeasureOrg Lin_y_RHipGRF= 
  {
    AnyKinLinear lin = 
    {
      AnyRefFrame& ref1 = Main.EnvironmentModel.ForcePlates.Plate2.Kinematic_GRF.Frame;
      AnyRefFrame& ref2 = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.HipJoint;
      Ref = 0;
   };
   MeasureOrganizer = {1};
  };
  AnyKinEq DriverLeft =
  {
    AnyVar effect = Pos[0]*WeightPos[0];
    AnyKinMeasure& ref = .Lin_y_LHipGRF;
    CType = {Soft};
    WeightFun = {&Main.EnvironmentModel.ForcePlates.Plate2.Kinematic_GRF.Weight_limb2 };
    Reaction.Type = {Off};
  };
  AnyKinEq DriverRight =
  {
    AnyVar effect = Pos[0]*WeightPos[0];
    AnyKinMeasure& ref = .Lin_y_RHipGRF;
    CType = {Soft};
    WeightFun = {&Main.EnvironmentModel.ForcePlates.Plate2.Kinematic_GRF.Weight_limb1 };
    Reaction.Type = {Off};
  };
};

AnyFolder Hip_Plate1_GRF_Driver = 
{
  AnyKinMeasureOrg Lin_y_LHipGRF = 
  {
    AnyKinLinear lin = 
    {
      AnyRefFrame& ref1 = Main.EnvironmentModel.ForcePlates.Plate1.Kinematic_GRF.Frame;
      AnyRefFrame& ref2 = Main.HumanModel.BodyModel.Left.Leg.Seg.Thigh.HipJoint;
      Ref = 0;
   };
   MeasureOrganizer = {1};
  };
  AnyKinMeasureOrg Lin_y_RHipGRF = 
  {
    AnyKinLinear lin = 
    {
      AnyRefFrame& ref1 = Main.EnvironmentModel.ForcePlates.Plate1.Kinematic_GRF.Frame;
      AnyRefFrame& ref2 = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.HipJoint;
      Ref = 0;
   };
   MeasureOrganizer = {1};
  };
  
  AnyKinEq DriverLeft =
  {
    AnyVar effect = Pos[0]*WeightPos[0];
    AnyKinMeasure& ref = .Lin_y_LHipGRF;
    CType = {Soft};
    WeightFun = {&Main.EnvironmentModel.ForcePlates.Plate1.Kinematic_GRF.Weight_limb2};
    Reaction.Type = {Off};
  };
  AnyKinEq DriverRight =
  {
    AnyVar effect = Pos[0]*WeightPos[0];
    AnyKinMeasure& ref = .Lin_y_RHipGRF;
    CType = {Soft};
    WeightFun = {&Main.EnvironmentModel.ForcePlates.Plate1.Kinematic_GRF.Weight_limb1};
    Reaction.Type = {Off};
  };

};