Kinematic

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

Kinematic

Post by Samane Amini » Tue Aug 10, 2021 12:36 am

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

Tags:

POST REPLY