[770c98]: / Application / Examples / KneeSimulator / Model / Actuators.any

Download this file

33 lines (28 with data), 846 Bytes

AnyFolder Actuators = {
  
  #if USE_RESIDUAL_QUADRICEPS == 1
  AnyReacForce Quadriceps = {
    AnyKinMeasure& ref = ..Model.Joints.Quadriceps_Tendon_PLine_Center;
  };
  AnyVar Actuator_Quadriceps_Magnitude = abs(Quadriceps.Fout[0]);
  #endif  
  
  #if USE_RESIDUAL_HIP_VERTICAL == 1
  AnyReacForce HipVertical = {
    AnyPrismaticJoint& ref = ..Model.Joints.HipPrismatic;
  };  
  #endif
  
  #if USE_RESIDUAL_HIP_REVOLUTE == 1
  AnyReacForce HipRevolute= {
    AnyRevoluteJoint& ref = ..Model.Joints.HipRevolute;
  }; 
  #endif
  
  #if USE_RESIDUAL_ANKLE_FLEXION == 1
  AnyReacForce AnkleFlexion = {
    AnyKinMeasure& ref = ..Model.Joints.AnkleRevolute1 ;
  };
  #endif
  
  #if USE_RESIDUAL_ANKLE_ML == 1
  AnyReacForce AnkleML = {
    AnyKinMeasure& ref = ..Model.Joints.AnklePrismatic ;
  };  
  #endif
};