Joint Angle of opensim Body

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Samane Amini
Posts: 100
Joined: Sun Jan 12, 2020 3:48 am

Joint Angle of opensim Body

Post by Samane Amini » Thu Oct 15, 2020 8:25 am

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?

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

Re: Joint Angle of opensim Body

Post by Ayman Habib » Thu Oct 15, 2020 9:59 am

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

POST REPLY