Page 1 of 1

Edit spatialtransform and CoordinateCouplerConstraint in API

Posted: Tue May 01, 2012 12:00 am
by tlin067
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

Re: Edit spatialtransform and CoordinateCouplerConstraint in

Posted: Sun Jun 24, 2012 7:39 pm
by tlin067
Any hints or tips from anyone?

Re: Edit spatialtransform and CoordinateCouplerConstraint in

Posted: Mon Mar 30, 2015 4:08 pm
by saxbyd
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