Hi.
Now, I am using Mocap model, and GRF data of C3D file.
And I would like to ask the following questions about the application point of force of that.
The code for inputting force at ForcePlateType2AutoDetection Function is shown below.
(C: \ Program Files \ AnyBody Technology \ AnyBody.6.0 \ AMMR \ Body \ AAUHuman \ ToolBox \ Mocap)
[INDENT] #if FootPresent
AnyFolder PlateFootReactions={
AnySeg &ref1=..ForcePlate;
AnySeg &ref2=..Limb2;
AnyMuscleModel &MusMdl=.InContactMuscle;
#include "ArtificialMuscleConnection.any"
};
#endif[/INDENT]
At this time, the Force is inputted at segment. Is the application point of the force the center of the segment?
Looking at C3D raw data, the position of the CoP is not fixed.
However, the CoP ball in the Model View is fixed at the center point of the force plate.
How can I modify this?
The Cop ball code of ForcePlateType2AutoDetection function is as follows.
[INDENT]
AnyFolder CenterOfPressure =
{
AnyForceMomentMeasure2 NetEffectMeasure =
{
AnyRefFrame& ref = …ForcePlate;
AnyForceBase& Forces = …Force;
AnyForceBase& Moments = …Moment;
AnyVec3 Flocal = F*ref.Axes;
AnyVec3 Mlocal = M*ref.Axes;
};
AnyVar fx = NetEffectMeasure.Flocal[0];
AnyVar fy = NetEffectMeasure.Flocal[1];
AnyVar fz = NetEffectMeasure.Flocal[2];
AnyVar mx = NetEffectMeasure.Mlocal[0];
AnyVar my = NetEffectMeasure.Mlocal[1];
AnyVar mz = NetEffectMeasure.Mlocal[2];
AnyVar fzz =iffun(gtfun( (fz^2)^0.5,0),fz,fz+1000000);
AnyVar Vx= -my/fzz;
AnyVar Vy= mx/fzz;
AnyVar Vz= 0;
AnyVar OnOff=.OnOff;
AnyRefFrame& ref_ForcePlate = .ForcePlate;
ref_ForcePlate =
{
AnyDrawSphere COP_ball =
{
RGB = {0,1,0};
ScaleXYZ = 0.015 *{1,1,1};
//Opacity = iffun(gtfun(..fz, -10.0), 0.0, 1.0);
Opacity = ..OnOff;
Position = {..Vx, ..Vy, ..Vz};
};
};
AnyDrawLine Line =
{
p0 = {.Vx, .Vy, .Vz};
p1 = p0+0.004*.OnOff*{.fx, .fy, .fz};
Visible = ..Switch_DrawForceVectorFromCOP ;
AnyRefFrame &ref = ..ForcePlate;
Line.RGB ={0,0,1};
Line.Thickness = 0.01;
Line.End.Thickness = 2*0.01;
Line.End.Length = 4*0.01;
GlobalCoord=Off;
};
}; [/INDENT]
I’m looking forward to any reply.
Thank you.