78 lines (57 with data), 2.7 kB
#include "../libdef.any"
/**
This model shows a model of a push up
The model displays several topics
-Block building techniques
-Include files
-Structuring of models using directories
The positions of the hands can be controlled by chaning variables in the file
Environment.any
Known issues:
1: The model seems to be too weak for the load applied when doing pushups, this is a sign that the shoulder needs more
adjustments before it becomes reliable
*/
Main = {
// ----------------------------------------------------------
// Path to draw settings
// ----------------------------------------------------------
#include "Model/DrawSettings.any"
// ----------------------------------------------------------
// Body Model Configuration
// ----------------------------------------------------------
#include "Model/BodyModelConfiguration.any"
// The Mannequin file specifies load-time positions for all the segments
// in the HumanModel. This is important for the model's ablity to resolve
// all the kinematic constraints when the model is analyzed.
// The mannequin file also drives those degrees of freedom of the human
// model that are not governed by problem-specific drivers at run time.
#include "Model/Mannequin.any"
// Model of the human body to be used for the analysis
#include "<ANYBODY_PATH_BODY>/HumanModel.any"
/// The actual model where all components are assembled
AnyFolder Model ={
/// Body model without default drivers
AnyFolder &BodyModel=.HumanModel.BodyModel;
/// Reference to the mannequin folder (used by drivers)
AnyFolder &Mannequin =.HumanModel.Mannequin;
#include "Model/JointsAndDrivers.any"
#include "Model/Environment.any"
};
//The study: Operations to be performed on the model
AnyBodyStudy Study = {
//This file set the position and orientation of the segments in the model
AnyFolder &Model = .Model;
Gravity = {0.0,-9.81,0.0};
tStart = 0;
tEnd=1;
nStep =21;
//This tolerances determine how agressively the muscles will be removed from the system
//if there is symmetry problems this value should be lowered
// 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 an operation sequence to run all required steps of your application (see Operations tab)
#include "<ANYBODY_PATH_MODELUTILS>\Operations\RunAppSequence.any"
};// Main