cgv
cgv::gui::vr_calibration Class Reference

vr key events use the key codes defined in vr::VRKeys More...

#include <vr_calib.h>

Inheritance diagram for cgv::gui::vr_calibration:
vr::vr_calibration_base

Public Member Functions

void update_calibration_info ()
 iterate vr drivers and copy calibration information into map
 
bool read_calibration (const std::string &file_path, bool update_drivers=true)
 read calibration from calibration file
 
bool write_calibration (const std::string &file_path) const
 write calibration to calibration file
 
bool update_driver_calibration (vr::vr_driver *dp) const
 update the calibration of a driver from the stored calibration states More...
 

Protected Member Functions

bool update_driver_calibration (vr::vr_driver *dp, const std::map< std::string, vr::vr_trackable_state > &target_reference_states) const
 update the calibration of a driver from the given target reference states
 
 vr_calibration ()
 constructor is protected to forbid construction of more than one singleton
 
void set_driver_calibration_matrix (vr_driver *driver, const float calibration_matrix[12]) const
 single point of write access to calibration transformation of vr drivers
 

Friends

CGV_API vr_calibrationref_vr_calibration ()
 allow ref_vr_calibration() function to construct one instance
 

Detailed Description

vr key events use the key codes defined in vr::VRKeys

Member Function Documentation

◆ update_driver_calibration()

bool cgv::gui::vr_calibration::update_driver_calibration ( vr::vr_driver dp) const

update the calibration of a driver from the stored calibration states

update the calibration of a driver from the given target reference states


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