Package komposten.leapjna.leapc.data
Class LEAP_HAND
java.lang.Object
com.sun.jna.Structure
komposten.leapjna.leapc.data.LEAP_HAND
@FieldOrder({"id","flags","type","confidence","visible_time","pinch_distance","grab_angle","pinch_strength","grab_strength","palm","digits","arm"})
public class LEAP_HAND
extends Structure
Describes a tracked hand.
- Since:
- LeapJna 1.0.0, Ultraleap Orion SDK 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A struct to store the digits of a hand.Nested classes/interfaces inherited from class com.sun.jna.Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe arm to which this hand is attached.float
How confident we are with a given hand pose.The fingers of this hand.int
Reserved for future use.float
The average angle of fingers to palm.float
The normalized estimate of the grab hand pose.int
A unique ID for a hand tracked across frames.Additional information associated with the palm.float
The distance between index finger and thumb.float
The normalized estimate of the pinch pose.int
The chirality of this hand.long
The total amount of time this hand has been tracked, in microseconds.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
id
public int idA unique ID for a hand tracked across frames.
If tracking of a physical hand is lost, a new ID is assigned when tracking is reacquired.
-
flags
public int flagsReserved for future use. -
type
public int typeThe chirality of this hand. Either 0 (left) or 1 (right). UsegetType()
to get the type as aeLeapHandType
value. -
confidence
public float confidenceHow confident we are with a given hand pose.
Not currently used (always 1.0).
-
visible_time
public long visible_timeThe total amount of time this hand has been tracked, in microseconds. -
pinch_distance
public float pinch_distanceThe distance between index finger and thumb. -
grab_angle
public float grab_angleThe average angle of fingers to palm. -
pinch_strength
public float pinch_strengthThe normalized estimate of the pinch pose.
Zero is not pinching; one is fully pinched.
-
grab_strength
public float grab_strengthThe normalized estimate of the grab hand pose.
Zero is not grabbing; one is fully grabbing.
-
palm
Additional information associated with the palm. -
digits
The fingers of this hand. -
arm
The arm to which this hand is attached.
An arm consists of a single LEAP_BONE struct.
-
-
Constructor Details
-
LEAP_HAND
public LEAP_HAND() -
LEAP_HAND
-
-
Method Details
-
getType
- Returns:
- The hand type as an
eLeapHandType
instead of abyte
.
-