16#include "xrt/xrt_config_have.h"
24namespace xrt::tracking::constellation::optimizer {
26enum class PoseStateIndex :
int
42constexpr int kPoseStateSize =
static_cast<int>(PoseStateIndex::NumIndices);
44enum class CovarianceIndex :
int
57constexpr int kPoseCovarianceSize =
static_cast<int>(CovarianceIndex::NumIndices);
60typedef double RawPoseCovarianceMatrix[kPoseCovarianceSize * kPoseCovarianceSize];
87 t_constellation_device_id_t device_id,
89 RawPoseCovarianceMatrix out_covariance,
90 RawPoseCovarianceMatrix out_whitening);
114 t_constellation_device_id_t device_id,
115 RawPoseCovarianceMatrix out_covariance,
116 RawPoseCovarianceMatrix out_whitening);
Constellation tracker's camera model storage.
u_logging_level
Logging level enum.
Definition u_logging.h:45
void computePoseCovariance(u_logging_level log_level, const t_camera_model_params ¶ms, xrt_pose init_pose, t_blob *blobs, uint32_t num_blobs, t_constellation_tracker_led_model *leds_model, t_constellation_device_id_t device_id, RawPoseCovarianceMatrix out_covariance, RawPoseCovarianceMatrix out_whitening)
Computes the covariance of a pose given the initial pose, blobs, and LED model.
Definition pose_optimize.cpp:652
void covariancePositionRadius(const RawPoseCovarianceMatrix &raw_covariance, xrt_vec3 &radii, xrt_quat &Q_cam_cov)
Computes the radii and covariance orientation from the 3x3 position part of the pose covariance matri...
Definition pose_optimize.cpp:723
bool optimizePose(u_logging_level log_level, bool deterministic, const t_camera_model_params ¶ms, xrt_pose init_pose, t_blob *blobs, uint32_t num_blobs, t_constellation_tracker_led_model *leds_model, t_constellation_device_id_t device_id, xrt_pose &out_pose, RawPoseCovarianceMatrix out_covariance, RawPoseCovarianceMatrix out_whitening)
Does a pose optimization and RANSAC refinement on the given blobs and LED model, returning the optimi...
Definition pose_optimize.cpp:496
A blob is a 2d position in a camera sensor's view that is being tracked.
Definition t_constellation.h:45
Floating point calibration data for a single calibrated camera.
Definition t_camera_models.h:62
The LED model is a series of points which define the real-world positions of all LEDs.
Definition t_constellation.h:286
A pose composed of a position and orientation.
Definition xrt_defines.h:513
A quaternion with single floats.
Definition xrt_defines.h:246
A 3 element vector with single floats.
Definition xrt_defines.h:310
Header defining the tracking system integration in Monado.
Common defines and enums for XRT.