Search found 8 matches

by victorcv_s
04 Nov 2021, 15:51
Forum: General questions
Topic: [V-REP][MAP MATRIX][V-REP TO MATLAB]
Replies: 1
Views: 3484

[V-REP][MAP MATRIX][V-REP TO MATLAB]

Hi! I need to pass a map in V-REP 3.6.2 to matrix in MATLAB, but i don't know how. I have an example here (but the source doesn't teach how to do it). Image 1: The map with obstacles in V-REP https://drive.google.com/file/d/1HH7OyGpsuxXpHqNZoIIZC3A6WWWqctHf/view?usp=sharing Image 2:The dimensions of...
by victorcv_s
29 Oct 2021, 20:58
Forum: General questions
Topic: Sensor distance
Replies: 4
Views: 6214

Re: Sensor distance

Hi! I add those lines to my MATLAB code disp(returnCode) [returnCode,Distance_Value]=vrep.simxGetStringSignal(Robot,'Distance_table',vrep.simx_opmode_buffer); disp(returnCode) first returnCode, from previous functions, is 0, ok. But second returnCode is 64. in V-REP the robot is driving normally for...
by victorcv_s
29 Oct 2021, 17:47
Forum: General questions
Topic: Sensor distance
Replies: 4
Views: 6214

Re: Sensor distance

Hi, Sorry, I wrote disp(Distance_Value) but even when I write disp(Distance) the problem is that MATLAB doesn't return anything. I tried to put some 'disp(3)' to see if it is sending something, and yes, MATLAB return normal 'disp' but aparently Distance array is empty. Image of those variables on MA...
by victorcv_s
28 Oct 2021, 05:49
Forum: General questions
Topic: Sensor distance
Replies: 4
Views: 6214

Sensor distance

Hi, I'm working in V-REP 3.6.2 with a 'Pioneer_p3dx' and a 'LaserScanner_2D'. I'm begginer at V-REP, but I tried to look for commands in 'https://www.coppeliarobotics.com/helpFiles/en/remoteApiFunctionsMatlab.htm', but nothing really help me. I need to get the distance from this sensor. image of my ...
by victorcv_s
14 Sep 2021, 07:00
Forum: General questions
Topic: [V-REP][ANGLES][LIMITS]
Replies: 1
Views: 2821

[V-REP][ANGLES][LIMITS]

Hi, I can't find in coppelia documents about angles limits.

I know that 'g' is (-pi,pi) but in which of them is the interval open? ]-pi,pi] or [-pi,pi[?
and how about 'a' and 'b' angles?

thanks!
by victorcv_s
13 Sep 2021, 09:08
Forum: General questions
Topic: [Matlab][VREP][Synchronous simulation]
Replies: 2
Views: 3384

Re: [Matlab][VREP][Synchronous simulation]

Hello,

I solve it. After searching a lot, I discovered that I should set on 'remoteApiConnections.txt' from 'C:\Program Files\V-REP3\V-REP_PRO_EDU' the same port i'm using at MATLAB.

Sorry, I'm not a professional and all I know about Coppelia/V-REP was in a class about it with ~30min.
by victorcv_s
11 Sep 2021, 21:27
Forum: General questions
Topic: [Matlab][VREP][Synchronous simulation]
Replies: 2
Views: 3384

[Matlab][VREP][Synchronous simulation]

Hi. I'm codding a "Pionner_p3dx" with a synchronous code in MATLAB, but seems that Coppelia isn't follow the code. My code controls 40 steps of 0.05s (50ms) each, and should pass 2 seconds of total simulation time, but pass about 60-120 seconds. why? Seems like it cannot read the "vrep.simxSynchrono...
by victorcv_s
11 Sep 2021, 09:02
Forum: General questions
Topic: [Matlab][VREP][Motor velocity unity]
Replies: 1
Views: 3235

[Matlab][VREP][Motor velocity unity]

I'm writting a code to control the robot with MATLAB. In this line: [returnCode]=vrep.simxSetJointTargetVelocity(clientID,left_Motor, velocity ,vrep.simx_opmode_blocking); I put velocity = 0.5 [returnCode]=vrep.simxSetJointTargetVelocity(clientID,left_Motor, 0.5 ,vrep.simx_opmode_blocking); but whic...