From 299ba68178a935bb11aaac4051812e9b4ee07684 Mon Sep 17 00:00:00 2001 From: Morten Lund Date: Sun, 27 Mar 2022 22:32:12 +0200 Subject: [PATCH] Add example of text based forceplate data --- .../Subjects/S1/S01_Trial01/Main.any | 20 +++++ .../S1/S01_Trial01/TextForcePlateData.any | 74 +++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/TextForcePlateData.any diff --git a/Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/Main.any b/Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/Main.any index 6dae55763..6cd4c4c52 100644 --- a/Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/Main.any +++ b/Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/Main.any @@ -15,3 +15,23 @@ // Include the AnyMoCap Framwork #include "" + +Main = { + + #include "TextForcePlateData.any" + + Main.EnvironmentModel.ForcePlates = { + ForcePlateAutoDetection Plate1( + PLATE_NO=1, + LIMB1 = Main.HumanModel.BodyModel.Right.Leg.Seg.Foot, + LIMB2 = Main.HumanModel.BodyModel.Left.Leg.Seg.Foot, + HeightTolerance = 0.07, + VelThreshold = 2.2, + FORCEPLATE_TYPE = 4, + ALLOW_MULTI_LIMB_CONTACT = OFF + ) = { }; + }; + + + +}; \ No newline at end of file diff --git a/Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/TextForcePlateData.any b/Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/TextForcePlateData.any new file mode 100644 index 000000000..11435f36f --- /dev/null +++ b/Application/MocapExamples/BVH_Xsens/Subjects/S1/S01_Trial01/TextForcePlateData.any @@ -0,0 +1,74 @@ +Main.ModelSetup.C3DFileData = { + + + AnyFloat PointsScaleFactor = 0.001; + + AnyString AnalogLabels = {"Fx1", "Fy1", "Fz1", "Mx1", "My1", "Mz1", "Fx2", "Fy2", "Fz2", "Mx2", "My2", "Mz2", "Fx3", "Fy3", "Fz3", "Mx3", "My3", "Mz3"}; + + Header = { + AnyIntVar NoAnalogSamplesPer3DFrame = 10; + }; + + AnyFolder Groups = { + AnyFolder FORCE_PLATFORM = { + + AnyFolder USED = { + AnyIntVar Data = 3; + }; + AnyFolder TYPE = { + AnyInt Data = {4,4,4}; + }; + AnyFolder CORNERS = { + AnyFloat Data = { + {{493.65, -22.719, -447.433}, {492.871, -23.7673, 4.51691}, {-6.18936, -24.9433, 2.48103}, {-4.46875, -23.4108, -449.314}}, + {{1256.41, -13.532, -679.267}, {1252.38, -14.1924, -229.51}, {758.888, -20.2354, -231.383}, {758.717, -20.3881, -681.816}}, + {{2019.84, -6.26821, -449.165}, {2016.89, -7.06327, 4.60202}, {1523.75, -13.716, 1.21542}, {1522.12, -13.0173, -448.928}} + }; + }; + AnyFolder ORIGIN = { + AnyFloat Data = { + {1.0, -0.76, -39.0}, + {1.0, -0.12, -36.0}, + {1.0, -0.28, -39.0} + }; + }; + AnyFolder CHANNEL = { + AnyInt Data = {{1, 2, 3, 4, 5, 6}, {7, 8, 9, 10, 11, 12}, {13, 14, 15, 16, 17, 18}}; + }; + AnyFolder CAL_MATRIX = { + AnyFloat Data = {{{2.943, -0.027, -0.021, 0.0, 0.0, 4.0}, {0.035, 2.972, 0.003, 0.0, -1.0, -1.0}, {0.021, 0.019, 11.509, 0.0, 0.0, -4.0}, {-0.029, -0.005, -0.004, 1524.0, 6.0, 1.0}, {-0.041, 0.011, 0.008, -5.0, 1523.0, -1.0}, {-0.005, 0.015, 0.013, -1.0, 2.0, 743.0}}, {{2.946, -0.01, 0.017, 0.0, -4.0, 2.0}, {0.026, 2.963, -0.013, -4.0, -1.0, 4.0}, {0.06, -0.059, 11.556, 0.0, 0.0, -5.0}, {-0.048, 0.111, -0.023, 1538.0, 6.0, 2.0}, {-0.01, 0.064, -0.032, -3.0, 1541.0, -7.0}, {0.006, -0.003, 0.043, -4.0, 10.0, 751.0}}, {{1.522, 0.007, 0.012, 0.0, -1.0, -1.0}, {-0.006, 1.521, 0.005, -1.0, 0.0, 1.0}, {0.005, -0.007, 5.944, 0.0, 0.0, -1.0}, {-0.007, -0.001, 0.022, 608.0, 2.0, -3.0}, {0.0, 0.0, 0.001, 1.0, 610.0, 0.0}, {-0.002, 0.004, 0.005, -1.0, 1.0, 305.0}}}; + }; + }; + + }; //GROUPS + + AnyFolder Analog = { + AnyFolder DataFiltered = { + AnyFloat Fx1 = 0*iarr(1,36970); + AnyFloat Fy1 = 0*iarr(1,36970); + AnyFloat Fz1 = 0*iarr(1,36970); + AnyFloat Mx1 = 0*iarr(1,36970); + AnyFloat My1 = 0*iarr(1,36970); + AnyFloat Mz1 = 0*iarr(1,36970); + }; + + + + }; + + + + + + + + + + + + + + + + +}; \ No newline at end of file