simxReadProximitySensor

Typically: "How do I... ", "How can I... " questions
Post Reply
Sophia
Posts: 12
Joined: 31 Oct 2019, 06:33

simxReadProximitySensor

Post by Sophia » 07 Nov 2019, 05:06

i get a detected point when i use simxReadProximitySensor in c client. i want to know the mean of point's member. now i get the third member is valid and the first and second is 0. and in vrep the sensor's parameters, what is the 'back face detection;?

coppelia
Site Admin
Posts: 7441
Joined: 14 Dec 2012, 00:25

Re: simxReadProximitySensor

Post by coppelia » 08 Nov 2019, 15:54

Sorry I don't understand your question. You don't understand the arguments to the function? Which arguments?

In a 3D world, a face has always two possible orientations in relation to the user or camera: front face visible, or back face visible. The same can be applied in relation to a proximity sensor.

Cheers

Sophia
Posts: 12
Joined: 31 Oct 2019, 06:33

Re: simxReadProximitySensor

Post by Sophia » 09 Nov 2019, 03:55

coppelia wrote:
08 Nov 2019, 15:54
Sorry I don't understand your question. You don't understand the arguments to the function? Which arguments?

In a 3D world, a face has always two possible orientations in relation to the user or camera: front face visible, or back face visible. The same can be applied in relation to a proximity sensor.

Cheers
i get the returned value is point[3].and point[0]=0,point[1]=0,point[2]is the real distance.so i want to know what is the point[0]and point[1].

coppelia
Site Admin
Posts: 7441
Joined: 14 Dec 2012, 00:25

Re: simxReadProximitySensor

Post by coppelia » 11 Nov 2019, 07:10

you get the 3D position of the detected point, relative to the sensor frame. That's 3 values, one for each of (x,y,z).

Cheers

Post Reply