opensim-core
opensim-core copied to clipboard
Enable GCVSpline in MATLAB
The signature for the OpenSim object GCVSpline
in methodsview GCVSpline
shows org.opensim.modeling.SWIGTYPE_p_double
for arguments 3 and 4. Is there a way to fix those arguments to allow us to use the GCVSpline
object in MATLAB?
While the convenience constructor that takes double* is not supported in Java/Matlab because the pointer data-type doesn't have an analogue in scripting, there're less convenient methods to set individual x, y values at specific indices
virtual void setX(int aIndex, double aValue); virtual void setY(int aIndex, double aValue);
If speed is an issue or if this is too much inconvenience feel free to add a convenience constructor that takes an ArrayDouble, std::vector
We will be using GCVSpline
once at the start of Ground Contact Personalization
so slow, but functional should be fine! I will investigate and report back if there are any issues.
Please re-open and provide any additional details if you are still having issues. Thanks!