ZED Unity: Retrieving temperature data

I’m working on a project where we’re deploying ZED 2i cameras outdoors in a hot dry climate and I’d like to gather temperature data at regular intervals just to keep an eye on things. I see that there are ways in the zed-unity plugin to get data for some sensors. However, even though CELSIUS is listed as an available unit, I don’t see a way to actually acquire temperature data.

Hi,

You should be able to retrieve the temperature data by calling the ZEDCamera.GetInternalSensorsData zed-unity/ZEDCamera.cs at master · stereolabs/zed-unity · GitHub).

Best regards,
Benjamin Vallon

Thanks! I guess I was looking in the wrong place. Separate question: What units does this use? When I write out temperature sensor data to the console I get this: {“imu_temp”:2.1875,“barometer_temp”:-0.875,“onboard_left_temp”:-2.0625,“onboard_right_temp”:0.0}

I get similar results whether I use IMAGE or CURRENT.

(Btw this is on Windows 10, CUDA 11.1, ZED SDK 3.5.6)

The temperature is in CELCIUS unit.

I guess that’s not the values you expected. Can you run the ZED Sensor viewer tool to see if you obtain the same values ?

Best regards,
Benjamin Vallon