Monado OpenXR Runtime
Loading...
Searching...
No Matches
rig_calibration_rerun.hpp
Go to the documentation of this file.
1
// Copyright 2026, Beyley Cardellio
2
// SPDX-License-Identifier: BSL-1.0
3
/*!
4
* @file
5
* @brief Internal header for sensor calibration usage of rerun logging.
6
* @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
7
* @ingroup tracking
8
*/
9
10
#pragma once
11
12
#include "
rig_calibration.hpp
"
13
#include "
constellation/constellation_rerun_common.hpp
"
14
15
#include <rerun.hpp>
16
17
18
namespace
xrt::tracking::constellation::optimizer::rig_calibration {
19
20
const
std::string rerun_recording_id =
"rig_calibration"
;
21
22
struct
RerunContext
:
public
RerunStream
23
{
24
public
:
// Methods
25
RerunContext
() :
RerunStream
(rerun_recording_id) {}
26
27
/*!
28
* Logs the result of an rig calibration solve to rerun.
29
*
30
* The solved camera poses, the device trajectory and the solve summary are logged statically, so a later
31
* solve replaces them. Per-keyframe data is logged on a timeline keyed by the keyframe timestamps.
32
*
33
* @param result The result of the solve.
34
*/
35
void
36
logResult
(
const
CalibrationResult
&result);
37
38
private
:
// Methods
39
void
40
logStaticScene();
41
42
void
43
logSolveSummary(
const
CalibrationResult
&result);
44
45
void
46
logCameras(
const
CalibrationResult
&result);
47
48
void
49
logDeviceTrajectory(
const
CalibrationResult
&result);
50
51
void
52
logKeyframe(
const
CalibrationResult
&result,
const
KeyframeCalibration
&keyframe);
53
54
void
55
logKeyframeObservations(
const
CalibrationResult
&result,
const
KeyframeCalibration
&keyframe);
56
57
void
58
logKeyframeMetrics(
const
CalibrationResult
&result,
const
KeyframeCalibration
&keyframe);
59
};
60
61
};
// namespace xrt::tracking::constellation::optimizer::rig_calibration
constellation_rerun_common.hpp
Shared internal helpers for every constellation rerun recorder.
rig_calibration.hpp
Constellation tracker rig calibration.
xrt::tracking::constellation::RerunContext
Definition
constellation_tracker_rerun.hpp:26
xrt::tracking::constellation::RerunStream
The recording stream a rerun recorder logs through.
Definition
constellation_rerun_common.hpp:149
xrt::tracking::constellation::optimizer::rig_calibration::CalibrationResult
The output of a successful RigCalibration::optimize call.
Definition
rig_calibration.hpp:146
xrt::tracking::constellation::optimizer::rig_calibration::KeyframeCalibration
The device state the calibration solved for at a single keyframe.
Definition
rig_calibration.hpp:131
xrt::tracking::constellation::optimizer::rig_calibration::RerunContext::logResult
void logResult(const CalibrationResult &result)
Logs the result of an rig calibration solve to rerun.
Definition
rig_calibration_rerun.cpp:411
tracking
constellation
optimizer
rig_calibration_rerun.hpp
Generated by
1.9.8