Following the docs at https://docs.luxonis.com/projects/sdk/en/latest/samples/PointcloudComponent/SDK_pointcloud/#pointcloud-demo
The depthai-sdk example pointcloud.py does not run - two errors:
AttributeError: 'OakCamera' object has no attribute 'camera'
color = oak.camera('color')
^^^^^^^^^^
AttributeError: 'OakCamera' object has no attribute 'camera'
Changing this to:
color = oak.create_camera('color')
appears to fix that error, but
'OakCamera' object has no attribute 'create_pointcloud'
pcl = oak.create_pointcloud(stereo=stereo, colorize=color)
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'OakCamera' object has no attribute 'create_pointcloud'
This same errors occur with either install from sources or install from pypi.
UPDATE:
In my environment the installed oak_camera.py
lib/python3.11/site-packages/depthai_sdk/oak_camera.py
does not include the create_pointcloud class method.
This file does: depthai/depthai_sdk/src/depthai_sdk/oak_camera.py
but that file expects ahrs.filters in xout_imu.py which also is missing in the installed site-packages.
Seeing this leads me to believe that even if the create_pointcloud() method existed, the lack of an IMU in my particular Oak-D-Lite would prevent me from using the method.