Page 1 of 1

Inverse Kinematics

Posted: Thu May 19, 2011 9:05 am
by bruz85
During this analysis Opensim computes the min of a weighted least squares problem; my question is: what are the units for marker and for generalized coordinates? meters and degrees?
thanks,
bruno

RE: Inverse Kinematics

Posted: Thu May 19, 2011 9:48 am
by aymanh
Hi Bruno,

The length units are the model's length units (default is meters I believe) for rotational degrees of freedom, the units would be radians (all the computation is done internally in radians).

-Ayman

RE: Inverse Kinematics

Posted: Fri May 20, 2011 10:50 am
by bruz85
Are you sure that length units are meters?
because the input file .trc with coordinates for makers is in mm...

RE: Inverse Kinematics

Posted: Fri May 20, 2011 11:30 am
by aymanh
Bruno,

It's true that the trc file can be of any supported units, but we internally convert it to meters and the error messages you see in the log window refer to the errors in meters.

Best regards,
-Ayman

RE: Inverse Kinematics

Posted: Sat May 21, 2011 2:40 am
by bruz85
ok, thanks Ayman

Re: Inverse Kinematics

Posted: Thu Apr 12, 2012 11:45 am
by michalacadova
Hi,
I have one comment on this. I spent the whole day trying to run my scaling process … in the end I went through (again) the Tutorial 3 (Scaling, Inverse Kinematics, and Inverse Dynamics; Gait2354) and I realized, that in the model, the positions of the markers are in meters, e.g. [0.605; 1.425; 0.02], but in the static.trc file, the marker’s position are in millimeters(?!), e.g. [605; 1425; 20]. When I adjusted this in my files, then “suddenly” everything went all right.

What surprised/confused me was, that in the User’s Guide (page 157, chapter15-Inverse Kinematics) is written, that “The units used by IK are the model’s units, which are meters and radians”. That’s why I kept meters everywhere :( .

Hopefully, the IK will run successfully.

Michala

One more note – the units “problem” was also discussed in the following threads

Re: Inverse Kinematics

Posted: Mon Apr 16, 2012 11:46 am
by aymanh
Hi Michala,

Thanks for pointing out this potential pitfall. Please file a bug report detailing what you ran into and we'll try to improve the documentation in the next release to address this issue.

Best regards,
-Ayman

Re: Inverse Kinematics

Posted: Thu Aug 16, 2012 7:35 am
by michalacadova
Hi,
Maybe one more comment here. The model is by default in meters, and if you have the coordinates in the .trc file in millimeters, and it is specified in the header, then it will be coupled with no problems.

Michala