Page 2 of 2
Re: simxReadProximitySensor not working on python & matlab
Posted: 19 Nov 2015, 07:47
by coppelia
What is the return value of that function? Did you enable streaming correctly like in the link I provided?
Print the return value:
Code: Select all
[returnValue,data]=vrep.simxGetStringSignal(clientID,'myPts',vrep.simx_opmode_buffer)
Above succeeds with a return value of sim_return_ok only if you have correctly initialized streaming.
Cheers
Re: simxReadProximitySensor not working on python & matlab
Posted: 20 Nov 2015, 13:58
by Space
Hi Coppelia,
thanks for your replay, I actually got the data and it is working.
my question is why the signal i am plotting is different that the environnement, I don't know how to attach pictures or file i could show you!!
thankvyou
Re: simxReadProximitySensor not working on python & matlab
Posted: 22 Nov 2015, 04:37
by coppelia
You can share files or images via dropBox or a similar service.
Cheers
Re: simxReadProximitySensor not working on python & matlab
Posted: 23 Nov 2015, 12:33
by Space
HI Coppelia,
please find the link for the images :
https://www.dropbox.com/sh/u52apfilv4zs ... Ftjba?dl=0
Regards
Re: simxReadProximitySensor not working on python & matlab
Posted: 23 Nov 2015, 21:02
by coppelia
So it seems you are streaming wrong values. There are many things you could do wrong. Try first with a single point, or a small set of points you generate programmatically.
Cheers
Re: simxReadProximitySensor not working on python & matlab
Posted: 24 Nov 2015, 22:17
by Space
Hi Coppelia,
I don't underdtand what you mean?
Does the point given are the distance or is it the x,y,z of the detected point?
Thanks for your help.
Space
Re: simxReadProximitySensor not working on python & matlab
Posted: 25 Nov 2015, 09:48
by coppelia
What is given or returned are the X/Y/Z coordinates. You can easily compute the distances with math.sqrt(x*x+y*y+z*z).
Cheers