opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
758 stars 308 forks source link

Nan showing up in COP computation post-MocoTracking simulation with foot-ground contact. #3763

Open stingjp opened 2 months ago

stingjp commented 2 months ago

Problem: MocoTrack, with both coordinate and GRF tracking. Using foot-ground contact in a simple OpenSim model. After getting a solution, extract the GRFs from using the osim.createExternalLoadsTableForGait() method. The values appear to show up as Nan during periods where the foot is not in contact with the ground (possibly a divide by zero issue). Working in OpenSim version: 4.4.1

Attaching the:

mocoIssue.zip