cgv
Loading...
Searching...
No Matches
vr::vr_trackable_state Struct Reference

a trackable knows whether it is tracked and its 6d pose stored as 3x4 matrix in column major format More...

#include <vr_state.h>

Inheritance diagram for vr::vr_trackable_state:
vr::vr_controller_state

Public Member Functions

bool operator== (const vr_trackable_state &state) const
 equality check
 
 vr_trackable_state ()
 standard constructor for initialization of members
 

Public Attributes

VRStatus status
 whether trackable is currently tracked, only in case of true, the pose member contains useful information
 
float pose [12]
 pose as 3x4 matrix in column major format, where each column is a vector in world coordinates
 

Detailed Description

a trackable knows whether it is tracked and its 6d pose stored as 3x4 matrix in column major format

provides vr_trackable_state::status as vr::VRStatus and vr_trackable_state::pose of a trackable sub device where the pose is stored in a 3x4 column major format

Definition at line 93 of file vr_state.h.

Constructor & Destructor Documentation

◆ vr_trackable_state()

vr::vr_trackable_state::vr_trackable_state ( )

standard constructor for initialization of members

Definition at line 5 of file vr_state.cxx.

References pose, status, and vr::VRS_DETACHED.

Member Function Documentation

◆ operator==()

bool vr::vr_trackable_state::operator== ( const vr_trackable_state state) const

equality check

Definition at line 44 of file vr_state.cxx.

References pose, and status.

Referenced by vr::vr_controller_state::operator==().

Member Data Documentation

◆ pose

float vr::vr_trackable_state::pose[12]

pose as 3x4 matrix in column major format, where each column is a vector in world coordinates

  • pose[0..2] ... x-axis pointing to the right
  • pose[3..5] ... y-axis pointing up
  • pose[6..8] ... z-axis pointing backwards
  • pose[9..11] ... location of trackable's origin

Definition at line 104 of file vr_state.h.

Referenced by vr_view_interactor::draw_vr_kits(), cgv::gui::vr_server::emit_events_and_update_state(), vr::get_eye_projection_transform(), vr::get_world_to_camera_transform(), vr::get_world_to_eye_transform(), vr_view_interactor::handle(), vr::vr_log::log_vr_state(), operator==(), vr::vr_controller_state::put_ray(), vr::vr_kit::query_state(), vr_emulated_kit::query_state_impl(), vr_emulator::update_reference_states(), and vr_trackable_state().

◆ status

VRStatus vr::vr_trackable_state::status

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