OpenSim2.2.0 API "isConstrained()" error
Posted: Sun Nov 28, 2010 11:51 pm
Hi, I have upgraded to 2.2.0 and I am having a segmentation fault. I wrote a matlab mex function for get model data from OpenSim. Now when I link to the new libraries I get a segmentation fault when I run the function:
if (osimModel.getCoordinateSet().get(0).isConstrained() == 0)
{
...
}
The isConstrained function seems to be at fault, although comparing the doxygen documentation there appears to be no change. Can anyone share some light on this? It was working previously on version 2.0.2.
Also, out of interest I noticed the Model::getGravity() function has been changed so now it returns a vector instead of requiring a reference to one, is there a reason for this?
Marc
if (osimModel.getCoordinateSet().get(0).isConstrained() == 0)
{
...
}
The isConstrained function seems to be at fault, although comparing the doxygen documentation there appears to be no change. Can anyone share some light on this? It was working previously on version 2.0.2.
Also, out of interest I noticed the Model::getGravity() function has been changed so now it returns a vector instead of requiring a reference to one, is there a reason for this?
Marc