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

Download this file

76 lines (53 with data), 1.7 kB

/* ----------------------------------------------------------------
Drivers for the model:

-The pelvis is locked to the ground 
-The remaining degrees of freedom are controlled by parameters in the mannequin.any file.
-This file is a good way to get an overview of the dof in the full body model
 all the dof in the body model is driven from this file.
-In total 

Soeren, March 1, 2006.
----------------------------------------------------------------  */

AnyFolder Drivers = {

  #include "<ANYBODY_PATH_BODY>/BodyModels/include/MannequinDrivers.any"

  // Aliases for convenient referencing
  AnyFolder &JntPos=..Mannequin.Posture;  
  AnyFolder &JntVel=..Mannequin.PostureVel;  
  
  AnyFolder &RefHM = Main.Model.HumanModel;
   
//  AnyFolder &Thorax = .HumanModel.Trunk.SegmentsThorax.ThoraxSeg;
//  AnyFolder &ref=.HumanModel.Trunk;
  
  
  // The body parts are included only if there is no unhallowed combination detected
  #ifdef UNHALLOWED_COMBINATION
  #else
  
  #include "TrunkDrivers.any"
  
  #if RIGHT_ARM == 1
  #include "RightArmDrivers.any"
    #if RIGHT_DETAILLED_HAND == 1
    #include "RightHandDrivers.any"
    #endif
  #else
  #endif
  
  
  #if LEFT_ARM == 1
  #include "LeftArmDrivers.any"
    #if LEFT_DETAILLED_HAND == 1
    #include "LeftHandDrivers.any"
    #endif
  #else
  #endif
  
  
  #if RIGHT_LEG == 1
  #include "RightLegDrivers.any"
  #else
  #endif
  
  
  #if LEFT_LEG == 1
  #include "LeftLegDrivers.any"
  #else
  #endif
  
  
  #if RIGHT_LEG_TD == 1
  #include "RightLegTDDrivers.any"
  #else
  #endif
  
  
  #if LEFT_LEG_TD == 1
  #include "LeftLegTDDrivers.any"
  #else
  #endif
  
  #endif
};//Drivers