Accessing CoordinateCouplerConstraint through Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Aaditya Chandramouli
Posts: 1
Joined: Wed Jul 24, 2019 6:42 pm

Accessing CoordinateCouplerConstraint through Matlab

Post by Aaditya Chandramouli » Sun Mar 07, 2021 11:18 pm

Is it possible to read and change/set the CoordinateCouplerConstraints of a model using Matlab?

Tags:

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: Accessing CoordinateCouplerConstraint through Matlab

Post by Carmichael Ong » Mon Mar 08, 2021 3:47 pm

Yes you should be able to edit any Component with the Matlab API.

You can access any component of a model with "updComponent()" (see https://simtk.org/api_docs/opensim/api_ ... e2999db511 for more details).

You will likely have to perform a "safeDownCast()" to get the correct methods to show up. An example in our documentation: https://simtk-confluence.stanford.edu/d ... g+Commands

After downcasting, you should have access to the class's methods: https://simtk.org/api_docs/opensim/api_ ... raint.html

POST REPLY