## [Simulated Kinect] Do not detect points on far clipping plane

Typically: "How do I... ", "How can I... " questions
ravi
Posts: 85
Joined: 24 Oct 2016, 08:00

### [Simulated Kinect] Do not detect points on far clipping plane

I am using simulated Kinect inside V-REP to capture point cloud. I noticed following unwanted behaviors with this Kinect-
• It has detected points on far clipping plane (it is a free space, so there shouldn't be any points)
• The far clipping plane is not exactly plane. instead, it is a curved surface.
Please see a screenshot of the scene. Notice the red colored points detected by Kinect in the figure below-

Why such unwanted behaviors?

The points on a point cloud represent a kind of surface, so there shouldn't be any points on free space. How to stop Kinect to detect points on far clipping plane? Please note that my goal is to generate a similar point cloud which we can get from the real Kinect sensor.

https://www.dropbox.com/s/d5vxje4z25fxe ... d.ttt?dl=0

-
Thanks

coppelia
Posts: 7936
Joined: 14 Dec 2012, 00:25

### Re: [Simulated Kinect] Do not detect points on far clipping plane

Hello,

you are free to modify that behaviour. In the current code, the points that do not detect anything are clipped to a maximum distance from the sensor. You could modify the code to following:

Code: Select all

                    if u[w+3]<2.5 then
local p={u[w+1],u[w+2],u[w+3]}