Moment and muscle force don't match
Posted: Wed Dec 06, 2017 9:46 am
Hi all,
I am using gait2354.osim to run Inverse Dynamics (ID) and Static Optimization (SO) with Matlab using API 3.3. But when I compare the joint moment (read from ID) with moment (summation of moment arm multiply muscle force read from SO), they don't match, especially for 'pelvis_tilt_moment','pelvis_ty_force'.
The moment arm seems the same compared with moment arm-joint figure which could be plotted in OpenSim.
Here is code reading moment arm:
MA=MomentArmSolver(model);
muscle=model.getMuscles().get(i);
musclegeopath=muscle.getGeometryPath();
MAvalue(j+1,i+1)=MA.solve(state, model.getCoordinateSet().get(j), musclegeopath); %% j is joint, i is muscle
Does anyone know what's wrong?
Chaofei
I am using gait2354.osim to run Inverse Dynamics (ID) and Static Optimization (SO) with Matlab using API 3.3. But when I compare the joint moment (read from ID) with moment (summation of moment arm multiply muscle force read from SO), they don't match, especially for 'pelvis_tilt_moment','pelvis_ty_force'.
The moment arm seems the same compared with moment arm-joint figure which could be plotted in OpenSim.
Here is code reading moment arm:
MA=MomentArmSolver(model);
muscle=model.getMuscles().get(i);
musclegeopath=muscle.getGeometryPath();
MAvalue(j+1,i+1)=MA.solve(state, model.getCoordinateSet().get(j), musclegeopath); %% j is joint, i is muscle
Does anyone know what's wrong?
Chaofei