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

Download this file

45 lines (34 with data), 1.3 kB



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

  
 
//Ankle driver
  AnyKinEqInterPolDriver AnkleDriverRight={
    AnyKinMeasure& ref1=...HumanModel.Interface.Right.AnklePlantarFlexion;
    AnyKinMeasure& ref2=...HumanModel.Interface.Right.AnkleEversion;
    Data = pi/180*{.JntPos.Right.AnklePlantarFlexionVec,.JntPos.Right.SubTalarEversionVec};  
 T=.JntPos.Right.AnkleTime;
    Type=Bspline;
    Reaction.Type={Off,Off};
  };