Page 1 of 1

Joint Angle of opensim Body

Posted: Thu Oct 15, 2020 8:25 am
by amini_opensim
Hi guys

In this code, the joint angle in opensim is degree or radian?

state = HGait.initSystem();

Coordiantes = HGait.getCoordinateSet();

Coordiantes.get('ankle_angle_r').setValue(state,tar)

Do you think I should set the joint angle in degrees or radian?

Re: Joint Angle of opensim Body

Posted: Thu Oct 15, 2020 9:59 am
by aymanh
Hi,

At the low level API calls in your code snippet, the angles are always in radians (for rotational motion type). Conversion to/from radians to degrees is used exclusively for application/end-user facing functionality.

Hope this helps,
-Ayman