optris::sdk::FrameFocusReading
A lens position for a frame, and how far to trust it: answered by Imager::GetFrameFocusReading() and Player::GetFrameFocusReading().
Imager::GetFrameFocus() answers only positions from the frame itself (FrameFocusSource::kFrame). This answers those too, and also the status telegram's, so check source before treating a position as the frame's own.
Public attributes
focus
FrameFocus focus
The position, in the same scales as a frame's own.
source
FrameFocusSource source = FrameFocusSource::kFrame
Where it came from.
age
std::chrono::milliseconds age {0}
For FrameFocusSource::kStatusTelegram: how long before the frame was handed to you the telegram arrived, plus how much later than the quickest recent telegram it came. The time the camera took to read its lens and send the telegram is not in it. Never more than 5 seconds: an older telegram gives no reading at all. Zero for FrameFocusSource::kFrame.
arrived_us
std::uint64_t arrived_us = 0
For FrameFocusSource::kStatusTelegram: when the telegram reached this computer, in microseconds on the same clock as the frames' FrameMetadata::timestamp_us, which over Ethernet is also the computer's arrival time. So meta.timestamp_us - arrived_us is how long before this frame arrived the telegram did, and two readings with the same arrived_us are the same telegram. It is when the telegram arrived, not when the camera read its lens. Zero for FrameFocusSource::kFrame.