SL_SynchronizationParameter Struct Reference

Configuration parameters for data synchronization. More...

Data Fields

double windows_size
 Size of synchronization windows in milliseconds. More...
 
double data_source_timeout
 Duration in milliseconds before considering a camera as inactive if no more data is present (for example camera disconnection). More...
 
bool keep_last_data
 Determines whether to include the last data returned by a source in the final synchronized data. More...
 
double maximum_lateness
 Maximum duration in milliseconds allowed for data to be considered as the last data. More...
 

Detailed Description

Configuration parameters for data synchronization.

The SynchronizationParameter struct represents the configuration parameters used by the synchronizer. It allows customization of the synchronization process based on specific requirements.

Field Documentation

◆ windows_size

double SL_SynchronizationParameter::windows_size

Size of synchronization windows in milliseconds.

The synchronization window is used by the synchronizer to return all data present inside the current synchronization window. For efficient fusion, the synchronization window size is expected to be equal to the mean grab() duration of the camera at the lowest FPS. If not provided, the fusion SDK will compute it from the data's sources.

Default value: 0

◆ data_source_timeout

double SL_SynchronizationParameter::data_source_timeout

Duration in milliseconds before considering a camera as inactive if no more data is present (for example camera disconnection).

The data_source_timeout parameter specifies the duration to wait before considering a camera as inactive if no new data is received within the specified time frame.

Default value: 50

◆ keep_last_data

bool SL_SynchronizationParameter::keep_last_data

Determines whether to include the last data returned by a source in the final synchronized data.

If the keep_last_data parameter is set to true and no data is present in the current synchronization window, the last data returned by the source will be included in the final synchronized data. This ensures continuity even in the absence of fresh data.

Default value: false

◆ maximum_lateness

double SL_SynchronizationParameter::maximum_lateness

Maximum duration in milliseconds allowed for data to be considered as the last data.

The maximum_lateness parameter sets the maximum duration within which data can be considered as the last available data. If the duration between the last received data and the current synchronization window exceeds this value, the data will not be included as the last data in the final synchronized output.

Default value: 50