Page 1 of 1

GCVSpline error performing ID

Posted: Mon Apr 29, 2024 9:31 am
by giopestri
Hello!
When I try to split the file coming from the IK (coordinates) and try to perform ID, I have this error if my data points are less than 6: "GCVSpline error: data points must be 6 ore more". Since it is for my thesis, is it related to the interpolation between grf data and coordinate data (with less than 6 points the interpolation cannot happen? ), and if yes (or even not) can you give me a little explanation of that?

I'm looking forward your answer, I would be very glad!

Giovanni

Re: GCVSpline error performing ID

Posted: Tue Apr 30, 2024 12:58 pm
by tkuchida
The error is of the form "GCVSpline: there must be # or more data points." This string can be found on line 99 of GCVSpline.cpp (https://github.com/opensim-org/opensim- ... ne.cpp#L99). Presumably you are requesting a quintic spline but have not provided at least 6 data points (see the documentation for getOrder() here: https://simtk.org/api_docs/opensim/api_ ... dc0daa967d).