However, when directly using the inverse dynamics tool, the generalized forces are extremely large. How can this be understood?excludedForces = osim.ArrayStr();
excludedForces.append('Muscles');
idtool.setExcludedForces(excludedForces);
What components make up the generalized forces calculated in this way?
The following figure shows the comparison of results with muscles excluded.import opensim as osim
idtool = osim.InverseDynamicsTool()
idtool.setName("arm")
idtool.setModelFileName("arm26.osim")
idtool.setCoordinatesFileName("arm26_Kinematics_q.sto")
idtool.setStartTime(0)
idtool.setEndTime(1)
idtool.setLowpassCutoffFrequency(6.0)
idtool.setResultsDir(".")
idtool.run()