Set compute_moments to 'True'

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Julian Atkinson
Posts: 52
Joined: Thu Feb 25, 2016 12:39 am

Set compute_moments to 'True'

Post by Julian Atkinson » Mon Feb 13, 2017 12:08 am

Hi there

I am trying to use the Muscle analysis tool through the API using matlab.

I am trying to set the compute_moments value to true but I cannot find the setComputeMoments setter anywhere?

Alternatively I tried to pass in a template xml file however matlab would crash and shut down when I attempted this.

Thank you

Julian

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Set compute_moments to 'True'

Post by jimmy d » Mon Feb 13, 2017 2:06 pm

The Doxygen documemtation indicates that setComputeMoments is a public method on Muscle Analysis:
https://simtk.org/api_docs/opensim/api_ ... f9b4e6fa13

How are you coding the analysis in Matlab?

User avatar
Julian Atkinson
Posts: 52
Joined: Thu Feb 25, 2016 12:39 am

Re: Set compute_moments to 'True'

Post by Julian Atkinson » Mon Feb 13, 2017 11:40 pm

Thanks for your help James.

I was writing mine using the BOPS (https://simtk.org/projects/bops) as a guide, editing where necessary. They use the AnalyzeTool.h file. What is the difference between the two?

Thanks,
Julian

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Set compute_moments to 'True'

Post by jimmy d » Tue Feb 14, 2017 10:55 am

The tools are a package of subclasses that work to do a specific type of analysis. Muscle Analysis is one of a number of different analyses that can be used by the AnalyzeTool.

This recent thread has code from that shows how you can add a muscle analysis to a model.

POST REPLY