Reading Proximity Sensor Value
Posted: 15 Aug 2018, 08:57
Hi all,
I am new to V-REP and currently I am trying to use it to develop a project about swarm robotics.
Could someone please shed some light about reading the value of the proximity sensor? I am using a ray type for the time being. Using the function listed below I am able to detect whether the proximity sensor has detected an object or not (if front_mid is greater than 0).
Can anyone please guide me towards obtaining a reading depending on the object's distance from the proximity sensor? Similar to a real life scenario.
Thanks and regards
Luke
I am new to V-REP and currently I am trying to use it to develop a project about swarm robotics.
Could someone please shed some light about reading the value of the proximity sensor? I am using a ray type for the time being. Using the function listed below I am able to detect whether the proximity sensor has detected an object or not (if front_mid is greater than 0).
Code: Select all
front_mid=sim.readProximitySensor(frontMidSensor)
Thanks and regards
Luke