cgv
Loading...
Searching...
No Matches
vr_calib.h
1#pragma once
2
3#include <string>
4#include <map>
5#include <vr/vr_state.h>
6#include <vr/vr_driver.h>
7
8#include "lib_begin.h"
9
12
14namespace cgv {
15 namespace gui {
18 {
19 protected:
20 std::map<std::string, std::map<std::string, vr::vr_trackable_state> > calibration_info;
22 bool update_driver_calibration(vr::vr_driver* dp, const std::map<std::string, vr::vr_trackable_state>& target_reference_states) const;
26 friend CGV_API vr_calibration& ref_vr_calibration();
27 public:
29 void update_calibration_info();
31 bool read_calibration(const std::string& file_path, bool update_drivers = true);
33 bool write_calibration(const std::string& file_path) const;
35 bool update_driver_calibration(vr::vr_driver* dp) const;
36 };
37
39 extern CGV_API vr_calibration& ref_vr_calibration();
40 }
41}
42
44
45#include <cgv/config/lib_end.h>
vr key events use the key codes defined in vr::VRKeys
Definition vr_calib.h:18
base class with write access to driver calibration matrix
Definition vr_driver.h:37
interface class for vr drivers.
Definition vr_driver.h:57
vr_calibration & ref_vr_calibration()
access to singleton object of vr_calibration class
Definition vr_calib.cxx:11
the cgv namespace
Definition print.h:11
defines the class vr::vr_driver class and gives access to the driver registry with the functions vr::...
defines types to store the state vr::vr_kit_state of a vr kit, which is split into sub states for the...