Search found 39 matches

by DavideIng
09 Oct 2017, 11:58
Forum: General questions
Topic: Connection between matlab and V-rep
Replies: 1
Views: 618

Connection between matlab and V-rep

Hello, the code that I am using to get the absolute position of an ePuck from v-rep scene to matlab workspace is the following: vrep=remApi('remoteApi'); vrep.simxFinish(-1); clientID=vrep.simxStart('127.0.0.1',19999,true,true,5000,5); if (clientID>-1) disp('Connected to remote Api server'); [return...
by DavideIng
09 Oct 2017, 09:39
Forum: General questions
Topic: Get real time position v-rep object to matlab
Replies: 1
Views: 741

Get real time position v-rep object to matlab

Hello, I am trying to get the position of a mobile robot (epuck) from vrep to matlab. My matlab script is the following: function ePuckGetPosition () disp('Program started'); vrep=remApi('remoteApi'); % remote object called vrep vrep.simxFinish(-1); % close previous connection clientID=vrep.simxStar...
by DavideIng
07 Oct 2017, 12:17
Forum: General questions
Topic: Using of remoteApiCommandServerExample.ttt
Replies: 1
Views: 674

Using of remoteApiCommandServerExample.ttt

Hello, I'm trying to run the complexCommandTest.m in matlab, but it return the following error message: Error in remApi (line 789) loadlibrary(obj.libName,@remoteApiProto); Error in complexCommandTest (line 31) vrep=remApi('remoteApi'); % using the prototype file (remoteApiProto.m) Caused by: Error ...
by DavideIng
06 Oct 2017, 08:41
Forum: General questions
Topic: From V Rep to Matlab
Replies: 1
Views: 873

From V Rep to Matlab

Hello,
How could I read the position of a mobile robot in a V Rep scene with Matlab?
Thanks in advance
Davide
by DavideIng
04 Oct 2017, 15:26
Forum: General questions
Topic: Use of simHandleChildScripts(sim_handle_all)
Replies: 1
Views: 1101

Use of simHandleChildScripts(sim_handle_all)

Hello, I'm trying to write a Non-Threaded Child Script and I would like to know if I have to write this command only on the main script or in the Non-Threaded Child Script as well. The following error is shown when the command above is written in the Child Script: Lua runtime error: [string "SCRIPT ...
by DavideIng
04 Oct 2017, 14:52
Forum: General questions
Topic: Change the color of a wall
Replies: 1
Views: 1056

Change the color of a wall

Hello, I am trying to change the color of a wall in the scene named 'wall2' with a Non-Threaded child script. The code is the following: if (sim_call_type==sim_childscriptcall_initialization) then if (simGetScriptExecutionCount()==0) then --Initialization code wall2Handle=simGetObjectHandle('wall2')...
by DavideIng
04 Oct 2017, 08:24
Forum: General questions
Topic: Read and Write the position of an object from vrep to matlab
Replies: 1
Views: 1037

Read and Write the position of an object from vrep to matlab

Hello,
I am trying to read the position of a moving object on the scene from v rep and then obtain the vector in matlab.
Someone may explane me how can I do that?

Many thanks
Davide
by DavideIng
28 Sep 2017, 10:10
Forum: General questions
Topic: How to change in real time the color of pixels in an infrastructure like wall etc..
Replies: 1
Views: 1122

How to change in real time the color of pixels in an infrastructure like wall etc..

Hi, I need to simulate a diffusive phenomenon (with an advection-diffusion matlab algorithm that I already have) and I am trying to simulate it by changing the color of an infrastructure to be able to read it by vision sensor attached upon a swarm of robot (epuck). How can I do that? Can I do it wit...
by DavideIng
21 Sep 2017, 17:48
Forum: Feature requests
Topic: Simulation of Diffusive Process
Replies: 1
Views: 1484

Simulation of Diffusive Process

Is there the possibility to simulate a diffusive process like pollusion in water or something similar with V-REP?
I need that to solve a source seeking process with e-puck swarm.
Many Thanks