Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt::tracking::constellation::Device Struct Reference
Inheritance diagram for xrt::tracking::constellation::Device:
Collaboration diagram for xrt::tracking::constellation::Device:

Public Member Functions

 Device (ConstellationTracker *tracker, t_constellation_tracker_device_params *params, t_constellation_tracker_device *device, t_constellation_device_id_t id)
 
 Device (const Device &)=delete
 
 Device (Device &&)=delete
 
Device & operator= (const Device &)=delete
 
Device & operator= (Device &&)=delete
 
void pushImu (const xrt_imu_sample &sample)
 
- Public Member Functions inherited from xrt::util::ImuSinkBase< Device >
const Device & derived () const noexcept
 
Device & derived () noexcept
 
const xrt_imu_sink * getImuSink () const noexcept
 
xrt_imu_sink * getImuSink () noexcept
 

Data Fields

t_constellation_tracker_device_params params
 
t_constellation_tracker_device * device
 
t_constellation_device_id_t id
 
std::atomic< bool > enabled {false}
 Devices are disabled by default, and the constellation tracker must choose to enable them.
 
ConstellationTracker * tracker
 The owner tracker, so we can retrieve it from the IMU sink callback.
 
std::unique_ptr< sensor_fusion::SensorFusion > sensor_fusion {}
 
t_constellation_search_model * search_model {nullptr}
 
xrt_vec3 prior_pos_error { 0.10 , 0.10 , 0.10 }
 
xrt_vec3 prior_rot_error { DEG_TO_RAD(30) , DEG_TO_RAD(30) , DEG_TO_RAD(30) }
 
float gravity_error_rad { DEG_TO_RAD(30) }
 
os::Mutex data_lock
 
struct { 
 
   std::optional< DeviceLastPose >   last_known_pose 
 
   struct { 
 
      std::optional< int64_t >   last_seen_sequence_id {std::nullopt} 
 The latest sequence ID this device was seen at. More...
 
   }   per_camera [(1)
      *XRT_TRACKING_MAX_FRAME_SOURCES] 
 
} locked_data 
 

Additional Inherited Members

- Static Public Member Functions inherited from xrt::util::ImuSinkBase< Device >
static const Device * fromImuSink (const xrt_imu_sink *sink) noexcept
 
static Device * fromImuSink (xrt_imu_sink *sink) noexcept
 

Member Function Documentation

◆ pushImu()

void Device::pushImu ( const xrt_imu_sample &  sample)
Note
The interface expects non-const but we don't need to mutate it, it's source-compatible

Field Documentation

◆ enabled

std::atomic<bool> xrt::tracking::constellation::Device::enabled {false}

Devices are disabled by default, and the constellation tracker must choose to enable them.

Referenced by xrt::tracking::constellation::Camera::processSampleFast().

◆ last_seen_sequence_id

std::optional<int64_t> xrt::tracking::constellation::Device::last_seen_sequence_id {std::nullopt}

The latest sequence ID this device was seen at.

Referenced by xrt::tracking::constellation::Camera::handleProcessingComplete().

◆ tracker

ConstellationTracker* xrt::tracking::constellation::Device::tracker

The owner tracker, so we can retrieve it from the IMU sink callback.


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