Go Back   Forums > Professional Forum > AnyBody Managed Model Repository


Thread Tools Display Modes
Old 11-07-2017, 12:50 PM
hujiayu1315 hujiayu1315 is offline
Junior Member
Join Date: Jun 2014
Posts: 8
Default AnyFunPolynomial


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

Many thanks
Reply With Quote
Old 11-08-2017, 10:38 AM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
Join Date: Feb 2009
Posts: 927


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 ={
  AnyInt NumberOfElements =5000;
  Data ={sqrt(T)};   
  AnyKinMeasureOrg &ref=.YourJoint;
TIP: How to save and load results. play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
Reply With Quote
Old 11-08-2017, 01:16 PM
msan00 msan00 is offline
Join Date: Apr 2009
Posts: 58


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 Skipper Andersen, Ph.D.
Associate Professor
The AnyBody Research Group
Aalborg University

Last edited by msan00; 11-08-2017 at 01:19 PM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 03:04 AM.