Search found 186 matches

by Eric
29 Sep 2014, 01:37
Forum: General questions
Topic: Help with threashold
Replies: 2
Views: 1377

Re: Help with threashold

Hi Exceptionally I made a scene that solves your problem here . 1_ download the 3.1.3 beta version of V-REP 2_ run the scene 3_ move the blue cube being the robot toward the green cube called "tg#0". When the robot gets close enough from the green cube (i.e. the Euclidean distance between the robot ...
by Eric
23 Sep 2014, 00:40
Forum: Videos around V-REP
Topic: Arduino Esplora and V-REP
Replies: 0
Views: 1853

Arduino Esplora and V-REP

This video shows the connection between the Arduino Esplora and V-REP. The Esplora is streaming its state (accelerometers, buttons, light sensor, temperature, microphone) to its 3D representation in V-REP. Also the user can change the led color and send a buzzer tone to the Esplora from the GUI in ...
by Eric
10 Sep 2014, 22:21
Forum: General questions
Topic: Various doubts
Replies: 8
Views: 2648

Re: Various doubts

A quick google search with "lua or" as parameter gave this.

For the other question:

Code: Select all

pos=simGetObjectPosition(dummyHandle1,-1)
simSetObjectPosition(dummyHandle2,-1,{pos[1], pos[2]+0.2, pos[3]})
by Eric
09 Sep 2014, 21:15
Forum: General questions
Topic: 3D Connexion Mouse
Replies: 2
Views: 2027

Re: 3D Connexion Mouse

Hi....

Also there s a simple way to achieve that using pygame and small script in python to connect via sockets to V-REP

Cheers

Eric
by Eric
26 Aug 2014, 16:45
Forum: General questions
Topic: How to control joints by means UI?
Replies: 7
Views: 3332

Re: How to control joints by means UI?

Hi!

It should ont ba a problem to use the string as a number... Lua is very tolerant. But if not, you can simply use tonumber(string)

Cheers
Eric
by Eric
26 Aug 2014, 08:40
Forum: General questions
Topic: Inserting/Copying models from code
Replies: 8
Views: 3178

Re: Inserting/Copying models from code

and if you want to move the newest copy of the robot instead of the original one, just add robotHandle=simGetObjectLastSelection() right after the simCopyPasteSelectedObject() : --copy / paste the original robot to its current location simCopyPasteSelectedObjects() --assign the newly copied robot s ...
by Eric
26 Aug 2014, 02:35
Forum: General questions
Topic: Inserting/Copying models from code
Replies: 8
Views: 3178

Re: Inserting/Copying models from code

Hi! Here is a non-threaded script code to copy/paste an ePuck robot every 3 seconds. The original epuck is "teleported" to an other location after each copy/paste in order to avoid the "rain of robots" you were talking about. if (simGetScriptExecutionCount()==0) then robotHandle=simGetObjectHandle('...
by Eric
24 Aug 2014, 15:16
Forum: Feature requests
Topic: Oculus Rift in V-rep
Replies: 1
Views: 2484

Re: Oculus Rift in V-rep

time will come... be patient
by Eric
22 Aug 2014, 19:27
Forum: General questions
Topic: Need help with this program
Replies: 11
Views: 4793

Re: Need help with this program

hi 1_ structure... all the code was under a simGetScriptExecutionCount()==0 codition-> executed just once 2_ line 2: -- This script runs in a thread. You can also use a non-threaded script instead simDelegateChildScriptExecution() this cann t be launched from a script that did not launch a thread......