SensorsConfiguration Struct Reference

Structure containing information about all the sensors available in the current device. More...

Functions

bool isSensorAvailable (SENSOR_TYPE sensor_type)
 Checks if a sensor is available on the. More...
 

Attributes

uint firmware_version
 Firmware version of the sensor module. More...
 
float4 camera_imu_rotation
 IMU to left camera rotation (quaternion). More...
 
float3 camera_imu_translation
 IMU to left camera translation. More...
 
float4 imu_magnometer_rotation
 Magnetometer to IMU rotation (quaternion). More...
 
float3 imu_magnometer_translation
 Magnetometer to IMU translation. More...
 
SensorParameters accelerometer_parameters
 Configuration of the accelerometer. More...
 
SensorParameters gyroscope_parameters
 Configuration of the gyroscope. More...
 
SensorParameters magnetometer_parameters
 Configuration of the magnetometer. More...
 
SensorParameters barometer_parameters
 Configuration of the barometer. More...
 

Detailed Description

Structure containing information about all the sensors available in the current device.

Information about the camera sensors is available in the sl.CameraInformation struct returned by sl.Camera.GetCameraInformation().

Note
This structure is meant to be used as a read-only container.
Editing any of its fields will not impact the ZED SDK.

Functions

◆ isSensorAvailable()

bool isSensorAvailable ( SENSOR_TYPE  sensor_type)
inline

Checks if a sensor is available on the.

Parameters
sensor_typeSensor type to check.
Returns
true if the sensor is available on the device, otherwise false.

Variables

◆ firmware_version

uint firmware_version

Firmware version of the sensor module.

Note
0 if no sensors are available (sl.MODEL.ZED).

◆ camera_imu_rotation

float4 camera_imu_rotation

IMU to left camera rotation (quaternion).

Note
It contains the rotation between the IMU frame and camera frame.

◆ camera_imu_translation

float3 camera_imu_translation

IMU to left camera translation.

Note
It contains the rotation between the IMU frame and camera frame.

◆ imu_magnometer_rotation

float4 imu_magnometer_rotation

Magnetometer to IMU rotation (quaternion).

Note
It contains rotation between IMU frame and magnetometer frame.

◆ imu_magnometer_translation

float3 imu_magnometer_translation

Magnetometer to IMU translation.

Note
It contains translation between IMU frame and magnetometer frame.

◆ accelerometer_parameters

SensorParameters accelerometer_parameters

Configuration of the accelerometer.

Referenced by SensorsConfiguration.isSensorAvailable().

◆ gyroscope_parameters

SensorParameters gyroscope_parameters

Configuration of the gyroscope.

Referenced by SensorsConfiguration.isSensorAvailable().

◆ magnetometer_parameters

SensorParameters magnetometer_parameters

Configuration of the magnetometer.

Referenced by SensorsConfiguration.isSensorAvailable().

◆ barometer_parameters

SensorParameters barometer_parameters

Configuration of the barometer.

Referenced by SensorsConfiguration.isSensorAvailable().