Saving marker errors in Opensim 3.3

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Marco Marchitto
Posts: 5
Joined: Mon Oct 07, 2019 6:03 am

Saving marker errors in Opensim 3.3

Post by Marco Marchitto » Mon Mar 16, 2020 8:05 pm

Hello,

I'm using Opensim 3.3 and the related API for Matlab and I would like to save the marker errors for each of my trials. I know that the API of Opensim 4.0 for Matlab automatically does this job when you run the InverseKinematicsTool (by using the run() function), saving the marker errors in a .sto file. Is there a way to do the same by using the Opensim 3.3 API for Matlab?

Thank you!

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Saving marker errors in Opensim 3.3

Post by Dimitar Stanev » Tue Mar 17, 2020 1:42 am

Hi,

You can add the following option in the inverse kinematics' .xml setup file:

Code: Select all

<!--Flag (true or false) indicating whether or not to report marker errors from the inverse kinematics solution.-->
    <report_errors>true</report_errors>

User avatar
Marco Marchitto
Posts: 5
Joined: Mon Oct 07, 2019 6:03 am

Re: Saving marker errors in Opensim 3.3

Post by Marco Marchitto » Wed Mar 18, 2020 4:40 am

Thank you! Actually these lines were already written in my .xml file but the problem was that in my case the Opensim 3.3 Api saved the marker error in a single file out.log.

I have another question: how can I get the position in ground of a body in Opensim 3.3 with Matlab? Because with the 4.0 version I can use getPositionInGround() but I didn't find this function in the earlier version.

Thank you!

Bye

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Saving marker errors in Opensim 3.3

Post by Dimitar Stanev » Thu Mar 19, 2020 1:21 am

In OpenSim v3.3 you can use the utilities within the SimbodyEngine

https://simtk.org/api_docs/opensim/api_ ... 3a00633540

Code: Select all

model.getSimbodyEngine().transform(...)

User avatar
Marco Marchitto
Posts: 5
Joined: Mon Oct 07, 2019 6:03 am

Re: Saving marker errors in Opensim 3.3

Post by Marco Marchitto » Fri Mar 20, 2020 11:37 am

Thank you for the useful information! I found a solution by using the SimbodyEngine.

Best,

Marco

POST REPLY