Force Inverse Kinematics to be in Radians

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Duncan Lee
Posts: 24
Joined: Thu Sep 14, 2023 10:15 am

Force Inverse Kinematics to be in Radians

Post by Duncan Lee » Tue May 14, 2024 2:03 pm

Hello,

I was wondering if there is anyway to force IK in OpenSim to be in radians? Right now it is in degrees and I'm not sure how to change it.

Also there seems to be a bug in which the GUI does not recognize files. I have encountered this when trying to run ID. In the save path box, the location path selector doesn't work (no GUI opens) and then the file selector in all other GUIs shows folders but no files, even when the file type selector is set to All Files.

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: Force Inverse Kinematics to be in Radians

Post by Carmichael Ong » Fri May 17, 2024 5:46 pm

I don't believe there is a way to do this. Looking at the API documentation, I don't see anything related to this: https://simtk.org/api_docs/opensim/api_ ... sTool.html

The code also seems to set the units as degrees here: https://github.com/opensim-org/opensim- ... l.cpp#L129

That being said, you might be able to take the output and use the Analyze Tool with the Kinematics analysis, using your Inverse Kinematics results as the input to the Analyze tool, and set the analysis to output in radians: https://opensimconfluence.atlassian.net ... h+Analyses

POST REPLY