Lua with zeromq

Typically: "How do I... ", "How can I... " questions
Post Reply
neostek
Posts: 21
Joined: 15 Feb 2013, 10:26

Lua with zeromq

Post by neostek » 18 Jan 2016, 19:53

Hi,

where can i find a tutorial that explain how to extend the lua's functionalties in vrep?
Because i would to add the zeromq lua library bindings and use it inside a child script.
thank you very much for your help

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

Re: Lua with zeromq

Post by coppelia » 19 Jan 2016, 14:52

Hello,

normally there is not much to do, you simply drop the various files into V-REP's directory, then, inside of your script that requires the extension library, you write something like:

Code: Select all

extensionLib=require("nameOfTheLib")
Have a look how it was done with the luaSocket library (you can find one example in the demo scene socketAndTubeCommunicationExample.ttt)

Cheers

Post Reply