SensorsData Class Reference

Class containing all sensors data (except image sensors) to be used for positional tracking or environment study. More...

Functions

None init_sensorsData (self, SensorsData sensorsData)
 Copy constructor. More...
 
CAMERA_MOTION_STATE camera_moving_state (self)
 Motion state of the camera.
 
int image_sync_trigger (self)
 Indicates if the sensors data has been taken during a frame capture on sensor. More...
 
IMUData get_imu_data (self)
 Gets the IMU data. More...
 
BarometerData get_barometer_data (self)
 Gets the barometer data. More...
 
MagnetometerData get_magnetometer_data (self)
 Gets the magnetometer data. More...
 
TemperatureData get_temperature_data (self)
 Gets the temperature data. More...
 

Detailed Description

Class containing all sensors data (except image sensors) to be used for positional tracking or environment study.

Note
Some data are not available in SVO and streaming input mode.
They are specified by a note "Not available in SVO or STREAM mode." in the documentation of a specific data.
If nothing is mentioned in the documentation, they are available in all input modes.

Functions

◆ init_sensorsData()

None init_sensorsData (   self,
SensorsData  sensorsData 
)

Copy constructor.

Parameters
sensorsData: sl.SensorsData object to copy.

◆ image_sync_trigger()

int image_sync_trigger (   self)

Indicates if the sensors data has been taken during a frame capture on sensor.

If the value is 1, the data has been retrieved during a left sensor frame acquisition (the time precision is linked to the IMU rate, therefore 800Hz == 1.3ms).
If the value is 0, the data has not been taken during a frame acquisition.

◆ get_imu_data()

IMUData get_imu_data (   self)

Gets the IMU data.

Returns
sl.IMUData containing the IMU data.

◆ get_barometer_data()

BarometerData get_barometer_data (   self)

Gets the barometer data.

Returns
sl.BarometerData containing the barometer data.

◆ get_magnetometer_data()

MagnetometerData get_magnetometer_data (   self)

Gets the magnetometer data.

Returns
sl.MagnetometerData containing the magnetometer data.

◆ get_temperature_data()

TemperatureData get_temperature_data (   self)

Gets the temperature data.

Returns
sl.TemperatureData containing the temperature data.