Hi all,
I'm working on the Custom Static Optimization advanced example https://simtk-confluence.stanford.edu:8 ... +in+MATLAB with the provided skeleton code and data. My generalized forces for the lumbar, knee angle beta forces, arms, elbows, pronation/supination, MTPs, and wrists are plotting properly, but the genForces for the pelvis, hips, knee angle moments, ankles, and subtalars are not (my plotted graphs are attached). This is my attempt at importing the provided files and the Part 1 Inverse Dynamics API commands; does anything about the Inverse Dynamics look glaringly wrong to you?
Code: Select all
modelFile = 'subject_walk_adjusted.osim';
coordinatesFile = 'coordinates.mot';
Code: Select all
idtool.setModel(model);
idtool.setModelFileName(modelFile);
idtool.setCoordinatesFileName(coordinatesFile);
idtool.setStartTime(0);
idtool.setEndTime(2.37);
idtool.setOutputGenForceFileName(genForcesFile);