AnyFunPolynomial

hello

How to use the AnyFunPolynomial to define a square root function such as Joint angle = t^0.5 to become a DriverFun ?

Many thanks

Hi

It is not possible using an AnyFunPolynomial to make a square root function.

The best way to make such a function would be to use an AnyFunInterpol function.

Something like this :


AnyKinEqInterPolDriver myfunc ={
  Type=Bspline;
  AnyInt NumberOfElements =5000;
  T=linspace(-10,10,NumberOfElements);
  Data ={sqrt(T)};   
  AnyKinMeasureOrg &ref=.YourJoint;
};

Hi

Just a quick comment. I think that if you change your equation to (Joint angle)^2 = t, you can implement this using the AnyKinMeasureFunComb1 class to square the joint angle.

Best regards
Michael