Page 1 of 1

Use the scale tool and inverse kinematics tool in C++ code

Posted: Tue Oct 08, 2013 8:04 pm
by leonard
Hello,

I'm a new OpenSim developer and have finished the tutorial "Performing a Simulation".
Now I understood that we could generate .osim files and .mot files by C++ code.
My question is how to use these tools like "Scaling", "Inverse Kinematics", "Inverse Dynamics", "Residual Reduction Algorithm" in C++ code.
Could I call some libraries to add them in my code?
And using them to generate some output files as what I want.
For example, I want to implement IK in my application. Could I read .osim file and .trc file, combine them with xml file and generate .mot file? Just like the tool we use in OpenSim GUI.
Do you have some examples or tutorials for this? I tried my best to look for that in the document and still didn't find it.

If not, does writing C++ code by OpenSim library only generate .osim files, .mot files, .sto files and add some simple analysis?
Because I still don't know so much about OpenSim C++ library, I want to understand it deeper and more complete.
Would you give me some suggestions about it, or some documents about a roadmap of OpenSim developers?

Thanks a million,
Leo

Re: Use the scale tool and inverse kinematics tool in C++ co

Posted: Fri Oct 11, 2013 10:07 am
by jimmy
Leo,

You are able to integrate the source code of OpenSIm into your own applications. You will want to go over the developers guide and pages found at the links below;

developers guide
http://simtk-confluence.stanford.edu:80 ... %27s+Guide
developers pages
http://simtk-confluence.stanford.edu:80 ... oper+Pages

Gluck,
-james