Edit spatialtransform and CoordinateCouplerConstraint in API

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Tom Lintern
Posts: 61
Joined: Mon Dec 13, 2010 5:43 pm

Edit spatialtransform and CoordinateCouplerConstraint in API

Post by Tom Lintern » Tue May 01, 2012 12:00 am

Hi,

I am just having some issues editing an existing osim file using the API. I want to be able to change the coordinate coupler constraint properties and the spatial transform propoerties of different joints programatically. The reason is to make it easier to make bulk changes to my osim file.

I changed the range of some joint coordinates using the following;
CoordinateSet& CS = osimModel.updCoordinateSet();
CS[CS.getIndex("flex_extension",0)].setRange(FE_range);

Is there a similar approach to change the functions in the spatialtransform and coordinatecouplerconstraint classes?

Thanks,
Tom

User avatar
Tom Lintern
Posts: 61
Joined: Mon Dec 13, 2010 5:43 pm

Re: Edit spatialtransform and CoordinateCouplerConstraint in

Post by Tom Lintern » Sun Jun 24, 2012 7:39 pm

Any hints or tips from anyone?

User avatar
David John Saxby
Posts: 83
Joined: Mon May 09, 2011 8:39 pm

Re: Edit spatialtransform and CoordinateCouplerConstraint in

Post by David John Saxby » Mon Mar 30, 2015 4:08 pm

Hi Tom,

I'm working on some similar issues using the Matlab to OpenSim tools.

You might check out this page:

https://simtk.org/forums/viewtopic.php? ... orm#p11309


Has some useful tips.

David

POST REPLY