Forward dynamics with prescribed motion

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Gabor Piskoty
Posts: 10
Joined: Mon Nov 16, 2015 7:52 am

Forward dynamics with prescribed motion

Post by Gabor Piskoty » Mon Jul 24, 2017 4:47 am

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

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Forward dynamics with prescribed motion

Post by jimmy d » Mon Jul 24, 2017 10:19 am

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.

User avatar
Gabor Piskoty
Posts: 10
Joined: Mon Nov 16, 2015 7:52 am

Re: Forward dynamics with prescribed motion

Post by Gabor Piskoty » Tue Jul 25, 2017 1:54 am

Dear James

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

Best regards

Gabor

POST REPLY