[770c98]: / Tests / Symmetry / DynamicTest / Model / InterpolationDrivers / LeftLegTDDrivers.any

Download this file

44 lines (34 with data), 1.3 kB


  // ************************************
  // Drivers for the Left leg
  // ************************************
  
  //Left hip driver
  AnyKinEqInterPolDriver HipDriverLeft={
   AnyKinMeasure& ref1 =...BodyModel.Interface.Left.HipFlexion;
   AnyKinMeasure& ref2 =...BodyModel.Interface.Left.HipExternalRotation;
   AnyKinMeasure& ref3 =...BodyModel.Interface.Left.HipAbduction;
   Data= pi/180*{
      .JntPos.Left.HipFlexionVec,
      .JntPos.Left.HipExternalRotationVec,
      .JntPos.Left.HipAbductionVec
    };    
 T=.JntPos.Left.HipTime;
    Type=Bspline;
    
    Reaction.Type={Off,Off,Off};
  };
  
  //Knee driver
  AnyKinEqInterPolDriver KneeDriverLeft={
   AnyKinMeasure& Knee =...BodyModel.Interface.Left.KneeFlexion;
     Data=pi/180*{.JntPos.Left.KneeFlexionVec};  
 T=.JntPos.Left.KneeTime;
    Type=Bspline;
      Reaction.Type={Off};
    };
  

  
 
//Ankle driver
  AnyKinEqInterPolDriver AnkleDriverLeft={
   AnyKinMeasure& ref1=...BodyModel.Interface.Left.AnklePlantarFlexion;
   AnyKinMeasure& ref2=...BodyModel.Interface.Left.SubTalarEversion;
     Data = pi/180*{.JntPos.Left.AnklePlantarFlexionVec,.JntPos.Left.SubTalarEversionVec};  
 T=.JntPos.Left.AnkleTime;
    Type=Bspline;
    Reaction.Type={Off,Off};
  };