IK tool dropping frame

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Scott Kennedy
Posts: 2
Joined: Tue Mar 08, 2016 8:01 am

IK tool dropping frame

Post by Scott Kennedy » Fri Jul 21, 2017 10:46 am

Hi


I'm using OpenSim version 3.3 on a Windows 10 x64 machine.

I have a marker (trc) file with 7203 frames. When I use the IK tool, it generates a motion (mot) file with 7202 frames.

After some testing, it looks like if there are 1624 frames in the trc file, then the mot file has 1624. However, if there are 1625 frames in the trc file, then there are only 1624 frames in the mot file. If the trc file has more than 1624 frames, the mot file will have one less frame.

Strangely, if I use a different .osim model, I don't have this problem.

Can you advise my about where the problem might be? The .osim model? The IK tool? The .trc file?


Thanks,
Scott

User avatar
Thomas Uchida
Posts: 1792
Joined: Wed May 16, 2012 11:40 am

Re: IK tool dropping frame

Post by Thomas Uchida » Fri Jul 21, 2017 11:59 am

Can you advise my about where the problem might be? The .osim model? The IK tool? The .trc file?
This is a bug caused by round-off error in the way the number of frames is calculated, and has been filed on GitHub (Issue #518; https://github.com/opensim-org/opensim-core/issues/518).

User avatar
Scott Kennedy
Posts: 2
Joined: Tue Mar 08, 2016 8:01 am

Re: IK tool dropping frame

Post by Scott Kennedy » Fri Jul 21, 2017 1:02 pm

Thanks!

POST REPLY