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
sinusoidal function?
Re: sinusoidal function?
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
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
-
- Posts: 3
- Joined: 14 May 2013, 14:46
Re: sinusoidal function?
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
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