PointCloud to GPU

Hello, I would like to load the Point Cloud into the GPU as described in the tutorial here:

However, the following error occurs:

  File "zed/detect.py", line 629, in zed
    self.zed.retrieve_measure(self.point_cloud_left_tmp, sl.MEASURE.XYZ, sl.MEM.GPU)
  File "/usr/lib/python3.8/enum.py", line 384, in __getattr__
    raise AttributeError(name) from None
AttributeError: GPU

Does anyone know what the problem is?

Edit:
I think the posted tutorial is outdated, since

width = zed.get_resolution().width / 2

is also not working:
AttributeError: 'pyzed.sl.Camera' object has no attribute 'get_resolution'

Maybe someone has a proper new way for sdk>=4.0 how to manage this issue.

Hello @Phyrokar

Thanks for bringing this to our attention, the documentation is indeed outdated, we’ll fix that shortly.

You can refer to the tutorials and code samples on the dedicated GitHub repo, they are up-to-date (the documentation can still be a basis, but the code samples are obsolete): https://github.com/stereolabs/zed-sdk/tree/master/depth%20sensing