Page 1 of 1

Point Kinematic

Posted: Sat Mar 13, 2021 1:01 am
by amini_opensim
Hi everyone
I want to get a point position, velocity and acceleration. So i use this code in matlab:

nn = HGait.PointKinematics;
nn.setBody(HGait.updBodySet.get('tibia_l'))
R = Vec3(0,0,0);
nn.setPoint(R)
nn.setPointName('yf')
nn.getAccelerationStorage()

but this is not yield the values of acceleration. Why in your opinion?



PointKinematics.setBody: set body to tibia_l

ans =


Thanks my friends

Re: Point Kinematic

Posted: Mon Mar 29, 2021 2:01 pm
by ongcf
PointKinematics is a class derived from Analysis. These must be added to the model. Here's one example adding an Analysis in Python: https://github.com/opensim-org/opensim- ... ace.py#L55

Re: Point Kinematic

Posted: Mon Oct 11, 2021 2:37 pm
by dpar99
Hello

Were you able to get the Matlab code working to run the Point Kinematic analysis? I have been trying to replicate in Python but have been unable to do so.

Thank you,

Dhyey