/
vrpn_Tracker_Colibri.h
50 lines (41 loc) · 1.27 KB
/
vrpn_Tracker_Colibri.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
///////////////////////////////////////////////////////////////////////////////////////////////
//
// Name: vrpn_Tracker_Colibri.h
//
// Author: Dmitry Mastykin
//
// Description: VRPN tracker class for Trivisio Colibri device (based on ColibriAPI).
//
///////////////////////////////////////////////////////////////////////////////////////////////
#ifndef VRPN_TRACKER_COLIBRI
#define VRPN_TRACKER_COLIBRI
#include "vrpn_Configure.h" // IWYU pragma: keep
#ifdef VRPN_USE_COLIBRIAPI
#include "vrpn_Tracker.h"
#include "colibri_api.h"
class vrpn_Tracker_Colibri : public vrpn_Tracker {
public:
// Constructor
//
// name: VRPN tracker name
//
// c: VRPN connection to use
//
// Hz: Update rate in Hertz
//
//
vrpn_Tracker_Colibri(const char* name, vrpn_Connection* c,
const char* path, int Hz, bool report_a_w);
~vrpn_Tracker_Colibri();
/// This function should be called each time through the main loop
/// of the server code. It checks for a report from the tracker and
/// sends it if there is one.
virtual void mainloop();
protected:
virtual void get_report();
virtual void send_report();
TCHandle nw; // Network handle
bool report_a_w;
};
#endif
#endif