Get Joint Location in Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Jiajie Qiu
Posts: 1
Joined: Tue Sep 22, 2020 12:18 am

Get Joint Location in Matlab

Post by Jiajie Qiu » Thu Jan 21, 2021 10:08 am

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

Tags:

User avatar
Anne Koelewijn
Posts: 14
Joined: Tue Aug 26, 2014 6:42 am

Re: Get Joint Location in Matlab

Post by Anne Koelewijn » Sat Jan 23, 2021 7:44 am

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

User avatar
Anne Koelewijn
Posts: 14
Joined: Tue Aug 26, 2014 6:42 am

Re: Get Joint Location in Matlab

Post by Anne Koelewijn » Thu Jan 28, 2021 3:39 am

Hi,

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

Kind regards,
Anne

POST REPLY