Hi,
I am trying to use AnyOutputFile to export the results in a csv file in the Plug-in-gait_Simple. There are two problems:
- Joint angle is fine, but velocity, moment, and reaction data are exported as zero in the csv file, while they are not.
- How can I add all of the item for example in this folder: Main.HumanModel.BodyModel.SelectedOutput.Right.Leg.JointReactionForce
Here is the code:
AnyOutputFile MyResult =
{
FileName = TEMP_PATH+"/"+"MyResult.csv";
NumberFormat = {
Digits = 15;
Width = 22;
Style = ScientificNumber;
};
SepSign = ",";
LineSepSign = "";
AnyVector AnklePlantarFlexionAngle = ..BodyModel.Interface.Right.AnklePlantarFlexion.Pos;
AnyVector SubTalarEversionAngle = ..BodyModel.Interface.Right.SubTalarEversion.Pos;
AnyVector AnklePlantarFlexionVelocity = ..BodyModel.Interface.Right.AnklePlantarFlexion.Vel;
AnyVector SubTalarEversionVelocity = ..BodyModel.Interface.Right.SubTalarEversion.Vel;
AnyFloat AnkleMoment = Main.HumanModel.BodyModel.SelectedOutput.Right.Leg.JointMomentMeasure.AnklePlantarFlexion;
AnyFloat AnkleForce = Main.HumanModel.BodyModel.Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout;
};