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
Point Kinematic
- Samane Amini
- Posts: 101
- Joined: Sun Jan 12, 2020 3:48 am
- Carmichael Ong
- Posts: 401
- Joined: Fri Feb 24, 2012 11:50 am
Re: Point Kinematic
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
- Dhyey Parikh
- Posts: 8
- Joined: Wed Jun 02, 2021 8:25 am
Re: Point Kinematic
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
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