CustomJoint definition with Matlab
Posted: Tue Feb 11, 2014 1:30 am
Hi,
I've been working with a Custom Joint in OpenSim's GUI. Now I'm working
with Matlab because I want to do an interface for doing some analyses for
different types of shoulder prosthesis.
The idea is that for the different types of prosthesis, the functions that
define the spatial transform for this joint will change, and I want to do
this automatically from Matlab. I have a "generic model" (DynamicArms2013 with some changes) , I make a copy, and then I add to the spatial transform of the CustomJoint "shoulder" the functions that define each translation. I have created this example to do
some trials (I will continue working to find the real functions...)
The Spatial Transform I have in the .osim file is the one I've attached in a .xml file.
The idea is to have this Spatial Transform only with the rotational
transform and add the translational transform specified each time. I think
that it will be something like
joints=model.getJointSet();
shoulder_joint= %some function to get the shoulder joint from the set
I think that then I have to update the Spatial Transform spatial_transform = shoulder_joint.updSpatialTransform ()?) creating a variable containing the new Spatial Transform? And then use the function connectToJoint?
Thanks,
Miriam Febrer
I've been working with a Custom Joint in OpenSim's GUI. Now I'm working
with Matlab because I want to do an interface for doing some analyses for
different types of shoulder prosthesis.
The idea is that for the different types of prosthesis, the functions that
define the spatial transform for this joint will change, and I want to do
this automatically from Matlab. I have a "generic model" (DynamicArms2013 with some changes) , I make a copy, and then I add to the spatial transform of the CustomJoint "shoulder" the functions that define each translation. I have created this example to do
some trials (I will continue working to find the real functions...)
The Spatial Transform I have in the .osim file is the one I've attached in a .xml file.
The idea is to have this Spatial Transform only with the rotational
transform and add the translational transform specified each time. I think
that it will be something like
joints=model.getJointSet();
shoulder_joint= %some function to get the shoulder joint from the set
I think that then I have to update the Spatial Transform spatial_transform = shoulder_joint.updSpatialTransform ()?) creating a variable containing the new Spatial Transform? And then use the function connectToJoint?
Thanks,
Miriam Febrer