How to Program in C++ or Python

Typically: "How do I... ", "How can I... " questions
Post Reply
FirstRainLast
Posts: 10
Joined: 02 Oct 2013, 09:01

How to Program in C++ or Python

Post 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.

fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: How to Program in C++ or Python

Post 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

SOUMYA***
Posts: 1
Joined: 21 Sep 2017, 12:22

Re: How to Program in C++ or Python

Post 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

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

Re: How to Program in C++ or Python

Post 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

Post Reply