Python Data Types

Hello,

I translated the aruco code detection example to python and noticed I could not set a translation and orientation of a Pose with set_translation and set_orientation.

For example

test_pose = sl.Pose()
test_translation = Translation(1,2,3)
test_pose.set_translation(test_translation)

Looking at the library installed on my machine, I see that these functions have not been implemented.

set_translation

def set_translation(self, py_translation: Translation) -> None:
       pass

Translation constructor

def init_vector(self, t1: float, t2: float, t3: float) -> None:
        pass

Is this intended? If so, is there a recommended way to work with these types in Python?

I’m using ZED SDK 5.0 on Ubuntu 22.04 and on Orin AGX

Hi @bigsmol ,

Thank you for reaching us. Could you please run the ZED_Diagnostic tool and send me the generated json file to investigate deeper ?

About the function you mentionned, here is the zed-python-api: GitHub - stereolabs/zed-python-api: Python API for the ZED SDK and you can find for example “set_translation” here: zed-python-api/src/pyzed/sl.pyx at master · stereolabs/zed-python-api · GitHub

Best regards,

Here is the json file from ZED Diagnostic, please let me know if there is any other information that is helpful!

ZED_Diagnostic_Results.json (10.4 KB)

Thanks for the diagnostic, did you try to print the pose ? What are the translation and orientation values ?