Proximity sensors

Typically: "How do I... ", "How can I... " questions
Post Reply
Samah
Posts: 11
Joined: 13 Feb 2019, 22:00

Proximity sensors

Post by Samah »

Hello Coppelia,

I'd like to ask about the color signification of proximity sensors and their functioning.
I've tried reading about them in the documents I could find but I didn't find an answer to my questions.

I've noticed that when the proximity sensor's color turns to a dark pink/purple, then that means it has detected an object/obstacle. (as shown in the following image)
https://ibb.co/pR6gPX0
And when it's a light pink, then the proximity sensor hasn't detected anything. (as shown in the following picture).
https://ibb.co/RPL07zY
However, in both pictures he's coming into contact with an obstacle, and the proximity sensor keeps going back and forth from detecting the obstacle, to not detecting it, over and over.
I've also verified that with the detectionState values in Matlab, that change back and forth between 1 and 0. (Although the distances given by the proximity sensor seem accurate even when the detectedstate is 0.)
https://ibb.co/68Zm274

Best regards,
Samah.

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

Re: Proximity sensors

Post by coppelia »

Hello,

you can individually adjust the color of proximity sensors' detection volume (both the detection and non-detection state). You can also hide the detection volume. In that situation it is easier to see the detection ray (in yellow/black flashing if detecting).

If your sensor's detection volume intersects with an object, but the object is not detected, then make sure that the object is detectable, and that the sensor has correct configuration (e.g. front/back face detection, limited angle detection, etc.)

Cheers

Samah
Posts: 11
Joined: 13 Feb 2019, 22:00

Re: Proximity sensors

Post by Samah »

Hello Coppelia,

Thank you for your answer.
I fixed the problem by adjusting the detection parameters of the proximity sensors.

Best regards,
Samah.

Post Reply