Class LEAP_TRACKING_EVENT
- All Implemented Interfaces:
LEAP_EVENT
- Since:
- LeapJna 1.0.0, Ultraleap Orion SDK 3.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.jna.Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
Current tracking frame rate in hertz.A universal frame identification header.int
The number of hands tracked in this frame.A pointer to the array of hands tracked in this frame.long
An identifier for this tracking frame.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, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
info
A universal frame identification header. -
tracking_frame_id
public long tracking_frame_idAn identifier for this tracking frame.
This identifier is meant to be monotonically increasing, but values may be skipped if the client application does not poll for messages fast enough. This number also generally increases at the same rate as
info.frame_id
, but if the server cannot process every image received from the device cameras, theinfo.frame_id
identifier may increase faster. -
nHands
public int nHandsThe number of hands tracked in this frame. I.e. the number of elements in thepHands
array. -
pHands
A pointer to the array of hands tracked in this frame. UsegetHands()
to obtain the array itself. -
framerate
public float framerateCurrent tracking frame rate in hertz.
This frame rate is distinct from the image frame rate, which is the rate that images are being read from the device. Depending on host CPU limitations, the tracking frame rate may be substantially less than the device frame rate.
This number is generally equal to or less than the device frame rate, but there is one case where this number may be higher than the device frame rate: When the device rate drops. In this case, the device frame rate will fall sooner than the tracking frame rate.
This number is equal to zero if there are not enough frames to estimate frame rate.
This number cannot be negative.
-
-
Constructor Details
-
LEAP_TRACKING_EVENT
public LEAP_TRACKING_EVENT() -
LEAP_TRACKING_EVENT
public LEAP_TRACKING_EVENT(int size) -
LEAP_TRACKING_EVENT
-
-
Method Details