|
a |
|
b/Tests/AnyMocap/Test_BVH.any |
|
|
1 |
//ignore_errors = ['FileReader.FileName',"Orientation close to Gimbal Lock"] |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
#include "../libdef.any" |
|
|
5 |
|
|
|
6 |
#path MOCAP_PATH_MAINFILEDIR "<ANYMOCAP_EXAMPLES>\BVH_Xsens\Subjects\S1\S01_Trial01" |
|
|
7 |
#path MOCAP_PATH_MAINFILE "<MOCAP_PATH_MAINFILEDIR>/Main.any" |
|
|
8 |
#define MOCAP_NAME_MAINFILEDIR "S01_Trial01" |
|
|
9 |
|
|
|
10 |
|
|
|
11 |
#ifdef TEST_NAME |
|
|
12 |
#define MOCAP_TEST_FILENAME_PREFIX TEST_NAME + "_" |
|
|
13 |
#else |
|
|
14 |
#define MOCAP_TEST_FILENAME_PREFIX "GUI1_" |
|
|
15 |
#endif |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
//// Run Analysis with a reduced number of time steps |
|
|
19 |
//// to make test go faster. |
|
|
20 |
//#define N_STEP_PARAM_OPT 10 |
|
|
21 |
//#define N_STEP_KINEMATICS 197 |
|
|
22 |
#define N_STEP 20 |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
#include "<MOCAP_PATH_MAINFILE>" |
|
|
27 |
|
|
|
28 |
Main = |
|
|
29 |
{ |
|
|
30 |
AnyOperationSequence TestRunApplication = |
|
|
31 |
{ |
|
|
32 |
// AnyOperation& BVH_StickFigure = Main.Studies.BVH_StickFigure.Kinematics; |
|
|
33 |
AnyOperation& RunAnalysis = Main.RunAnalysis; |
|
|
34 |
}; |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
#ifndef CREATE_IMAGE |
|
|
38 |
AnyOperation& RunTest = Main.TestRunApplication; |
|
|
39 |
#else |
|
|
40 |
#include "../Cameras.any" |
|
|
41 |
AnyOperationSequence CameraInitPos = { |
|
|
42 |
AnyOperation& ref0 = Main.Studies.MarkerTracking.Kinematics; |
|
|
43 |
AnyOperation& ref1 = Main.Studies.InverseDynamicStudy.InitialConditions; |
|
|
44 |
Template_OperationUpdateValues UpdateValues = {}; |
|
|
45 |
}; |
|
|
46 |
LoadTimeCam.CameraLookAtPoint = Main.HumanModel.BodyModel.Trunk.SegmentsLumbar.PelvisSeg.r +{0,-0.05,0}; |
|
|
47 |
LoadTimeCam.CameraFieldOfView = DesignVar(2); |
|
|
48 |
LoadTimeCam.CameraDirection = {-1,0.3,1}; |
|
|
49 |
#endif |
|
|
50 |
|
|
|
51 |
}; |