Tracking marker position via Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Alex Priamikov
Posts: 14
Joined: Fri Jan 11, 2013 9:11 am

Tracking marker position via Matlab

Post by Alex Priamikov » Thu Jan 17, 2013 9:37 am

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

User avatar
Alex Priamikov
Posts: 14
Joined: Fri Jan 11, 2013 9:11 am

Re: Tracking marker position via Matlab

Post by Alex Priamikov » Thu Jan 31, 2013 9:34 am

Problem solved in a way of adding some classes to code and recompiling the project.

User avatar
William A
Posts: 21
Joined: Thu Feb 16, 2017 10:02 am

Re: Tracking marker position via Matlab

Post by William A » Sat Mar 11, 2017 7:20 am

Hi Alex,

Can you please tell me how you solved this problem?

Thanks.

User avatar
krishna raj
Posts: 21
Joined: Thu Dec 01, 2022 7:40 am

Re: Tracking marker position via Matlab

Post by krishna raj » Mon Mar 04, 2024 2:24 am

Can you please tell me how you solved this problem?

Thanks.

POST REPLY