Temperature Sensors Overview

Temperature sensors are located near in different areas of Stereolabs cameras PCB. They are used to monitor the thermal state of different sensors on the board, and adjust their calibration parameters if necessary (ZED 2 only).

Output Data

The following information is accessible from the camera sensor stack:

Output Data Description Units
Temperature Sensors (25 Hz)
temperature_map[ONBOARD_LEFT] Temperature measured by the onboard temperature sensor located next to the left image sensor. °C
temperature_map[ONBOARD_RIGHT] Temperature measured by the onboard temperature sensor located next to the right image sensor. °C
temperature_map[IMU] IMU temperature. °C
temperature_map[BAROMETER] Barometer temperature. °C

Using the API

The temperature sensors are located near the following sensors (in ZED 2):

  • Left image sensor
  • Right image sensor
  • IMU
  • Barometer

To access the temperature measurements of these sensors, use the code below.

SensorsData::TemperatureData temperature_data;
temperature_data = sensor_data.temperature;
float temperature_left, temperature_right, temperature_imu, temperature_barometer;
temperature_data.get(SensorsData::TemperatureData::SENSOR_LOCATION::ONBOARD_LEFT, temperature_left);
temperature_data.get(SensorsData::TemperatureData::SENSOR_LOCATION::ONBOARD_RIGHT, temperature_right);
temperature_data.get(SensorsData::TemperatureData::SENSOR_LOCATION::IMU, temperature_imu);
temperature_data.get(SensorsData::TemperatureData::SENSOR_LOCATION::BAROMETER, temperature_barometer);
temperature_data = sl.SensorsData.TemperatureData()
temperature_data = sensor_data.temperature;
temperature_left = temperature_data.get(sl.SensorsData.TemperatureData.SENSOR_LOCATION.ONBOARD_LEFT)
temperature_right = temperature_data.get(sl.SensorsData.TemperatureData.SENSOR_LOCATION.ONBOARD_RIGHT)
temperature_imu = temperature_data.get(sl.SensorsData.TemperatureData.SENSOR_LOCATION.IMU)
temperature_barometer = temperature_data.get(sl.SensorsData.TemperatureData.SENSOR_LOCATION.BAROMETER)

Code Example

For code example, check out the Getting Sensor Data tutorial.