proximity sensors

Typically: "How do I... ", "How can I... " questions
Post Reply
luberdis

proximity sensors

Post by luberdis »

HI Coppelia

I connect Vrep to Matlab, the robot has 9 proximity sensors that cover all the front side of the robot, each sensor has a range of 20 degrees (20*9=180 degrees). So the problem is that when an object is detected from one sensors all the other sensors which are left clockwise also detect the object even though it is out of their range (but the sensors which are right side work fine)

https://ibb.co/N2f7c0f
https://ibb.co/pvSYQVt

Can you help me with this ?
Here is also part of the Matlab code

https://ibb.co/LvWNjyp

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

Re: proximity sensors

Post by coppelia »

From the picture, only one sensor detects the object. This means that you have a bug in your Matlab script.

Make sure to correctly use the legacy remote API streaming mode!
Once streaming was enabled, it will take a few milliseconds before the first packet has arrived.

Cheers

Post Reply