Page 1 of 1

Get Joint Location in Matlab

Posted: Thu Jan 21, 2021 10:08 am
by admy
Hi,

I'm trying to get the knee joint location relative to femur in Matlab. In OpenSim 3.3 I could use code "getLocationInParent" in the Joint Class to get that relative location, but I couldn't find this code in OpenSim 4.1. Where can I find that location?

Best regards

Re: Get Joint Location in Matlab

Posted: Sat Jan 23, 2021 7:44 am
by adkoele
Hi,

I actually have the same question, though related to the function "setLocationInParent". Previously I could use this function to change the location of a joint, but now I get an error, and also using the MATLAB option methodsview(), I cannot find it.

Kind regards,
Anne

Re: Get Joint Location in Matlab

Posted: Thu Jan 28, 2021 3:39 am
by adkoele
Hi,

I think your problem might be solved with line 63-66 here:
https://github.com/dasproject/DAS3/blob ... readosim.m

Kind regards,
Anne