Hi Søren,
Thanks for your replies, I have made progress but have become stuck on the following parts:
I used FreePostureFullBodyStatic.Main.any, with DriverSelection “FreePostureMove”. I have been editing the MannequinInterpolation.any file, and have declared the following in the code:
[i] AnyInputFile JointAngles =
{
FileName = “JointArrayData.txt”;
};
AnyVector TimeSerie = JointAngles.T;
AnyVector LKneeArray = JointAngles.Data[0];
AnyVector RKneeArray = JointAngles.Data[1];
AnyVector LHipArray = JointAngles.Data[2];
AnyVector RHipArray = JointAngles.Data[3];
AnyVector ZeroArray = JointAngles.Data[4];[/i]
1. How do I declare the above globally without having to copy and paste the above code into every AnyFolder in the MannequinInterpolation.any file?
I have locked all segments using ZeroArray which is just an array filled with zeros (the same size as the other vectors).
I have made modifications in the required AnyFolder’s, for example:
in the Left folder:
AnyVector HipFlexionVec = LHipArray;
AnyVector HipAbductionVec = ZeroArray;
AnyVector HipExternalRotationVec = ZeroArray;
I have declared TimeSeries as the following:
AnyVector TimeSerie = JointAngles.T;
When I load the model, it does so without problem.
2. The problem is that when I run Kinematic analysis, the model does not move in the whole range of trajectories that is specified in the text file. Why is this?
I have attached the text file, JointArrayData.txt, which I have used in the above code. The columns are specified in the code I pasted above. First column is the TimeSerie, the next columns are, respectively: LKneeArray, RKneeArray, LHipArray, RHipArray (knee joint angles and hip flexion angles in degrees)
I also have attached the MannequinInterpolation.any file I have been editing.
Kind regards,
Jared