Page 1 of 1

Forward dynamics with prescribed motion

Posted: Mon Jul 24, 2017 4:47 am
by gabor
Dear All

I would like to run FD with prescribed motion for some of the DOF. Recently, the prescribed motion is defined within the .osim file, like this:

<prescribed_function>
<SimmSpline>
<x> 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15</x>
<y> 0 0.1 0.3 0.1 0 0 0 0 0 0 0 0 0 0 0 0 0 </y>
</SimmSpline>
</prescribed_function>


This works properly. However, it would be much more convenient to define the prescribed motion in an external file, like the .mot file in case of Static optimization.

I would appreciate any hints for a solution.

Best regards

Gabor

Re: Forward dynamics with prescribed motion

Posted: Mon Jul 24, 2017 10:19 am
by jimmy
That is the way a prescribed motion has to done. There is a utility script in the OpenSim distribution (Scripts/Matlab/prescribeMotionInModel.m) that you can use to update the prescribed functions from .mot files.

Re: Forward dynamics with prescribed motion

Posted: Tue Jul 25, 2017 1:54 am
by gabor
Dear James

Thank you for your valuable hint. As a consequence, the issue does not exist anymore :)

Best regards

Gabor