RflySimSDK
v4.01
RflySimSDK说明文档
载入中...
搜索中...
未找到
simulink
vrpn
vrpn_3Space.h
1
#ifndef VRPN_3SPACE_H
2
#define VRPN_3SPACE_H
3
4
#include "vrpn_Configure.h"
// for VRPN_API
5
#include "vrpn_Tracker.h"
// for vrpn_Tracker_Serial
6
7
class
VRPN_API
vrpn_Connection
;
8
9
class
VRPN_API vrpn_Tracker_3Space:
public
vrpn_Tracker_Serial {
10
11
public
:
12
13
vrpn_Tracker_3Space(
char
*name, vrpn_Connection *c,
14
const
char
*port =
"/dev/ttyS1"
,
long
baud = 19200) :
15
vrpn_Tracker_Serial(name,c,port,baud), d_numResets(0) {};
16
17
protected
:
18
19
/// Returns 0 if didn't get a complete report, 1 if it did.
20
virtual
int
get_report
(
void
);
21
22
virtual
void
reset
();
23
int
d_numResets;
24
25
};
26
27
#endif
vrpn_Connection
Generic connection class not specific to the transport mechanism.
定义
vrpn_Connection.h:562
vrpn_Tracker_3Space::get_report
virtual int get_report(void)
Returns 0 if didn't get a complete report, 1 if it did.
vrpn_Tracker_3Space::reset
virtual void reset()
Reset the tracker.
制作者
1.14.0