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"
14
15#include <rerun.hpp>
16
17
18namespace xrt::tracking::constellation::optimizer::rig_calibration {
19
20const std::string rerun_recording_id = "rig_calibration";
21
23{
24public: // 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
38private: // 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
Shared internal helpers for every constellation rerun recorder.
Constellation tracker rig calibration.
Definition constellation_tracker_rerun.hpp:26
The recording stream a rerun recorder logs through.
Definition constellation_rerun_common.hpp:149
The output of a successful RigCalibration::optimize call.
Definition rig_calibration.hpp:146
The device state the calibration solved for at a single keyframe.
Definition rig_calibration.hpp:131
void logResult(const CalibrationResult &result)
Logs the result of an rig calibration solve to rerun.
Definition rig_calibration_rerun.cpp:411