OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::rec::DeviceMeta

Which camera produced the file.

Public attributes

model

std::string model

e.g. "Xi 400".

serial

std::string serial

e.g. "24120005".

hardware_revision

std::string hardware_revision

e.g. "3002".

firmware_version

std::string firmware_version

e.g. "3.7.1".

optics_fov_deg

std::optional< float > optics_fov_deg

Horizontal field of view of the fitted optic, in degrees.

Absent on an optic characterised in millimetres, where optics_focal_length_mm carries the number instead. The two are mutually exclusive, and which one is present is how a reader learns the unit -- OperationMode::optics_fov is one integer that means degrees for most optics and millimetres for the rest, and nothing about the value tells them apart (optics_unit does). Writing a focal length into a key named _deg would hand a reader 29 and let it conclude a 29-degree lens.

Absent also on a recording written before anything filled it, and on a camera whose calibration names no unit at all (OpticsUnit::kUnknown), where the SDK does not know which key would be true. A missing field is something a reader can act on; a number in the wrong unit is not.

optics_focal_length_mm

std::optional< float > optics_focal_length_mm

Focal length of the fitted optic, in millimetres.

The counterpart to optics_fov_deg for the optics the camera's calibration characterises that way. At most one of the two is ever present.

optics_text

std::string optics_text

How the camera labels the fitted optic beyond its number, UTF-8.

e.g. "O60", "G7". Often empty even on a camera that has one, and then it is left out. It is what tells apart two optics that share a number -- which happens -- so it is recorded alongside the number rather than instead of it.