Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt::tracking::constellation::optimizer::Pose< T > Struct Template Reference

Pose with 6 degrees of freedom, translation and rotation. More...

#include </builds/monado/monado/src/xrt/tracking/constellation/optimizer/internal_math.hpp>

Inheritance diagram for xrt::tracking::constellation::optimizer::Pose< T >:
Collaboration diagram for xrt::tracking::constellation::optimizer::Pose< T >:

Public Member Functions

 Pose (Quaternion< T > quat)
 
 Pose (xrt_pose pose)
 
 Pose (Eigen::Ref< const Vector< T, kNumParameters > > parameters)
 
template<typename TransformType >
 Pose (const Eigen::Transform< TransformType, 3, Eigen::Isometry > &transform)
 
void pack (Eigen::Ref< Vector< T, kNumParameters > > parameters) const
 
Eigen::Transform< T, 3, Eigen::Isometry > toTransform () const
 
void getQuaternion (Quaternion< T > &q) const
 
xrt_pose toXrtPose () const
 

Data Fields

Vector3< T > translation
 
Quaternion< T > rotation
 

Static Public Attributes

static constexpr int kNumParameters = 7
 Size of the parameter block handed to Ceres: (tX, tY, tZ), (qX, qY, qZ, qW).
 
static constexpr int kNumTangentParameters = 6
 Degrees of freedom the manifold exposes to the solver.
 
static constexpr int kNumResiduals = 6
 

Detailed Description

template<typename T>
struct xrt::tracking::constellation::optimizer::Pose< T >

Pose with 6 degrees of freedom, translation and rotation.

Stored as a translation and a unit quaternion, so the ambient block is one larger than the 6 degrees of freedom it stands for. PoseManifold supplies the retraction that takes the tangent space back to 6.

Field Documentation

◆ kNumParameters

template<typename T >
constexpr int xrt::tracking::constellation::optimizer::Pose< T >::kNumParameters = 7
staticconstexpr

Size of the parameter block handed to Ceres: (tX, tY, tZ), (qX, qY, qZ, qW).

◆ kNumTangentParameters

template<typename T >
constexpr int xrt::tracking::constellation::optimizer::Pose< T >::kNumTangentParameters = 6
staticconstexpr

Degrees of freedom the manifold exposes to the solver.


The documentation for this struct was generated from the following file: