Code: Select all
outputPaths = StdVectorString();
outputPaths.add('.*')
outs= opensimMoco.analyzeMocoTrajectory(osimModel,solution,outputPaths);
Now to compare GRFs I used:
Code: Select all
contact_r = StdVectorString();
contact_r.add('HCF1_r');
contact_r.add('HCF2_r');
contact_r.add('HCF3_r');
contact_r.add('HCF4_r');
contact_r.add('HCF5_r');
contact_r.add('HCF6_r');
contact_l = StdVectorString();
contact_l.add('HCF1_l');
contact_l.add('HCF2_l');
contact_l.add('HCF3_l');
contact_l.add('HCF4_l');
contact_l.add('HCF5_l');
contact_l.add('HCF6_l');
externalForcesTableFlat = opensimMoco.createExternalLoadsTableForGait(osimModel,solution,contact_r,contact_l);
STOFileAdapter.write(externalForcesTableFlat,'GRF.sto');
Now this one gave me all 0 s for center of pressure. Why? what am I doing wrong? Any inputs?
I have attached all the files. model, GRF table from createExternalLoadsTableForGait, solution which is generated using MocoTrack with state tracking goal.