toinsson / pyrealsense

Cross-platform ctypes/Cython wrapper to the librealsense library (v1.x)
http://pyrealsense.readthedocs.io
Apache License 2.0
121 stars 46 forks source link

SR300 cannot import point cloud based on pyrealsense #67

Closed ljc19800331 closed 6 years ago

ljc19800331 commented 6 years ago
Required Info
Camera Model SR300
Firmware Version
Operating System & Version ubuntu 16.04
librealsense version v1.12.1
pyrealsense version 2.2

I plan to visualize the data from the demo code from "pyrealsense/examples/show_vtk.py" but it seems the camera cannot read the pointcloud and depth data. Thanks.

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in pc = cam._get_pointcloud() File "build/bdist.linux-x86_64/egg/pyrealsense/core.py", line 537, in _get_pointcloud rsutilwrapper.deproject_depth(pointcloud, self.depth_intrinsics, depth, self.depth_scale) AttributeError: 'SR300-617206002764' object has no attribute 'depth_intrinsics'