Unreal SDK  v1.1
Loading...
Searching...
No Matches
WeArtCommon.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include <string>
4
5UENUM(meta = (Bitflags, UseEnumValuesAsMaskValuesInEditor = "true"))
7{
8 //HSnone = 0 UMETA(Hidden),
9 Left = 1 << 0 UMETA(DisplayName = "Left") ,
10 Right = 1 << 1 UMETA(DisplayName = "Right"),
11};
13
14
15UENUM(meta = (Bitflags, UseEnumValuesAsMaskValuesInEditor = "true"))
17{
18 //APnone = 0 UMETA(Hidden),
19 Thumb = 1 << 0 UMETA(DisplayName = "Thumb"),
20 Index = 1 << 1 UMETA(DisplayName = "Index"),
21 Middle = 1 << 2 UMETA(DisplayName = "Middle"),
22 Palm = 1 << 3 UMETA(DisplayName = "Palm"),
23};
25
26enum class TrackingType{
27 DEFAULT,
29};
30
32{
33 Open = 0,
35 Closed = 2
36};
37
38
40{
42 Released = 1
43};
44
45
46UENUM()
47enum class TextureType : uint8
48{
49 ClickNormal = 0, ClickSoft = 1, DoubleClick = 2,
54 CrushedRock = 10,
55 VenetianGranite = 11,
56 SilverOak = 12,
57 LaminatedWood = 13,
59 VelcroHooks = 15,
60 VelcroLoops = 16,
61 PlasticFoil2 = 17,
62 Leather = 18,
63 Cotton1 = 19,
64 Aluminium = 20,
66};
67
68
69// Constants shared by the WeArt components
71{
72 const std::string WEART_SDK_TYPE = "SdkUnreal";
73 const std::string WEART_SDK_VERSION = "1.1.0";
74 const std::string WEART_SDK_TRACK_TYPE = "TrackType1";
75
76 const float defaultTemperature = 0.5f;
77 const float minTemperature = 0.0f;
78 const float maxTemperature = 1.0f;
79
80 const float defaultForce = 0.0f;
81 const float minForce = 0.0f;
82 const float maxForce = 1.0f;
83
84 const float defaultClosure = 0.0f;
85 const float minClosure = 0.0f;
86 const float maxClosure = 1.0f;
87
88 const float staticTextureVelocity = 0.5f;
89
90 const int defaultTextureIndex = 0;
91 const int minTextureIndex = 0;
92 const int maxTextureIndex = 254;
93 const int nullTextureIndex = 255;
94
95 const float defaultTextureVelocity[3] = { 0.5f, 0.0f, 0.0f };
96 const float minTextureVelocity[3] = { 0.0f, 0.0f, 0.0f };
97 const float maxTextureVelocity[3] = { 1.0f, 1.0f, 1.0f };
98
99 const float defaultCollisionMultiplier = 20.0f;
100 const float minCollisionMultiplier = 0.0f;
101 const float maxCollisionMultiplier = 100.0f;
102
103 const float defaultVolumeTexture = 100.0f;
104 const float minVolumeTexture = 0.0f;
105 const float maxVolumeTexture = 100.0f;
106
107 const float thresholdThumbClosure = 0.5f;
108 const float thresholdIndexClosure = 0.5f;
109 const float thresholdMiddleClosure = 0.5f;
110
111 const float defaultGraspForce = 0.3f;
112 const float dynamicForceSensibility = 10.0f;
113};
ENUM_RANGE_BY_VALUES(HandSide, HandSide::Left, HandSide::Right)
TextureType
Definition: WeArtCommon.h:48
@ AluminiumFineMeshSlow
@ RhombAluminiumMeshMedium
@ ProfiledAluminiumMeshMedium
@ ProfiledAluminiumMeshFast
@ AluminiumFineMeshFast
GraspingState
Definition: WeArtCommon.h:40
@ Grabbed
Definition: WeArtCommon.h:41
@ Released
Definition: WeArtCommon.h:42
HandSide
Definition: WeArtCommon.h:7
@ Left
Definition: WeArtCommon.h:9
@ Right
Definition: WeArtCommon.h:10
TrackingType
Definition: WeArtCommon.h:26
@ DEFAULT
Deprecated, contains only closure values.
@ WEART_HAND
Tracking with closures, and abduction value for thumb.
ActuationPoint
Definition: WeArtCommon.h:17
@ Index
Definition: WeArtCommon.h:20
@ Thumb
Definition: WeArtCommon.h:19
@ Middle
Definition: WeArtCommon.h:21
@ Palm
Definition: WeArtCommon.h:22
HandClosingState
Definition: WeArtCommon.h:32
@ Closed
Definition: WeArtCommon.h:35
@ Closing
Definition: WeArtCommon.h:34
@ Open
Definition: WeArtCommon.h:33
Definition: WeArtCommon.h:71
const int defaultTextureIndex
Definition: WeArtCommon.h:90
const int nullTextureIndex
Definition: WeArtCommon.h:93
const float dynamicForceSensibility
Definition: WeArtCommon.h:112
const float defaultCollisionMultiplier
Definition: WeArtCommon.h:99
const float defaultTemperature
Definition: WeArtCommon.h:76
const float minForce
Definition: WeArtCommon.h:81
const float minTemperature
Definition: WeArtCommon.h:77
const float minVolumeTexture
Definition: WeArtCommon.h:104
const float maxCollisionMultiplier
Definition: WeArtCommon.h:101
const int maxTextureIndex
Definition: WeArtCommon.h:92
const float defaultTextureVelocity[3]
Definition: WeArtCommon.h:95
const float thresholdThumbClosure
Definition: WeArtCommon.h:107
const std::string WEART_SDK_TRACK_TYPE
Definition: WeArtCommon.h:74
const float maxVolumeTexture
Definition: WeArtCommon.h:105
const float staticTextureVelocity
Definition: WeArtCommon.h:88
const std::string WEART_SDK_VERSION
Definition: WeArtCommon.h:73
const float defaultClosure
Definition: WeArtCommon.h:84
const float thresholdMiddleClosure
Definition: WeArtCommon.h:109
const float defaultGraspForce
Definition: WeArtCommon.h:111
const float maxClosure
Definition: WeArtCommon.h:86
const float maxTextureVelocity[3]
Definition: WeArtCommon.h:97
const std::string WEART_SDK_TYPE
Definition: WeArtCommon.h:72
const float defaultVolumeTexture
Definition: WeArtCommon.h:103
const float defaultForce
Definition: WeArtCommon.h:80
const float thresholdIndexClosure
Definition: WeArtCommon.h:108
const float minTextureVelocity[3]
Definition: WeArtCommon.h:96
const float minCollisionMultiplier
Definition: WeArtCommon.h:100
const float maxTemperature
Definition: WeArtCommon.h:78
const int minTextureIndex
Definition: WeArtCommon.h:91
const float maxForce
Definition: WeArtCommon.h:82
const float minClosure
Definition: WeArtCommon.h:85