[38ba34]: / Application / Examples / Squat / Squat.main.any

Download this file

55 lines (40 with data), 1.8 kB

#include "..\libdef.any"

#include "<ANYBODY_PATH_MODELUTILS>\FootConnections\CreateFootPrintClass.any"
#include "<ANYBODY_PATH_MODELUTILS>\FootConnections\CreateFootConnectionClasses.any"
#include "<ANYBODY_PATH_AMMR>\Tools\GRFPrediction\FootPlateConditionalContact.any" 

Main = {  
  
  // ----------------------------------------------------------
  // Body Model Configuration
  // ----------------------------------------------------------
  #include "Model/BodyModelConfiguration.any"
  
  #include "Input\Parameters.any"
  
  #include "Model\Mannequin.any"
  
  // Include default human model
  #include "<ANYBODY_PATH_BODY>\HumanModel.any"
  
  AnyFolder Model = 
  {  
    // A link to the human model
    AnyFolder &BodyModel = .HumanModel.BodyModel;
    
    // Environment files are used to include objects surrounding human
    #include "Model\Environment.any"   
    
    AnyFolder ModelEnvironmentConnection = 
    {
      //'JointsAndDrivers.any' file can include all kinematic constraints such as joints and drivers
      #include "Model\JointsAndDrivers.any"
      #include "Model\FootPrintGeneration.any"
      #include "Model\Supports.any"
    };
  };
  
  AnyBodyStudy Study = 
  {
    AnyFolder &Model = .Model;  
    Gravity={0.0, -9.81, 0.0};
    tEnd = ADL_SQUAT_TIME_PERIOD;
    nStep = round(ADL_SQUAT_TIME_PERIOD*ADL_SQUAT_FRAMES_PER_SECOND+1);
    
    // Include functions to generate a video:
    // -> Run `Study.VideoTool.Preview` to preview the camera view.
    // -> Run `Study.VideoTool.Create_Video` to generate video from the analysis.
    #include "Model/CreateVideo.any"
  };
  
  #include "<ANYBODY_PATH_MODELUTILS>\Operations\RunAppSequence.any"   
}; //Main