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

The LED model -> IMU rotation. More...

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

Collaboration diagram for xrt::tracking::constellation::optimizer::ImuExtrinsics< T >:

Public Member Functions

template<typename Derived >
 ImuExtrinsics (Quaternion< Derived > quat)
 
 ImuExtrinsics (Eigen::Ref< const Vector< T, kNumParameters > > parameters)
 
void pack (Eigen::Ref< Vector< T, kNumParameters > > parameters) const
 
PoseWithVelocity< T > toWorldImu (const PoseWithVelocity< T > &T_world_model) const
 The IMU's state given the LED model's.
 

Data Fields

Quaternion< T > Q_model_imu
 

Static Public Attributes

static constexpr int kNumParameters = 4
 (qX, qY, qZ, qW)
 
static constexpr int kNumTangentParameters = 3
 Degrees of freedom.
 

Detailed Description

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

The LED model -> IMU rotation.

Device keyframe states are LED model poses, which the camera factors constrain directly, and only the IMU factors see the IMU through this rotation on top of them. Solving for it then leaves the poses where the cameras put them, rather than having to walk them the opposite way to keep the LED model still.

Member Function Documentation

◆ toWorldImu()

template<typename T >
PoseWithVelocity< T > xrt::tracking::constellation::optimizer::ImuExtrinsics< T >::toWorldImu ( const PoseWithVelocity< T > &  T_world_model) const
inline

The IMU's state given the LED model's.

The two share an origin, so only the orientation differs, and the velocity, being the origin's, carries straight over.

Field Documentation

◆ kNumParameters

template<typename T >
constexpr int xrt::tracking::constellation::optimizer::ImuExtrinsics< T >::kNumParameters = 4
staticconstexpr

(qX, qY, qZ, qW)

◆ kNumTangentParameters

template<typename T >
constexpr int xrt::tracking::constellation::optimizer::ImuExtrinsics< T >::kNumTangentParameters = 3
staticconstexpr

Degrees of freedom.


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