Forums Anyscript.org AnyFunPolynomial
 User Name Remember Me? Password
 Register FAQ Calendar Search Today's Posts Mark Forums Read

 Notices Meet us !

 Thread Tools Display Modes
#1
11-07-2017, 11:50 AM
 hujiayu1315 Junior Member Join Date: Jun 2014 Posts: 8
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
#2
11-08-2017, 09:38 AM
 toerholm AnyBody Support Join Date: Feb 2009 Posts: 907

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 :

Code:
```AnyKinEqInterPolDriver myfunc ={
Type=Bspline;
AnyInt NumberOfElements =5000;
T=linspace(-10,10,NumberOfElements);
Data ={sqrt(T)};
AnyKinMeasureOrg &ref=.YourJoint;
};```
__________________
TIP: How to save and load 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.
#3
11-08-2017, 12:16 PM
 msan00 Member Join Date: Apr 2009 Posts: 58

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

Last edited by msan00; 11-08-2017 at 12:19 PM.

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Professional Forum     AnyBody Managed Model Repository     Gallery of user models and videos     AnyGait     AnyBody Exporter for SOLIDWORKS     Debug model General Forum     AnyBody Modeling System     Wish list for AMS and AMMR     Announcements Self-Supported Forum     AnyBody Model Repository     Debug model Archive     AnyScript Message Archive

All times are GMT +2. The time now is 09:36 AM.

 Contact Us - Anyscript.org - Archive - Top