Problems with ForcePlates

Hey!
I just wanted to include a KistlerForcePlate.
when i try to load the model the following error occurs:

ERROR(SCR.PRS11) : C:/Users/Sina/D…s/neu/Input/ForcePlates.any(1) : ‘(’ unexpected
Model loading skipped

When i looked up the environment file in other examples, the ‘(’ is used the right way. I would be happy if someone is able to help me!

Hi,

  1. In your main file, you should include the class template files before the ‘Main’ folder starts:
#include "ForcePlateType2.any"
#include "ForcePlateType2AutoDetection.any"

This is the reason of why you could see the error.

  1. In your ‘ForcePlates.any’ file, you tried to use the class template like this:
    ForcePlateType2AutoDetection FORCE_PLATFORM (
    PlateName = FORCE_PLATFORM,
    Folder =Main.ModelSetup.C3DFileData,
    Limb1=  .BodyModelRef.Right.Leg.Seg.Foot,
    Limb2=  .BodyModelRef.Left.Leg.Seg.Foot,
    No=0,
    VerticalDirection ="Y",
    HeightTolerance=0.07,
    VelThreshold=2.2,
    Fx=Main.ModelSetup.C3DFileData.Analog.DataFiltered.Fx1,
    Fy=Main.ModelSetup.C3DFileData.Analog.DataFiltered.Fy1,
    Fz=Main.ModelSetup.C3DFileData.Analog.DataFiltered.Fz1,
    Mx=Main.ModelSetup.C3DFileData.Analog.DataFiltered.Mx1,
    My=Main.ModelSetup.C3DFileData.Analog.DataFiltered.My1,
    Mz=Main.ModelSetup.C3DFileData.Analog.DataFiltered.Mz1,
    FootPresent=HumanModelPresent)
    ={
//      Cal=Main.ModelSetup.C3DFileData.Groups.FORCE_PLATFORM.CAL_MATRIX.Data[0];
//      Switch_DrawForceVectorFromCOP = On;
    };

This class template will try to detect whether a foot is on the force plate or not. For this process, we assumed that there are HeelContactNodeLow and ToeLateralContactNode nodes in the foot.

But it seems that you try to use your own segment definitions. So you may have to modify this force plate class template to work with your own segment definitions.

I would suggest you to use our normal MoCap model.
Also it seems that you want to optimize the hip location.
That can be also implemented by using our MoCap model.

Best regards,
Moonki

Thank you! I’ll try that!

Hello again,

I folowed your recommendations on changing the Segments. That worked out. but in the next step the error:

ERROR(SCR.SCN18) : C:/Users/si…d/D…s/neu/Input/ForcePlates.any(13) : ‘VerticalDirection’ : Unknown Class Template argument.
Model loading skipped

occures. I gess that because AnyBody can’t find the Information about the vertical direction in my C3D file…but i can’t solve it.

I’m using Version 6.0

I know you also recommended using the MoCap Model, but I want to habe more degrees of freedom in die Knee and ankle joints, and the Mocap model doesn’t wand to have me changed that…

Hi Sina,

I had a look at your model and found several bugs in there. The class templates ForcePlateType2 and ForcePlateType2AutoDetection require different input, ForcePLateType2 will not ask for the Vertical direction.

This here will work for the forceplate, but there will be many more error messages coming up:

ForcePlateType2 FORCE_PLATFORM1 (
PlateName = Plate1,
Folder =Main.MyModel.C3D,
Limb= Main.MyModel.Segments.Limb.Right.Foot,
No=0,
Fx=Main.MyModel.C3D.Analog.DataFiltered.Fx1,
Fy=Main.MyModel.C3D.Analog.DataFiltered.Fy1,
Fz=Main.MyModel.C3D.Analog.DataFiltered.Fz1,
Mx=Main.MyModel.C3D.Analog.DataFiltered.Mx1,
My=Main.MyModel.C3D.Analog.DataFiltered.My1,
Mz=Main.MyModel.C3D.Analog.DataFiltered.Mz1 )
={
};

Thank you for that hint! I was able to sort out all error messages and no it runs! :slight_smile: