![]() |
3Gear Systems SDK
v0.9.34
|
Base class for all hand-tracking messages / events. More...
Public Member Functions | |
| abstract String | Serialize () |
Static Public Member Functions | |
| static HandTrackingMessage | Deserialize (string data) |
| Factory method that parses a HandTrackingMessage from a string More... | |
Public Attributes | |
| const int | N_JOINTS = 17 |
| The number of joints in the hand model, currently 17 (arm, wrist, and 3 each for the 5 fingers). More... | |
| const int | N_FINGERS = 5 |
| The number of fingers is five (thumb, index, middle, ring, pinky). More... | |
| const int | N_HANDS = 2 |
| Two hands (left and right). More... | |
| const int | N_POSES = 7 |
| The number of specifically recognized poses. More... | |
| const int | N_FINGER_DOFS_PER_HAND = 16 |
| The number of finger degrees of freedom per hand. More... | |
Protected Member Functions | |
| HandTrackingMessage (MessageType type) | |
| HandTrackingMessage (HandTrackingMessage msg) | |
| string | ToString (double x) |
| string | ToString (int i) |
| string | ToString (Vector3D v) |
| string | ToString (Quaternion q) |
Properties | |
| MessageType | Type [get] |
| The message type is useful for distinguishing between similar messages, e.g., between PRESSED and RELEASED, which are both PinchMessages. More... | |
Base class for all hand-tracking messages / events.
|
inlinestatic |
Factory method that parses a HandTrackingMessage from a string
| const int ThreeGear.HandTrackingMessage.N_FINGER_DOFS_PER_HAND = 16 |
The number of finger degrees of freedom per hand.
| const int ThreeGear.HandTrackingMessage.N_FINGERS = 5 |
The number of fingers is five (thumb, index, middle, ring, pinky).
| const int ThreeGear.HandTrackingMessage.N_HANDS = 2 |
Two hands (left and right).
| const int ThreeGear.HandTrackingMessage.N_JOINTS = 17 |
The number of joints in the hand model, currently 17 (arm, wrist, and 3 each for the 5 fingers).
| const int ThreeGear.HandTrackingMessage.N_POSES = 7 |
The number of specifically recognized poses.
For a complete list, see HandPose
|
get |
The message type is useful for distinguishing between similar messages, e.g., between PRESSED and RELEASED, which are both PinchMessages.
if (msg.Type == MessageType.PRESSED) { // Handle press } else if (msg.Type == MessageType.RELEASED) { // Handle release }
1.8.3.1