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

pyzed.slSensorsData has no attirbute MagnetometerData #214

Closed Bovakinn closed 2 years ago

Bovakinn commented 2 years ago

Preliminary Checks

Description

Hi I recently upgraded the SDK to version 3.7.2 for Jetpack 4.4 on an Nvidia Jetson Xavier NX and encounter the following error when trying to access the Magnetometer using the example python script. pyzed.slSensorsData has no attirbute MagnetometerData

Steps to Reproduce

Installed this package: https://download.stereolabs.com/zedsdk/3.7/l4t32.4/jetsons Used code in tutorial 7: Getting Sensors Data

Expected Result

Returned Magnetometer readings

Actual Result

pyzed.slSensorsData has no attirbute MagnetometerData

ZED Camera model

ZED2

Environment

Nvidia Xavier NX
arm64
Jetpack version is 4.4-b144
Python version is 3.6.9
Cuda version is 10.2.89

Anything else?

No response

alassagne-sl commented 2 years ago

Hello, are you talking about this tutorial ? On my setup it runs correctly. Maybe you just have a typo somewhere ? you should write sensors_data.get_barometer_data() and not sensors_data.MagnetometerData.

If that's not the issue, can you share your code ?

Bovakinn commented 2 years ago

I'm not sure where I got the method from, but the tutorial you linked worked perfectly.

Bovakinn commented 2 years ago

The code I was using was found on this page https://www.stereolabs.com/docs/sensors/magnetometer/

alassagne-sl commented 2 years ago

Thank you for the report ! We'll change this as soon as we can. Have a great day Antoine