Good evening,
I'm new in OpenSim and have a few questions of using Matlab abilities.
I want to use ForwardTool for making some experiments on different muscular activations (as the result I get some motion file) and want to track markers positions(in global coordinates). I just founded how to do this not in motion
#######
% markerSet = model.updMarkerSet();
% observedMarker = markerSet.getLast();
% markerParentBody = observedMarker.getBody();
% localPos = ArrayDouble.createVec3([0.0,0.0,0.0]);
% globalPos = ArrayDouble.createVec3([0.0,0.0,0.0]);
% localPos = observedMarker.getOffset();
% model.getSimbodyEngine().getPosition(si, markerParentBody,localPos,globalPos);
% ArrayDouble.getValuesFromVec3(localPos)
% ArrayDouble.getValuesFromVec3(globalPos)
#######
, but how to get this positions from the motions that have been generates by forward dynamics I don't know.
And another question, can I interact with all of this variables due to work environment of Matlab(not using files)?
Thanks,
Alex
Tracking marker position via Matlab
- Alex Priamikov
- Posts: 14
- Joined: Fri Jan 11, 2013 9:11 am
Re: Tracking marker position via Matlab
Problem solved in a way of adding some classes to code and recompiling the project.
Re: Tracking marker position via Matlab
Hi Alex,
Can you please tell me how you solved this problem?
Thanks.
Can you please tell me how you solved this problem?
Thanks.
- krishna raj
- Posts: 21
- Joined: Thu Dec 01, 2022 7:40 am
Re: Tracking marker position via Matlab
Can you please tell me how you solved this problem?
Thanks.
Thanks.