Download this file

45 lines (34 with data), 1.3 kB



  // ************************************
  // Drivers for the Left leg
  // ************************************
  
  //Left hip driver
  AnyKinEqInterPolDriver HipDriverLeft={
    AnyKinMeasure& ref1 =...HumanModel.Interface.Left.HipFlexion;
    AnyKinMeasure& ref2 =...HumanModel.Interface.Left.HipExternalRotation;
    AnyKinMeasure& ref3 =...HumanModel.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 =...HumanModel.Interface.Left.KneeFlexion;
   
    Data=pi/180*{.JntPos.Left.KneeFlexionVec};  
 T=.JntPos.Left.KneeTime;
    Type=Bspline;
    
    Reaction.Type={Off};
  };    

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