[quote=aalmunajjed;13746]Damon,
1: the error message is longer then just “Model loading skipped”. In the lines before, you get exactly told why the Model wasn’t loaded and what the error is.
It looks like you included the InverseDynamicsStudy form the Motion Optimization. You have to include the real inverseDynamics Study. Something like:
Main.Studies.InverseDynamicStudy.InverseDynamics.Criterion.Type
And then you have to run the InverseDynamics study, switch 1 and 0 at the beginning of the GaitFulBody file.
2: where did you include the AnyForceMomentMeasure2? You will find the data for the graph in the folder, where you included the script, e.g. if you have it in the InverseDynamicsStudy you will find it in Main.Study.InverseDynamicsStudy!
[/quote=dstambolian]
Hi Amir
1: Is seems to be working now, thanks. I did get an error after completing the AnyOperation selected from Marco: InverseDynamics(64:64): Step Started. Here is the error message.
[SIZE=1]
7.0) Inverse dynamic analysis…
[SIZE=1][COLOR=#0000ff]ERROR(OBJ.MCH.MUS4)[/SIZE] : [SIZE=1]C:/U…s/DB/D…s/A…s/A…3/A…n/A…n/G…1/GaitFullBody.main.any[/SIZE] : [SIZE=1]InverseDynamicStudy.InverseDynamics[/SIZE] : Muscle recruitment solver : maximum number of setbacks occured
[/SIZE]
When I click on the GaitFullBocy.main.any error link the cursor goes to the beginning of this code. What does this error mean?
[SIZE=3]AnyBodyStudy[/SIZE] InverseDynamicStudy = {
[SIZE=3]AnyFolder[/SIZE] &C3DData=…ModelSetup.C3DFileData ;
[SIZE=3]AnyFolder[/SIZE] &HumanModel=.HumanModel.BodyModel;
[SIZE=3]#include[/SIZE] “Mannequin.any”
[SIZE=3]//Environment around the human
[/SIZE][SIZE=3]AnyFolder[/SIZE] EnvironmentModel ={
[SIZE=3]AnyFolder[/SIZE] DrawC3DMarkers = {};
[SIZE=3]//Model of the floor and force plates this is where the force plates are defined
[/SIZE][SIZE=3]AnyFolder[/SIZE] &HumanModelRef=…HumanModel.BodyModel;
[SIZE=3]//This environment file makes use of automatic detecteion of which foot are incontact with which plate
[/SIZE][SIZE=3]#include[/SIZE] “EnvironmentAutoDetection.any”
[SIZE=3]//This environment file has no automatic detecteion of which foot are incontact with which plate it has to be set manually
[/SIZE][SIZE=3]//#include “Environment.any”
[/SIZE]};
[SIZE=3]//Connection between environment and the human
[/SIZE][SIZE=3]AnyFolder[/SIZE] ModelEnvironmentConnection = {
[SIZE=3]//Drivers for the model
[/SIZE][SIZE=3]#include[/SIZE] “JointsAndDriversOptimized.any”
};
[SIZE=3]//This is where to change the Optimization to min/max. It is polynomial degree 3 by default
[/SIZE]
InverseDynamics.Criterion.UpperBoundOnOff=Off;
nStep=Main.ModelSetup.nStep;
Gravity ={0,0,-9.81};
tStart = Main.TrialSpecificData.tStart+2Kinematics.ApproxVelAccPerturb;
tEnd = Main.TrialSpecificData.tEnd-2Kinematics.ApproxVelAccPerturb;
Main.Studies.InverseDynamicStudy.InverseDynamics.Criterion.Type = MR_MinMaxStrict;
[SIZE=3]//This will give you the L5S reaction without any muscle forces.
[/SIZE]
[SIZE=3]AnyForceMomentMeasure2[/SIZE] L5Sacrum = {
[SIZE=3]AnyRefNode[/SIZE] &ref = Main.Studies.HumanModel.BodyModel.Trunk.SegmentsLumbar.SacrumSeg;
[SIZE=3]AnySeg[/SIZE] &seg1=Main.Studies.HumanModel.BodyModel.Trunk.SegmentsLumbar.L5Seg;
[SIZE=3]AnySeg[/SIZE] &seg2= Main.Studies.HumanModel.BodyModel.Trunk.SegmentsLumbar.SacrumSeg;
[SIZE=3]AnyReacForce[/SIZE] &jnt= Main.Studies.HumanModel.BodyModel.Trunk.JointsLumbar.L5SacrumJnt;
[SIZE=3]AnyVec3[/SIZE] Mlocal=Mref.Axes;
[SIZE=3]AnyVec3[/SIZE] Flocal=Fref.Axes;
};
[SIZE=3]//#include “GCDOutput.any”
[/SIZE]};
[SIZE=3]//This study is only used for loading the optimized parameters
[/SIZE][SIZE=3]AnyOptKinStudy[/SIZE] LoadParametersOptimizationResults = {
[SIZE=3]AnyFolder[/SIZE] &Study = .InverseDynamicStudy;
ParameterOptimization.ConvergenceTol=1e-3;
Analysis = {
[SIZE=3]AnyOperation[/SIZE] &ref = .Study.Kinematics;
};
};
[SIZE=3]#endif
[/SIZE]};
[/COLOR]
2: I put the [SIZE=3][COLOR=#0000ff]AnyForceMomentMeasure2 [/SIZE]code in the same inverse dynamics study just under where I added in the min/max criterion, (see above code). So just as you said the folders are in… Main.InverseDynamicsStudy.Output.L5Sacrum… awsome![/COLOR]
Under L5Sacrum folder is: F(graph), M(graph), ref(folder), seg1(folder), seg2(folder), jnt(folder), Mlocal(graph), and Flocal(graph). The graphs are empty in F, M, Llocal, and Flocal; and i didn’t see anything that looked like a force/moment graph in the folders.
Why would these graphs be empty?, And which one of these sub folders or graphs should show the forces/moments?
Thank you very much,