Page 1 of 1

sinusoidal function?

Posted: 20 May 2013, 10:57
by yangssoo
Hi,

I'm trying to use v-rep

I just use only child script(maybe regular API?)

I want to use sinusoidal function for my own controller.

Is there a regular API function for sinusoidal function? (s.t,. sin, cos, tan...etc)


Thanks

Re: sinusoidal function?

Posted: 20 May 2013, 11:22
by coppelia
Hello,

From a child script you can use the regular API functions. Those are however only related to V-REP. Mathematical functions are taken care by the Lua script interpreter. In your case, use math.sin(). Refer to the various Lua tutorials and references online.

Cheers

Re: sinusoidal function?

Posted: 21 May 2013, 08:36
by GabrieleGreco
Hi everybody,

In the usage of regular API, you program your script in Lua scripting language, i advise to learn some thing at this link: http://www.lua.org/manual/5.2/ under the chapter "Mathematical Functions"

Cheers
Gabriele