## Inverse kinematics results

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
Marta Meneses
Posts: 26
Joined: Thu Mar 03, 2011 2:49 am

### Inverse kinematics results

Hi everyone,

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

Thanks,

Marta

Rudolf Klemetti
Posts: 48
Joined: Thu Jul 15, 2010 3:09 pm

### Re: Inverse kinematics results

Meters.

Marta Meneses
Posts: 26
Joined: Thu Mar 03, 2011 2:49 am

### Re: Inverse kinematics results

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...

Rudolf Klemetti
Posts: 48
Joined: Thu Jul 15, 2010 3:09 pm

### Re: Inverse kinematics results

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.

Marta Meneses
Posts: 26
Joined: Thu Mar 03, 2011 2:49 am

### Re: Inverse kinematics results

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

Ayman Habib
Posts: 2240
Joined: Fri Apr 01, 2005 12:24 pm

### Re: Inverse kinematics results

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

Marta Meneses
Posts: 26
Joined: Thu Mar 03, 2011 2:49 am

### Re: Inverse kinematics results

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!

Michael Sherman
Posts: 807
Joined: Fri Apr 01, 2005 6:05 pm

### Re: Inverse kinematics results

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

Ayman Habib
Posts: 2240
Joined: Fri Apr 01, 2005 12:24 pm

### Re: Inverse kinematics results

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

Marta Meneses
Posts: 26
Joined: Thu Mar 03, 2011 2:49 am

### Re: Inverse kinematics results

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!