Custom CoordinateCouplerConstraint

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Julie Iskander
Posts: 11
Joined: Thu Mar 10, 2016 9:25 pm

Custom CoordinateCouplerConstraint

Post by Julie Iskander » Sun Feb 18, 2018 12:22 am

Hello,

I need a constraint that use two independent coordinates. According to the documentation, it is now only restricted to one coordinate.
How can I extend this?
If I wrote a child class that used two coordinates, how can I add it to the opensim GUI so that it is used in all analysis or optimisations?
Is this possible?

Thanks a lot.

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

Re: Custom CoordinateCouplerConstraint

Post by Dimitar Stanev » Sun Feb 18, 2018 3:37 am

Hi,

You can create your own plugin following this example:

https://simtk-confluence.stanford.edu/d ... n+Analysis

You can look at how constraints are implemented and adapt an existing code to your needs:

https://github.com/opensim-org/opensim- ... bodyEngine

Best

POST REPLY