This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
AugmentaData.h
139 lines (110 loc) · 3.95 KB
/
AugmentaData.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// Copyright Augmenta, All Rights Reserved.
#pragma once
#include "AugmentaData.generated.h"
/**
* A structure to hold the data for the Augmenta Object.
*/
USTRUCT(BlueprintType, Category = "Augmenta|Data")
struct FAugmentaPerson
{
GENERATED_BODY()
/** The scene frame number. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
int32 Frame;
/** The unique Id for each object. (ex: 42nd object to enter is assigned pid=41). */
UPROPERTY(BlueprintReadOnly, DisplayName = "Id", Category = "Augmenta|Object")
int32 Pid;
/**
* The Ordered Id for each object.
* (ex: if 3 objects are on stage, 43rd object still present has oid=2).
*/
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
int32 Oid;
/** The Alive time in seconds. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
float Age;
/** The position projected to the ground (normalized). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
FVector2D Centroid;
/** The speed and direction vector (normalized). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
FVector2D Velocity;
/** The CCW rotation w.r.t the horizontal axis (right). Range is 0 to 360. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
float Orientation;
/** The center co-ordinate of the bounding box (normalized). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
FVector2D BoundingRectPos;
/** The size of the bounding box (normalized). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
FVector2D BoundingRectSize;
/** The CCW rotation of the bounding box w.r.t the horizontal axis (right). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
float BoundingRectRotation;
/** The Height of the Object (in m) (absolute). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
float Height;
};
/**
* A structure to hold data for the Augmenta Scene.
*/
USTRUCT(BlueprintType, Category = "Augmenta|Data")
struct FAugmentaScene
{
GENERATED_BODY()
/** The Time in frame number. */
UPROPERTY(BlueprintReadOnly, DisplayName = "Frame", Category = "Augmenta|Scene")
int32 CurrentTime;
/** The number of objects in the scene. */
UPROPERTY(BlueprintReadOnly, DisplayName = "ObjectCount", Category = "Augmenta|Scene")
int32 NumPeople;
/** The scene size in meters. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Scene")
FVector2D SceneSize;
};
/**
* A structure to hold data for the Augmenta VideoOutput (Fusion).
*/
USTRUCT(BlueprintType, Category = "Augmenta|Data")
struct FAugmentaVideoOutput
{
GENERATED_BODY()
/** The offset from the scene top left (in m). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|VideoOutput")
FVector2D Offset;
/** The size (in m). X is Width and Y is Height. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|VideoOutput")
FVector2D Size;
/** The resolution in pixels. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|VideoOutput")
FIntPoint Resolution;
};
/**
* A structure to hold data for the Augmenta Object's Extra info.
*/
USTRUCT(BlueprintType, Category = "Augmenta|Data")
struct FAugmentaObjectExtra
{
GENERATED_BODY()
/** The scene frame number. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object|Extra")
int32 Frame;
/** The unique Id for each object. (ex: 42nd object to enter is assigned id=41). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object|Extra")
int32 Id;
/**
* The Ordered Id for each object.
* (ex: if 3 objects are on stage, 43rd object still present has oid=2).
*/
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object|Extra")
int32 Oid;
/** The Highest point placement (normalized). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object|Extra")
FVector2D Highest;
/** The sensor distance (in m). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object|Extra")
float Distance;
/** The sensor distance (in m). */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object|Extra")
float Reflectivity;
};