Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Classes | Enumerations | Functions
handpose.h File Reference
#include "sr/types.h"
#include <math.h>
Include dependency graph for handpose.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  SR_thumb
 C-compatible struct containing the part of the pose representing a thumb. More...
 
union  SR_finger
 C-compatible struct containing a part of the pose representing a finger. More...
 
struct  SR_handPose
 C-compatible struct containing the pose of a hand. More...
 

Enumerations

enum  SR_handSide : uint64_t { LeftHand = 0 , RightHand = 1 }
 Enum used to specify a left or right hand type pose. More...
 
enum  SR_handJoints : uint64_t {
  Wrist = 0 , Palm = 1 , Thumb_Metacarpal = 2 , Thumb_Proximal = 3 ,
  Thumb_Distal = 4 , Index_Metacarpal = 5 , Index_Proximal = 6 , Index_Intermediate = 7 ,
  Index_Distal = 8 , Middle_Metacarpal = 9 , Middle_Proximal = 10 , Middle_Intermediate = 11 ,
  Middle_Distal = 12 , Ring_Metacarpal = 13 , Ring_Proximal = 14 , Ring_Intermediate = 15 ,
  Ring_Distal = 16 , Pinky_Metacarpal = 17 , Pinky_Proximal = 18 , Pinky_Intermediate = 19 ,
  Pinky_Distal = 20
}
 Enum used to identify joints in the hand. More...
 

Functions

static float getGrabbing (SR_handPose pose)
 Determine whether a pose represents a grabbing hand. More...
 
static float getPinching (SR_handPose pose)
 Determine whether a pose represents a pinching hand. More...
 

Enumeration Type Documentation

◆ SR_handJoints

enum SR_handJoints : uint64_t

Enum used to identify joints in the hand.

Enumerator
Wrist 

The wrist.

Palm 

The center of the palm.

Thumb_Metacarpal 

The joint between the metacarpal and proximal bone on the thumb (the thumb base)

Thumb_Proximal 

The joint between the proximal and distal bone on the thumb.

Thumb_Distal 

The end of the distal bone on the thumb (the thumb tip)

Index_Metacarpal 

The joint between the metacarpal and proximal bone on the index finger (the index finger base)

Index_Proximal 

The joint between the proximal and intermediate bone on the index finger.

Index_Intermediate 

The joint between the intermediate and distal bone on the index finger.

Index_Distal 

The end of the distal bone on the index finger (the index finger tip)

Middle_Metacarpal 

The joint between the metacarpal and proximal bone on the middle finger (the middle finger base)

Middle_Proximal 

The joint between the proximal and intermediate bone on the middle finger.

Middle_Intermediate 

The joint between the intermediate and distal bone on the middle finger.

Middle_Distal 

The end of the distal bone on the middle finger (the middle finger tip)

Ring_Metacarpal 

The joint between the metacarpal and proximal bone on the ring finger (the ring finger base)

Ring_Proximal 

The joint between the proximal and intermediate bone on the ring finger.

Ring_Intermediate 

The joint between the intermediate and distal bone on the ring finger.

Ring_Distal 

The end of the distal bone on the ring finger (the ring finger tip)

Pinky_Metacarpal 

The joint between the metacarpal and proximal bone on the pinky (the pinky base)

Pinky_Proximal 

The joint between the proximal and intermediate bone on the pinky.

Pinky_Intermediate 

The joint between the intermediate and distal bone on the pinky.

Pinky_Distal 

The end of the distal bone on the pinky (the pinky tip)

Function Documentation

◆ getGrabbing()

static float getGrabbing ( SR_handPose  pose)
static

Determine whether a pose represents a grabbing hand.

◆ getPinching()

static float getPinching ( SR_handPose  pose)
static

Determine whether a pose represents a pinching hand.