Using AnyKinEqInterPolDriver

Hi,

I just tried to use AnyKinEqInterPolDriver like this:

            AnyKinEqInterPolDriver LeftHandleDriver2=
            {
                  AnySphericalJoint &Jnt= ..Joints.Joint7;
                  MeasureOrganizer = {2};
                  Type = Bspline;
                  //BsplineOrder = 4;
//                  T = {0.0, 0.0993518519, 0.1987037037, 0.2980555556, 0.3974074074, 0.4967592593, 
//                     0.5961111111, 0.6954629630, 0.7948148148, 0.8941666667, 0.9935185185, 1.0928703704, 
//                     1.1922222222, 1.2915740741, 1.3909259259, 1.4902777778, 1.5896296296, 1.6889814815, 
//                     1.7883333333, 1.8876851852, 1.9870370370, 2.0863888889, 2.1857407407, 2.2850925926,
//                     2.3844444444, 2.4837962963, 2.5831481481, 2.6825000000, 2.7818518519, 2.8812037037,
//                     2.9805555556, 3.0799074074, 3.1792592593, 3.2786111111, 3.3779629630, 3.4773148148,
//                     3.5766666667 };
                   
                  T = {0.0, 0.099, 0.198, 0.298, 0.397, 0.496, 
                     0.596, 0.695, 0.794, 0.894, 0.993, 1.092, 
                     1.1922, 1.291, 1.390, 1.490, 1.589, 1.688, 
                     1.788, 1.887, 1.987, 2.086, 2.185, 2.285,
                     2.384, 2.483, 2.583, 2.682, 2.781, 2.881,
                     2.980, 3.079, 3.179, 3.278, 3.377, 3.477,
                     3.576 };
                   
                  Data={ {-2.6135112544 ,-2.6142270062 ,-2.6248658598 ,-2.6672559411 ,-2.7431325208 ,-2.8410878766 ,
                    -2.9491413394 ,-3.0551060508 ,-3.1511458597 ,-3.2302714907 ,-3.2809246783 ,-3.3150216663 ,
                    -3.3337217313 ,-3.3371690229 ,-3.3369334880 ,-3.3344093222 ,-3.3228695478 ,-3.2987648267 ,
                    -3.2636449600 ,-3.2224891851 ,-3.1812436518 ,-3.1416559012 ,-3.1011357923 ,-3.0606624297 ,
                    -3.0222515399 ,-2.9814383605 ,-2.9378968584 ,-2.8946805458,-2.8539466254 ,-2.8215126806 ,
                    -2.7972226283 ,-2.7738235828 ,-2.7496914018 ,-2.7286534820 ,-2.7101718014 ,-2.6934969567 ,
                    -2.6822899793} };
                  Reaction.Type = {Off};
                  CType = {Soft};                    
            };

But I failed and got the following error:
ERROR(OBJ1) : D:/2…]/[…]/A…2/A…n/M…l/I…l/Incline_Assembly.any : LeftHandleDriver2 : Time, ‘t’, has an invalid value for this interpolation

Of course I set the ‘tStart’ and ‘tEnd’ value in the Study object same as those in this AnyKinEqInterPolDriver.

I would like to ask you whether there is a wrong way in my code to use AnyKinEqInterPolDriver.

I hope to get your advice.

Best regards,
Moonki

Hi Moonki,
usually its a numerical thing on the beginning or end, to solve simply set the Start time a slightly higher and the End time slightly earlier.
Best regards,
Sebastian

Hi Sebastian,

Thanks for your reply, but I could not solve the problem.

Instead I tried to use AnyKinEqSimpleDriver instead.

I’d like to ask of you how many data points AnyKinEqInterPolDriver can deal with.

Best regards,
Moonki

HI Moonki,
I don’t know if there are any limitations. I never experienced problems with this.
Sorry.
Best regards,
Sebastian