Report crashes, strange behaviour, or apparent bugs
coppelia
Site Admin
Posts: 10504 Joined: 14 Dec 2012, 00:25
Post
by coppelia » 19 Nov 2015, 07:47
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
Space
Posts: 27 Joined: 16 Nov 2015, 17:07
Post
by Space » 20 Nov 2015, 13:58
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
coppelia
Site Admin
Posts: 10504 Joined: 14 Dec 2012, 00:25
Post
by coppelia » 22 Nov 2015, 04:37
You can share files or images via dropBox or a similar service.
Cheers
coppelia
Site Admin
Posts: 10504 Joined: 14 Dec 2012, 00:25
Post
by coppelia » 23 Nov 2015, 21:02
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
Space
Posts: 27 Joined: 16 Nov 2015, 17:07
Post
by Space » 24 Nov 2015, 22:17
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
coppelia
Site Admin
Posts: 10504 Joined: 14 Dec 2012, 00:25
Post
by coppelia » 25 Nov 2015, 09:48
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