I try to get the depth image of a Kinect camera using Python. The webots can detect Kinect device successfully and can enable it too. but, when I try to use getRangeImage function to get the depth values, the controller is crashed. My code is as follows:
self.kinectrange=self.getRangeFinder("kinect range")
self.kinectrange.enable(timestep)
image=self.kinectrange.getRangeImage ()
What is the problem? O.S : windows 10 Webots: R2019a revision 1