Low-Level C++ SDK  v1.1
Loading...
Searching...
No Matches
WeArtCommon.h
Go to the documentation of this file.
1
2
3#pragma once
4#include <vector>
5
6enum class TrackingType {
7 DEFAULT,
9};
10
12 //HSnone = 0
13 Left = 1 << 0,
14 Right = 1 << 1,
15};
16
17
19 //APnone = 0
20 Thumb = 1 << 0,
21 Index = 1 << 1,
22 Middle = 1 << 2,
23 Palm = 1 << 3,
24};
25
26
28 Open = 0,
30 Closed = 2
31};
32
33
36 Released = 1
37};
38
40 IDLE = 0,
43};
44
45enum class TextureType : uint8 {
46 ClickNormal = 0, ClickSoft = 1, DoubleClick = 2,
51 CrushedRock = 10,
52 VenetianGranite = 11,
53 SilverOak = 12,
54 LaminatedWood = 13,
56 VelcroHooks = 15,
57 VelcroLoops = 16,
58 PlasticFoil2 = 17,
59 Leather = 18,
60 Cotton1 = 19,
61 Aluminium = 20,
63};
64
65
66// Constants shared by the WeArt components
67namespace WeArtConstants {
68 const PCSTR DEFAULT_IP_ADDRESS = "127.0.0.1";
69 const PCSTR DEFAULT_TCP_PORT = "13031";
70
71 const std::string WEART_SDK_VERSION = "1.0.0";
72 const std::string WEART_SDK_TYPE = "SdkLLCPP";
73
74 const float defaultTemperature = 0.5f;
75 const float minTemperature = 0.0f;
76 const float maxTemperature = 1.0f;
77
78 const float defaultForce = 0.0f;
79 const float minForce = 0.0f;
80 const float maxForce = 1.0f;
81
82 const float defaultClosure = 0.0f;
83 const float minClosure = 0.0f;
84 const float maxClosure = 1.0f;
85
86 const float defaultAbduction = 0.442f;
87
88 const int defaultTextureIndex = 0;
89 const int minTextureIndex = 0;
90 const int maxTextureIndex = 21;
91 const int nullTextureIndex = 255;
92
93 const float defaultCollisionMultiplier = 20.0f;
94 const float minCollisionMultiplier = 0.0f;
95 const float maxCollisionMultiplier = 100.0f;
96
97 const float defaultVolumeTexture = 100.0f;
98 const float minVolumeTexture = 0.0f;
99 const float maxVolumeTexture = 100.0f;
100
101 const float thresholdThumbClosure = 0.5f;
102 const float thresholdIndexClosure = 0.5f;
103 const float thresholdMiddleClosure = 0.5f;
104
105 const float defaultGraspForce = 0.3f;
106 const float dynamicForceSensibility = 10.0f;
107};
CalibrationStatus
Definition: WeArtCommon.h:39
@ Running
Definition: WeArtCommon.h:42
@ Calibrating
Definition: WeArtCommon.h:41
@ IDLE
Definition: WeArtCommon.h:40
TextureType
Definition: WeArtCommon.h:45
@ AluminiumFineMeshSlow
@ RhombAluminiumMeshMedium
@ ProfiledAluminiumMeshMedium
@ ProfiledAluminiumMeshFast
@ AluminiumFineMeshFast
GraspingState
Definition: WeArtCommon.h:34
@ Grabbed
Definition: WeArtCommon.h:35
@ Released
Definition: WeArtCommon.h:36
HandSide
Definition: WeArtCommon.h:11
@ Left
Definition: WeArtCommon.h:13
@ Right
Definition: WeArtCommon.h:14
TrackingType
Collection of constants used throughout the SDK.
Definition: WeArtCommon.h:6
@ DEFAULT
Deprecated, contains only closure values.
@ WEART_HAND
Tracking with closures, and abduction value for thumb.
ActuationPoint
Definition: WeArtCommon.h:18
@ Index
Definition: WeArtCommon.h:21
@ Thumb
Definition: WeArtCommon.h:20
@ Middle
Definition: WeArtCommon.h:22
@ Palm
Definition: WeArtCommon.h:23
HandClosingState
Definition: WeArtCommon.h:27
@ Closed
Definition: WeArtCommon.h:30
@ Closing
Definition: WeArtCommon.h:29
@ Open
Definition: WeArtCommon.h:28
Definition: WeArtCommon.h:67
const int defaultTextureIndex
Definition: WeArtCommon.h:88
const int nullTextureIndex
Definition: WeArtCommon.h:91
const float dynamicForceSensibility
Definition: WeArtCommon.h:106
const float defaultCollisionMultiplier
Definition: WeArtCommon.h:93
const float defaultAbduction
Definition: WeArtCommon.h:86
const float defaultTemperature
Definition: WeArtCommon.h:74
const float minForce
Definition: WeArtCommon.h:79
const PCSTR DEFAULT_IP_ADDRESS
Definition: WeArtCommon.h:68
const PCSTR DEFAULT_TCP_PORT
Definition: WeArtCommon.h:69
const float minTemperature
Definition: WeArtCommon.h:75
const float minVolumeTexture
Definition: WeArtCommon.h:98
const float maxCollisionMultiplier
Definition: WeArtCommon.h:95
const int maxTextureIndex
Definition: WeArtCommon.h:90
const float thresholdThumbClosure
Definition: WeArtCommon.h:101
const float maxVolumeTexture
Definition: WeArtCommon.h:99
const std::string WEART_SDK_VERSION
Definition: WeArtCommon.h:71
const float defaultClosure
Definition: WeArtCommon.h:82
const float thresholdMiddleClosure
Definition: WeArtCommon.h:103
const float defaultGraspForce
Definition: WeArtCommon.h:105
const float maxClosure
Definition: WeArtCommon.h:84
const std::string WEART_SDK_TYPE
Definition: WeArtCommon.h:72
const float defaultVolumeTexture
Definition: WeArtCommon.h:97
const float defaultForce
Definition: WeArtCommon.h:78
const float thresholdIndexClosure
Definition: WeArtCommon.h:102
const float minCollisionMultiplier
Definition: WeArtCommon.h:94
const float maxTemperature
Definition: WeArtCommon.h:76
const int minTextureIndex
Definition: WeArtCommon.h:89
const float maxForce
Definition: WeArtCommon.h:80
const float minClosure
Definition: WeArtCommon.h:83