An issue of OpenSim ID analysis need help

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Xiangjie Meng
Posts: 15
Joined: Wed Sep 05, 2012 8:09 pm

An issue of OpenSim ID analysis need help

Post by Xiangjie Meng » Tue Sep 15, 2015 9:55 am

Thanks a lot for reading this topic. Recently, I simplified Gait_2354 model into a five link model and try to make inverse dynamical analysis to get driving torques needed for each joints. I try to get angular velocity and angular acceleration by "w=(Theta(i)-Theta(i-1))/(Time(i)-Time(i-1)); a=(w(i)-w(i-1))/(Time(i)-Time(i-1))", but the results generated large noises.

I found that angular velocity and angular acceleration generated by "Analysis Module" both are very smooth. Could you please tell me the OpenSim and Simbody's method of generating corresponding angular velocity and angular acceleration by joint angles? Are there special filter methods used?

Thanks a lot. I am looking forward to your reply.

Best,
Xiangjie

User avatar
Jiang Ping
Posts: 132
Joined: Sun Aug 26, 2012 4:09 am

Re: An issue of OpenSim ID analysis need help

Post by Jiang Ping » Tue Sep 15, 2015 9:29 pm

hi,

There are some method like getAcceleration() or getSpeed() available in OpenSim to access coordinate or body acc. and speed.
w=(Theta(i)-Theta(i-1))/(Time(i)-Time(i-1)) is not precise linear approximation.

best regards,
jiang

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

Re: An issue of OpenSim ID analysis need help

Post by jimmy d » Wed Sep 16, 2015 8:16 am

Hi Xiangiie,

The coordinate data gets splined and defined as a function so it is continuous and differentiable. The souce code can be viewed here

Cheers,
-James

User avatar
Xiangjie Meng
Posts: 15
Joined: Wed Sep 05, 2012 8:09 pm

Re: An issue of OpenSim ID analysis need help

Post by Xiangjie Meng » Wed Sep 16, 2015 9:05 am

Dear Jiang

Thanks a lot. It is helpful. I want to make a 5 link model in Matlab and use OpenSim to check the results. So, I need to get how to generate angular velocity and angular acceleration.

Best,
Jack Meng
Last edited by Xiangjie Meng on Wed Sep 16, 2015 9:10 am, edited 1 time in total.

User avatar
Xiangjie Meng
Posts: 15
Joined: Wed Sep 05, 2012 8:09 pm

Re: An issue of OpenSim ID analysis need help

Post by Xiangjie Meng » Wed Sep 16, 2015 9:10 am

Dear James,

Thanks a lot. This is very helpful. I also found the signal.cpp. Just as what you said, from this file, I found OpenSim uses GCVSpline and 3rd lowpass IIR Butterworth digital filter to get angular velocity and acceleration needed.

Best,
Jack Meng

POST REPLY