Struct SampleCalibrationData

Nested Relationships

Nested Types

Struct Documentation

struct SampleCalibrationData

Calibration data for the Sample LiDAR (required for some sensors)

Real sensor integrations can replace this stub with calibration tables such as per-laser angle offsets, distance corrections, or timing offsets.

Public Types

enum class ErrorCode : uint8_t

Values:

enumerator OPEN_FOR_READ_FAILED

Opening a calibration file for reading failed.

enumerator OPEN_FOR_WRITE_FAILED

Opening a calibration file for writing failed.

Public Functions

inline util::expected<std::monostate, Error> save_to_file(const std::string &calibration_file)

Save calibration data to a file.

Parameters:

calibration_file – Path to save the calibration file

Returns:

std::monostate on success, Error on failure.

Public Static Functions

static inline util::expected<SampleCalibrationData, Error> load_from_file(const std::string &calibration_file)

Load calibration data from a file, e.g. for offline decoding.

Parameters:

calibration_file – Path to the calibration file

Returns:

Parsed calibration data on success, Error on failure.

struct Error

Error payload for calibration file operations.

Public Members

ErrorCode code
std::string message