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:
  • Field Details

    • id

      public int id

      A 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 flags
      Reserved for future use.
    • type

      public int type
      The chirality of this hand. Either 0 (left) or 1 (right). Use getType() to get the type as a eLeapHandType value.
    • confidence

      public float confidence

      How confident we are with a given hand pose.

      Not currently used (always 1.0).

    • visible_time

      public long visible_time
      The total amount of time this hand has been tracked, in microseconds.
    • pinch_distance

      public float pinch_distance
      The distance between index finger and thumb.
    • grab_angle

      public float grab_angle
      The average angle of fingers to palm.
    • pinch_strength

      public float pinch_strength

      The normalized estimate of the pinch pose.

      Zero is not pinching; one is fully pinched.

    • grab_strength

      public float grab_strength

      The normalized estimate of the grab hand pose.

      Zero is not grabbing; one is fully grabbing.

    • palm

      public LEAP_PALM palm
      Additional information associated with the palm.
    • digits

      public LEAP_HAND.DigitStruct digits
      The fingers of this hand.
    • arm

      public LEAP_BONE 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

      public LEAP_HAND(Pointer pointer)
  • Method Details