Switch to unified view

a b/Tests/Symmetry/test_TrunkNeckArmDynamicSymmetryCheck.Main.any
1
2
#define ANYBODY_PATH_OUTPUT "."
3
4
5
6
#include "libdef.any"
7
8
// ----------------------------------------------------------
9
// Model configuration:
10
// For more info on body model configuration options please load the model and double click on: 
11
// #path HTML_DOC "<AMMR_PATH_DOC>/bm_config/index.html"
12
// ----------------------------------------------------------
13
14
15
#define BM_LEG_RIGHT OFF
16
#define BM_LEG_LEFT OFF
17
18
19
#define BM_SCALING _SCALING_LENGTHMASSFAT_
20
#define BM_TRUNK_LUMBAR_MUSCLES OFF  
21
#define BM_TRUNK_CERVICAL_MUSCLES ON
22
// Use interpolation drivers to define motion
23
#define DriverSelection "FreePostureMove"
24
25
// actual model  
26
#include "DynamicTest/FreePostureFullBodyStatic.Main.any" 
27
Main = {
28
  
29
  
30
  Main.HumanModel.Anthropometrics.SegmentDimensions.HeadHeight = 0.13;
31
  Main.HumanModel.Anthropometrics.SegmentDimensions.TrunkHeight = 0.58;
32
  Main.HumanModel.Anthropometrics.SegmentDimensions.PelvisWidth = 0.18;
33
  
34
  Main.HumanModel.Anthropometrics.SegmentDimensions.Right.UpperArmLength = 0.35;
35
  Main.HumanModel.Anthropometrics.SegmentDimensions.Right.LowerArmLength = 0.35;
36
  Main.HumanModel.Anthropometrics.SegmentDimensions.Right.HandLength = 0.15;
37
  Main.HumanModel.Anthropometrics.SegmentDimensions.Right.HandBreadth = 0.15;
38
  
39
  Main.HumanModel.Anthropometrics.SegmentDimensions.Left.UpperArmLength = 0.35;
40
  Main.HumanModel.Anthropometrics.SegmentDimensions.Left.LowerArmLength = 0.35;
41
  Main.HumanModel.Anthropometrics.SegmentDimensions.Left.HandLength = 0.15;
42
  Main.HumanModel.Anthropometrics.SegmentDimensions.Left.HandBreadth = 0.15;  
43
44
  Main.Study ={
45
    
46
    AnyInt test1= assert(ltfun(Main.Study.SymmetryCheck.Trunk.MuscleCervical.Comparison.MaxFtDif,0.2),
47
    "Trunk model symmetry");
48
    
49
    AnyInt test2= assert(ltfun(Main.Study.SymmetryCheck.Arm.Muscle.Comparison.MaxFtDif,0.2),
50
    "Arm model symmetry");
51
52
  };
53
  
54
  
55
  AnyOperation& RunTest = Main.RunApplication;
56
};
57