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?
Joint Angle of opensim Body
- Ayman Habib
- Posts: 2244
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Joint Angle of opensim Body
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
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