Page 1 of 2

Inverse kinematics results

Posted: Mon Sep 12, 2011 7:52 am
by martam
Hi everyone,

In output file from Inverse Kinematics file, the coordinates "*_tx" ,"*_ty" "*_tz" are expressed in which unit??

Thanks,

Marta

Re: Inverse kinematics results

Posted: Mon Sep 12, 2011 8:38 am
by rudi
Meters.

Re: Inverse kinematics results

Posted: Tue Sep 13, 2011 6:30 am
by martam
Thanks!

And what about the other coordinates?For instance, I've a coordinated define "shoulder_rot_l" whose bound values are [-90,90], but in the motion file I've obtained from IK its values reaches -430...
And I don't understand what's happening...

Re: Inverse kinematics results

Posted: Tue Sep 13, 2011 6:50 am
by rudi
Angles are in degrees. Since one revolution is 360 degrees, 90 + 360 = 430, so your angle is actually 90 degrees but its value contains one extra revolution - for some reason I don't know. Mathematically, that shouldn't be any problem as far as changes of angles are correct. I don't know if OpenSim realizes that equality of angles though.

Re: Inverse kinematics results

Posted: Tue Sep 13, 2011 9:31 am
by martam
That explanation works in this case...but I have other situation where the same happens, like, the angle is supposed to be 130ยบ, but what appear in the motion file is around 535

Re: Inverse kinematics results

Posted: Tue Sep 13, 2011 11:43 am
by aymanh
Hi Marta,

What version of OpenSim are you using? Some earlier versions of OpenSim allowed users to specify an Optimizer and some optimizers didn't respect the bounds on coordinates but the latest versions do build coordinate bounds into the IK problem so it's unlikely the solution would violate them. I'm not sure where you specify coordinate bounds in your case (if from GUI or in the XML file). If from XML please keep in mind that angles are specified in radians (not degrees).

Hope this helps,
-Ayman

Re: Inverse kinematics results

Posted: Wed Sep 14, 2011 8:29 am
by martam
I'm using OpenSim 2.2.1, and specifying the bound ins XML file, but I've had in mind that the values are in radians! As for the Optimizer, which ones did no respect the bounds?!

One more question, can you tell me what is the sing convention for moments of force?

Thanks!

Re: Inverse kinematics results

Posted: Wed Sep 14, 2011 10:04 am
by sherm
martam wrote: One more question, can you tell me what is the sign convention for moments of force?
We use the right-hand rule.

Sherm

Re: Inverse kinematics results

Posted: Wed Sep 14, 2011 2:04 pm
by aymanh
Hi Marta,
martam wrote:I'm using OpenSim 2.2.1, and specifying the bound ins XML file, but I've had in mind that the values are in radians! As for the Optimizer, which ones did no respect the bounds?!

One more question, can you tell me what is the sing convention for moments of force?

Thanks!
If you specify "Jacobian" as an Optimizer Algorithm in 2.2.1 and earlier versions then it runs faster but doesn't respect the bounds, if however you didn't specify an Optimizer or used IPOPT then it does respect bounds. Later versions starting at 2.3.x do not give a choice of optimizer, instead it finds the best one for the problem internally and builds the bounds into the IK problem so they are always enforced, please give that a try. Keep in mind that the optimizers take into account the "clamped" flag of the coordinates.

As to the signs for moments and forces (e.g. ID output) you basically need to look at how the coordinate is defined, +ve forces/moments act along the direction of coordinate increase and -ve forces/moments act in the opposite direction.

Hope this helps,
-Ayman

Re: Inverse kinematics results

Posted: Thu Sep 15, 2011 6:31 am
by martam
Actually I did specified "Jacobian" optimizer....I'll try to run it all over again with the "ipopt" optimizer, and hope it works right now!So, you said Jacobian was the faster optimizer, and it took an hour to run the analysis, how long would it take with the "ipopt"??

Thanks a lot for you help!