Page 1 of 1

Kinematic

Posted: Tue Aug 10, 2021 12:36 am
by amini_opensim
Hello my friends

I was wondering if how can receive the kinematic of every point in musculoskeletal model. for example, I want to know the position and velocity of the calcn in simulation. How could reach it?

Actually, I use the following code, but it's not correct.

import org.opensim.modeling.*;
HGait = Model('subject01_gait2392_scaled_991220.osim');
nn = HGait.BodyKinematics;
nn = HGait.PointKinematics;
mm = HGait.getBodySet.get('pelvis');
yf = mm.getMassCenter;
nn.setBody(mm)
nn.setPoint(yf)
nn.setPointName('yf')
HGait.addAnalysis(nn)
nn.getPoint(yf)

Please let me know how can I do ?

Thanks very much