Hi Ayman,
I have some troubles with the preparation of a file .sto, in particular for the values of the angle I have to give as input.
From a visual checking in the "coordinates" panel I understand that the values of the angle are set in degrees.
If I prepare such a file and I use load motion this works.
But if I use the same file loading it directly from the Analysis Tool window to compute the MuscleAnalysis
the angles have to be in radiants otherwise I get weird results.
Is there a bug or am I wrong in doing something?
Thanks
Fausto
Angles in degrees or radiants?
- Ayman Habib
- Posts: 2255
- Joined: Fri Apr 01, 2005 12:24 pm
RE: Angles in degrees or radiants?
Hi Fausto,
For historical reasons, OpenSim supports two formats that have significantly overlapping functionality (.sto and .mot files). ".mot" files are supposed to be in degrees while ".sto" files are generated as a result of analyses and are usually in radians (though the format supports both). We should parse the header to make sure we handle this properly. If you have a file that conforms to this format where the header is not parsed/handled properly please file a bug report and attach it along with other files necessary to reproduce the bug and I'll investigate.
Hope this helps,
-Ayman
For historical reasons, OpenSim supports two formats that have significantly overlapping functionality (.sto and .mot files). ".mot" files are supposed to be in degrees while ".sto" files are generated as a result of analyses and are usually in radians (though the format supports both). We should parse the header to make sure we handle this properly. If you have a file that conforms to this format where the header is not parsed/handled properly please file a bug report and attach it along with other files necessary to reproduce the bug and I'll investigate.
Hope this helps,
-Ayman
- fausto panizzolo
- Posts: 15
- Joined: Thu Sep 30, 2010 12:18 am
RE: Angles in degrees or radiants?
Thanks Ayman!