[770c98]: / Application / Examples / SeatedHumanFullWithNeck / Model / MannequinValuesFromModel.any

Download this file

78 lines (56 with data), 4.2 kB

AnyFolder MannequinValuesFromModel = {
  
  AnyFolder &FolderRef=Main.Model.BodyModel.Interface;
  AnyFolder AnyFolder_Posture = {
    //This controls the position of the pelvi wrt. to the global reference frame
    AnyVar AnyVar_PelvisPosX=.FolderRef.Trunk.PelvisPosX.Pos[0];
    AnyVar AnyVar_PelvisPosY=.FolderRef.Trunk.PelvisPosY.Pos[0];
    AnyVar AnyVar_PelvisPosZ=.FolderRef.Trunk.PelvisPosZ.Pos[0];
    
    //This controls the rotation of the pelvis wrt. to the global reference frame
    AnyVar AnyVar_PelvisRotX=.FolderRef.Trunk.PelvisRotX.Pos[0]*180/pi;
    AnyVar AnyVar_PelvisRotY=.FolderRef.Trunk.PelvisRotY.Pos[0]*180/pi;
    AnyVar AnyVar_PelvisRotZ=.FolderRef.Trunk.PelvisRotZ.Pos[0]*180/pi;   
    
    // These variables control the rotation of the thorax wrt the
    // pelvis    
    AnyVar AnyVar_PelvisThoraxExtension=.FolderRef.Trunk.PelvisThoraxExtension.Pos[0]*180/pi; 
    AnyVar AnyVar_PelvisThoraxLateralBending=.FolderRef.Trunk.PelvisThoraxLateralBending.Pos[0]*180/pi; 
    AnyVar AnyVar_PelvisThoraxRotation=.FolderRef.Trunk.PelvisThoraxRotation.Pos[0]*180/pi;        
    
    AnyVar AnyVar_NeckExtension=0; 
    
    AnyFolder AnyFolder_Right = {
      //Arm 
      AnyVar AnyVar_SternoClavicularProtraction=..FolderRef.Right.SternoClavicularProtraction.Pos[0]*180/pi;
      AnyVar AnyVar_SternoClavicularElevation=..FolderRef.Right.SternoClavicularElevation.Pos[0]*180/pi;  
      
      AnyVar AnyVar_GlenohumeralFlexion =..FolderRef.Right.GlenohumeralFlexion.Pos[0]*180/pi; 
      AnyVar AnyVar_GlenohumeralAbduction = ..FolderRef.Right.GlenohumeralAbduction.Pos[0]*180/pi; 
      AnyVar AnyVar_GlenohumeralExternalRotation = ..FolderRef.Right.GlenohumeralExternalRotation.Pos[0]*180/pi; 
      
      AnyVar AnyVar_ElbowFlexion = ..FolderRef.Right.ElbowFlexion.Pos[0]*180/pi;
      AnyVar AnyVar_ElbowPronation = ..FolderRef.Right.ElbowPronation.Pos[0]*180/pi;
      
      AnyVar AnyVar_WristFlexion =..FolderRef.Right.WristFlexion.Pos[0]*180/pi;
      AnyVar AnyVar_WristAbduction =..FolderRef.Right.WristAbduction.Pos[0]*180/pi;
      //Leg
      AnyVar AnyVar_HipFlexion = ..FolderRef.Right.HipFlexion.Pos[0]*180/pi; 
      AnyVar AnyVar_HipAbduction = ..FolderRef.Right.HipAbduction.Pos[0]*180/pi; 
      AnyVar AnyVar_HipExternalRotation = ..FolderRef.Right.HipExternalRotation.Pos[0]*180/pi;
      
      AnyVar AnyVar_KneeFlexion = ..FolderRef.Right.KneeFlexion.Pos[0]*180/pi; 
      
      AnyVar AnyVar_AnklePlantarFlexion =..FolderRef.Right.AnklePlantarFlexion.Pos[0]*180/pi; 
      AnyVar AnyVar_AnkleEversion =..FolderRef.Right.AnkleEversion.Pos[0]*180/pi; 
      
    };
    
    AnyFolder AnyFolder_Left = {
      AnyVar AnyVar_SternoClavicularProtraction=..FolderRef.Left.SternoClavicularProtraction.Pos[0]*180/pi;
      AnyVar AnyVar_SternoClavicularElevation=..FolderRef.Left.SternoClavicularElevation.Pos[0]*180/pi;  
      
      AnyVar AnyVar_GlenohumeralFlexion =..FolderRef.Left.GlenohumeralFlexion.Pos[0]*180/pi; 
      AnyVar AnyVar_GlenohumeralAbduction = ..FolderRef.Left.GlenohumeralAbduction.Pos[0]*180/pi; 
      AnyVar AnyVar_GlenohumeralExternalRotation = ..FolderRef.Left.GlenohumeralExternalRotation.Pos[0]*180/pi; 
      
      AnyVar AnyVar_ElbowFlexion = ..FolderRef.Left.ElbowFlexion.Pos[0]*180/pi;
      AnyVar AnyVar_ElbowPronation = ..FolderRef.Left.ElbowPronation.Pos[0]*180/pi;
      
      AnyVar AnyVar_WristFlexion =..FolderRef.Left.WristFlexion.Pos[0]*180/pi;
      AnyVar AnyVar_WristAbduction =..FolderRef.Left.WristAbduction.Pos[0]*180/pi;
      //Leg
      AnyVar AnyVar_HipFlexion = ..FolderRef.Left.HipFlexion.Pos[0]*180/pi; 
      AnyVar AnyVar_HipAbduction = ..FolderRef.Left.HipAbduction.Pos[0]*180/pi; 
      AnyVar AnyVar_HipExternalRotation = ..FolderRef.Left.HipExternalRotation.Pos[0]*180/pi;
      
      AnyVar AnyVar_KneeFlexion = ..FolderRef.Left.KneeFlexion.Pos[0]*180/pi; 
      
      AnyVar AnyVar_AnklePlantarFlexion =..FolderRef.Left.AnklePlantarFlexion.Pos[0]*180/pi; 
      AnyVar AnyVar_AnkleEversion =..FolderRef.Left.AnkleEversion.Pos[0]*180/pi; 
      
    };
  };
};