Point Kinematic

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

Point Kinematic

Post by Samane Amini » Sat Mar 13, 2021 1:01 am

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

Tags:

User avatar
Carmichael Ong
Posts: 380
Joined: Fri Feb 24, 2012 11:50 am

Re: Point Kinematic

Post by Carmichael Ong » Mon Mar 29, 2021 2:01 pm

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

User avatar
Dhyey Parikh
Posts: 8
Joined: Wed Jun 02, 2021 8:25 am

Re: Point Kinematic

Post by Dhyey Parikh » Mon Oct 11, 2021 2:37 pm

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

POST REPLY