6#define WIN32_LEAN_AND_MEAN
28enum class ActuationPoint {
36 {ActuationPoint::Thumb,
"THUMB"},
37 {ActuationPoint::Index,
"INDEX"},
38 {ActuationPoint::Middle,
"MIDDLE"},
39 {ActuationPoint::Palm,
"PALM"},
43enum HandClosingState {
83enum class TextureType : uint8 {
84 ClickNormal = 0, ClickSoft = 1, DoubleClick = 2,
85 AluminiumFineMeshSlow = 3, AluminiumFineMeshFast = 4,
86 PlasticMeshSlow = 5, ProfiledAluminiumMeshMedium = 6, ProfiledAluminiumMeshFast = 7,
87 RhombAluminiumMeshMedium = 8,
88 TextileMeshMedium = 9,
93 ProfiledRubberSlow = 14,
CalibrationStatus
Definition: WeArtCommon.h:55
@ Running
Definition: WeArtCommon.h:58
@ Calibrating
Definition: WeArtCommon.h:57
@ IDLE
Definition: WeArtCommon.h:56
MiddlewareStatus
Definition: WeArtCommon.h:61
GraspingState
Definition: WeArtCommon.h:50
@ Grabbed
Definition: WeArtCommon.h:51
@ Released
Definition: WeArtCommon.h:52
HandSide
Definition: WeArtCommon.h:17
TrackingType
Definition: WeArtCommon.h:12
@ DEFAULT
Deprecated, contains only closure values.
@ WEART_HAND
Tracking with closures, and abduction value for thumb.
#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE,...)
macro to briefly define a mapping between an enum and JSON
Definition: json.hpp:2557
#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Type,...)
macro
Definition: json.hpp:2755
#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(Type,...)
Definition: json.hpp:2759
Definition: WeArtCommon.h:188
const int defaultTextureIndex
Definition: WeArtCommon.h:209
const int nullTextureIndex
Definition: WeArtCommon.h:212
const float dynamicForceSensibility
Definition: WeArtCommon.h:227
const float defaultCollisionMultiplier
Definition: WeArtCommon.h:214
const float defaultAbduction
Definition: WeArtCommon.h:207
const float defaultTemperature
Definition: WeArtCommon.h:195
const float minForce
Definition: WeArtCommon.h:200
const PCSTR DEFAULT_IP_ADDRESS
Definition: WeArtCommon.h:189
const PCSTR DEFAULT_TCP_PORT
Definition: WeArtCommon.h:190
const float minTemperature
Definition: WeArtCommon.h:196
const float minVolumeTexture
Definition: WeArtCommon.h:219
const float maxCollisionMultiplier
Definition: WeArtCommon.h:216
const int maxTextureIndex
Definition: WeArtCommon.h:211
const float thresholdThumbClosure
Definition: WeArtCommon.h:222
const float maxVolumeTexture
Definition: WeArtCommon.h:220
const std::string WEART_SDK_VERSION
Definition: WeArtCommon.h:192
const float defaultClosure
Definition: WeArtCommon.h:203
const float thresholdMiddleClosure
Definition: WeArtCommon.h:224
const float defaultGraspForce
Definition: WeArtCommon.h:226
const float maxClosure
Definition: WeArtCommon.h:205
const std::string WEART_SDK_TYPE
Definition: WeArtCommon.h:193
const float defaultVolumeTexture
Definition: WeArtCommon.h:218
const float defaultForce
Definition: WeArtCommon.h:199
const float thresholdIndexClosure
Definition: WeArtCommon.h:223
const float minCollisionMultiplier
Definition: WeArtCommon.h:215
const float maxTemperature
Definition: WeArtCommon.h:197
const int minTextureIndex
Definition: WeArtCommon.h:210
const float maxForce
Definition: WeArtCommon.h:201
const float minClosure
Definition: WeArtCommon.h:204
Definition: WeArtCommon.h:104
float y
Definition: WeArtCommon.h:106
float x
Definition: WeArtCommon.h:105
float z
Definition: WeArtCommon.h:107
Definition: WeArtCommon.h:130
float forceSensingConverted
Definition: WeArtCommon.h:134
float ntcTemperatureRaw
Definition: WeArtCommon.h:131
float ntcTemperatureConverted
Definition: WeArtCommon.h:132
float forceSensingRaw
Definition: WeArtCommon.h:133
Status of a connected TouchDIVER device.
Definition: WeArtCommon.h:169
HandSide handSide
Hand to which the device is assigned.
Definition: WeArtCommon.h:174
int batteryLevel
Battery charge level (from 0 to 100)
Definition: WeArtCommon.h:177
bool charging
Tells whether the device is under charge (true) or not (false)
Definition: WeArtCommon.h:180
std::string macAddress
Device BLE mac address.
Definition: WeArtCommon.h:171
std::vector< ThimbleStatus > thimbles
Status of the device thimbles.
Definition: WeArtCommon.h:183
Definition: WeArtCommon.h:111
Definition: WeArtCommon.h:138
HandSide handSide
Definition: WeArtCommon.h:140
std::string macAddress
Definition: WeArtCommon.h:139
Definition: WeArtCommon.h:144
std::string version
Definition: WeArtCommon.h:147
MiddlewareStatus status
Definition: WeArtCommon.h:146
std::string errorDesc
Definition: WeArtCommon.h:149
std::vector< MiddlewareConnectedDevice > connectedDevices
Definition: WeArtCommon.h:151
std::uint64_t timestamp
Definition: WeArtCommon.h:145
int statusCode
Definition: WeArtCommon.h:148
bool actuationsEnabled
Definition: WeArtCommon.h:150
Definition: WeArtCommon.h:123
GyroscopeData gyroscope
Definition: WeArtCommon.h:125
TofData timeOfFlight
Definition: WeArtCommon.h:126
AccelerometerData accelerometer
Definition: WeArtCommon.h:124
Status of a single thimble connected to a device.
Definition: WeArtCommon.h:156
std::string errorDesc
Description of the thimble status code.
Definition: WeArtCommon.h:164
ActuationPoint id
Actuation Point to which the thimble is assigned.
Definition: WeArtCommon.h:158
bool connected
Tells whether the thimble is connected to the device or not.
Definition: WeArtCommon.h:160
int statusCode
Current status code of the thimble (0 = OK)
Definition: WeArtCommon.h:162
Definition: WeArtCommon.h:118