How To Get Kinematics Parameters Using Code While Using Kinematics PF Library

How To Get Kinematics Parameters Using Code While Using Kinematics PF Library

arunTTT2P
Explorer Explorer
19 Views
1 Reply
Message 1 of 2

How To Get Kinematics Parameters Using Code While Using Kinematics PF Library

arunTTT2P
Explorer
Explorer

[ FlexSim 23.1.1 ]

Hi,

I'm trying to access the kinematic parameters of an object( like speed, acceleration, etc) which uses process flow activities for kinematics. The kinematics label on the token is not returning the kinematics parameters accurately when using the getkinematics () command(always returning zero).

double currentrotvelocity = getkinematics(token.kinematics,KINEMATIC_RVELOCITY,1,Model.time);

return currentrotvelocity;

If we are not using process flow for kinematics, the parameters can be easily accessed using the getkinematics() on the label treenode.

Is this the right approach?

Regards,

Arun KRGetKinematics.fsm


0 Likes
Accepted solutions (1)
20 Views
1 Reply
Reply (1)
Message 2 of 2

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution
getkinematics(token.labels["kinematics"],KINEMATIC_RVELOCITY)


It needs the node, not what the value of the node is.

0 Likes