sinusoidal function?

Typically: "How do I... ", "How can I... " questions
Post Reply
yangssoo
Posts: 2
Joined: 20 May 2013, 10:20

sinusoidal function?

Post 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

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: sinusoidal function?

Post 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

GabrieleGreco
Posts: 3
Joined: 14 May 2013, 14:46

Re: sinusoidal function?

Post 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

Post Reply