stereolabs / zed-python-api

Python API for the ZED SDK
https://www.stereolabs.com/docs/app-development/python/install/
MIT License
209 stars 95 forks source link

AttributeError: type object 'pyzed.sl.Translation' has no attribute 'dot_translation' #165

Closed Shishir-Kumar-Singh closed 3 years ago

Shishir-Kumar-Singh commented 3 years ago

Getting this error while running the ZED sample python program on Jetson AGX Xavier python3 positional_tracking.py Traceback (most recent call last): File "positional_tracking.py", line 50, in viewer = gl.GLViewer() File "ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 162, in init self.camera = CameraGL() File "ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 476, in init self.setDirection(tmp, tmp2) File "ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 528, in setDirection if(sl.Translation.dottranslation(self.vertical, self.up_) < 0.): AttributeError: type object 'pyzed.sl.Translation' has no attribute 'dot_translation'

Platform: Jetson AGX Xavier, Jetpack 4.4 ZED SDK 3.3

qt-truong commented 3 years ago

Hi @Shishir-Kumar-Singh,

The sample you launched uses a function that is not implemented in the SDK version you downloaded. Can you try again with the SDK 3.4.0 RC1, available here : https://community.stereolabs.com/t/zed-sdk-3-4-0-release-candidate/58

Shishir-Kumar-Singh commented 3 years ago

Thanks for the suggestion. It worked for me after installing 3.4.0 version.