View Single Post
  #5  
Old 04-17-2018, 10:36 AM
So_Any So_Any is offline
Member
 
Join Date: May 2015
Posts: 46
Default

I defined the only force plate I have in my C3D in ForcePlates.any as follows:

Main.EnvironmentModel.ForcePlates =
{

ForcePlateAutoDetectionPlate1(
PLATE_NO=1,
HeightTolerance=0.07,
VelThreshold=2.2,
FORCEPLATE_TYPE=2,
ALLOW_MULTI_LIMB_CONTACT=OFF
)={};

// ForcePlateAutoDetection Plate2(
// PLATE_NO=2,
// HeightTolerance = 0.07,
// VelThreshold = 2.2,
// FORCEPLATE_TYPE = 4,
// ALLOW_MULTI_LIMB_CONTACT = OFF
// ) = { };

// ForcePlateAutoDetection Plate3 (
// PLATE_NO=3,
// HeightTolerance = 0.07,
// VelThreshold = 2.2,
// FORCEPLATE_TYPE = 4,
// ALLOW_MULTI_LIMB_CONTACT = OFF
// ) = { };
};

In my ForcePlateAutoDetection.any file, here is what I have (I added the number of the line into bracket for reading purposes, but they are not present in the any file):

[ligne 33] AnyMessagePlateTypeCheck={
[ligne 34] AnyInttest=neqfun(.ForcePlateType,FORCEPLATE_TYPE);
[ligne 35] TriggerPreProcess=test;
[ligne 36] Type=MSG_ErrorFatal;
[ligne 37] Message=strformat("AnyMOCAP:Wrongforceplatetype:\n "+
[ligne 38] "C3Dfilereportsforceplateasbeeingtype"+
[ligne 39] strval(C3D_OBJECT.Groups.FORCE_PLATFORM.TYPE.Data[PLATE_NO-1])+[ligne 40] "nottype:"+strval(FORCEPLATE_TYPE));
[ligne 41] };
Reply With Quote