Page 1 of 1

How to Program in C++ or Python

Posted: 16 Oct 2013, 13:08
by FirstRainLast
Hi All.
I was wondering if anyone knows how to write a program in C++ or Python in V-REP Simulator's script editore?

Thanks in advance.

Re: How to Program in C++ or Python

Posted: 16 Oct 2013, 21:43
by fferri
You can't write a script in C++ or Python.

You can however write a plugin in C++, using the regular API.
Or you can write an external Python program, and use the remote API to interface with V-REP.

If you want to write a script, use Lua. It has a very simple syntax, easy to understand, and you can get the most of the job done by studying the code in the examples.

You should read the manual section Writing code in and around V-REP

Re: How to Program in C++ or Python

Posted: 26 Sep 2017, 08:05
by SOUMYA***
Hi
can i get an idea of programming in vrep. I have written programs in C i.e., in Web based editor for kilobots.
How do i run these swarm of robots in vrep?
What is the comment we use to perform looping among the kilobots i.e., perform repeated functions like moving straight then left and then right with a delay and then move again with same functions repeatedly.

Thanks

Re: How to Program in C++ or Python

Posted: 26 Sep 2017, 13:14
by coppelia
Hello,

your question is very specific to the Kilobot robot, and we can't really help you with that. But in the end, the kilobot robots are controlled by child scripts written in Lua. Make sure you first get a feeling on how things work on V-REP before trying to get your hands onto something very specific.

Cheers