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

structure that stores all information describing the state of a VR kit More...

#include <vr_state.h>

Public Member Functions

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

Public Attributes

vr_trackable_state hmd
 status and pose of hmd
 
vr_controller_state controller [max_nr_controllers]
 status, pose, button, axes, and vibration information of up to vr::max_nr_controllers controller and tracker devices (first two are for left and right hand controllers)
 

Detailed Description

structure that stores all information describing the state of a VR kit

simply combines state information on the vr_kit_state::hmd (vr::vr_trackable_state) and the two controllers vr_kit_state::controller[2] (vr::vr_controller_state).The controllers are always enumerated such that controller index 0 is the left and 1 the right controller.

Definition at line 138 of file vr_state.h.

Constructor & Destructor Documentation

◆ vr_kit_state()

vr::vr_kit_state::vr_kit_state ( )

standard constructor for initialization of members

Definition at line 32 of file vr_state.cxx.

Member Function Documentation

◆ operator==()

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

check for equality

Definition at line 37 of file vr_state.cxx.

References controller, and hmd.

Member Data Documentation

◆ controller

vr_controller_state vr::vr_kit_state::controller[max_nr_controllers]

status, pose, button, axes, and vibration information of up to vr::max_nr_controllers controller and tracker devices (first two are for left and right hand controllers)

Definition at line 143 of file vr_state.h.

Referenced by vr_test::draw(), vr_view_interactor::draw_vr_kits(), cgv::gui::vr_server::emit_events_and_update_state(), vr_view_interactor::handle(), vr_test::handle(), vr::vr_log::log_vr_state(), operator==(), vr::vr_kit::query_state(), vr_emulated_kit::query_state_impl(), and vr_emulated_kit::set_vibration().

◆ hmd


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