mad-lab-fau / BASH-Model

We developed a method animating a statistical 3D human model for biomechanical analysis to increase accessibility for non-experts, like patients, athletes, or designers.
Apache License 2.0
85 stars 9 forks source link

Issues on the versions of reading sto and the sto files in 2020_Nitschke_RunMaD.zip #7

Closed hwy1992129 closed 2 years ago

hwy1992129 commented 2 years ago

I finally let the program work with Muscle Activation. It has an error if you are not using OpenSim 4.0 API. Change the code to OpenSim::TimeSeriesTable stoTable = OpenSim::TimeSeriesTable(filepath); may fix the error in OpenSim 4.1+ API. The .sto files from 2020_Nitschke_RunMaD.zip don't work in the program. The reason behind it may be the problem of format.....??? I open the .sto using excel. The .sto file from 2020_Nitschke_RunMaD.zip look like the following figure. image I modified the .sto file and the program works well with Muscle Activation... image image

MarliesNit commented 2 years ago

Happy to hear that your visualization of the muscle activations is working now! The sto files and all other OpenSim files of 2020_Nitschke_RunMaD.zip were created with OpenSim 4.0 as described in my paper (https://www.nature.com/articles/s41598-020-73856-w). Hence, it might be that the sto file is not compatible to newer OpenSim versions.

You can use the OpenSim GUI to update OpenSim files to newer formats. Tools -> Convert Files