-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNatNet.h
54 lines (41 loc) · 858 Bytes
/
NatNet.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
51
52
53
54
#pragma once
#ifndef NATNET_H
#define NATNET_H
#include <tuple>
#include <string>
#include "NatNetTypes.h"
#include "NatNetCAPI.h"
#include "NatNetClient.h"
#include "NatNetMath.h"
namespace NatNet
{
typedef struct
{
float x;
float y;
float z;
float rx;
float ry;
float rz;
float rw;
int id;
} RigidBody;
typedef struct
{
float x;
float y;
float z;
int id;
} Marker;
int Connect(int* localAddress, int* serverAddress, bool multiCast);
void Disconnect();
bool IsConnected();
char* GetLocalAddress();
char* GetServerAddress();
bool UsingMulticast();
std::string GetMappedName(int index);
void NATNET_CALLCONV dataHandler(sFrameOfMocapData* data, void* pUserData);
void NATNET_CALLCONV messageHandler(Verbosity msgType, const char* msg);
bool parseRigidBodyDescription(sDataDescriptions* pDataDefs);
}
#endif