#include <Leap.h>
Public Member Functions | |
def | __eq__ |
def | __init__ |
def | __ne__ |
def | __str__ |
Arm (HandImplementation *) | |
LEAP_EXPORT | Arm () |
LEAP_EXPORT Matrix | basis () const |
LEAP_EXPORT Vector | center () const |
LEAP_EXPORT Vector | direction () const |
LEAP_EXPORT Vector | elbowPosition () const |
LEAP_EXPORT bool | isValid () const |
LEAP_EXPORT bool | operator!= (const Arm &) const |
LEAP_EXPORT bool | operator== (const Arm &) const |
std::string | toString () const |
LEAP_EXPORT float | width () const |
LEAP_EXPORT Vector | wristPosition () const |
Static Public Member Functions | |
static LEAP_EXPORT const Arm & | invalid () |
Public Attributes | |
this | |
Static Public Attributes | |
tuple | basis = _swig_property(LeapPython.Arm_basis_get) |
tuple | center = _swig_property(LeapPython.Arm_center_get) |
tuple | direction = _swig_property(LeapPython.Arm_direction_get) |
tuple | elbow_position = _swig_property(LeapPython.Arm_elbow_position_get) |
tuple | is_valid = _swig_property(LeapPython.Arm_is_valid_get) |
tuple | width = _swig_property(LeapPython.Arm_width_get) |
tuple | wrist_position = _swig_property(LeapPython.Arm_wrist_position_get) |
Private Member Functions | |
LEAP_EXPORT const char * | toCString () const |
Static Private Attributes | |
tuple | __getattr__ = lambdaself,name:_swig_getattr(self, Arm, name) |
__repr__ = _swig_repr | |
tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, Arm, name, value) |
__swig_destroy__ = LeapPython.delete_Arm | |
dictionary | __swig_getmethods__ = {} |
dictionary | __swig_setmethods__ = {} |
Friends | |
LEAP_EXPORT friend std::ostream & | operator<< (std::ostream &, const Arm &) |
Leap::Arm::Arm | ( | HandImplementation * | ) |
def Leap::Arm::__init__ | ( | self | ) |
def Leap::Arm::__eq__ | ( | self, | |
arg2 | |||
) |
def Leap::Arm::__ne__ | ( | self, | |
arg2 | |||
) |
def Leap::Arm::__str__ | ( | self | ) |
LEAP_EXPORT Matrix Leap::Arm::basis | ( | ) | const |
The orthonormal basis vectors for the Arm bone as a Matrix.
Basis vectors specify the orientation of a bone.
**xBasis** Perpendicular to the longitudinal axis of the bone; exits the arm laterally through the sides of the wrist.
**yBasis or up vector** Perpendicular to the longitudinal axis of the bone; exits the top and bottom of the arm. More positive in the upward direction.
**zBasis** Aligned with the longitudinal axis of the arm bone. More positive toward the wrist.
The bases provided for the right arm use the right-hand rule; those for the left arm use the left-hand rule. Thus, the positive direction of the x-basis is to the right for the right arm and to the left for the left arm. You can change from right-hand to left-hand rule by multiplying the z basis vector by -1.
Note that converting the basis vectors directly into a quaternion representation is not mathematically valid. If you use quaternions, create them from the derived rotation matrix not directly from the bases.
LEAP_EXPORT Vector Leap::Arm::center | ( | ) | const |
The center of the forearm.
This location represents the midpoint of the arm between the wrist position and the elbow position.
LEAP_EXPORT Vector Leap::Arm::direction | ( | ) | const |
The normalized direction in which the arm is pointing (from elbow to wrist).
LEAP_EXPORT Vector Leap::Arm::elbowPosition | ( | ) | const |
The position of the elbow.
If not in view, the elbow position is estimated based on typical human anatomical proportions.
static LEAP_EXPORT const Arm& Leap::Arm::invalid | ( | ) | [static] |
LEAP_EXPORT bool Leap::Arm::isValid | ( | ) | const |
LEAP_EXPORT bool Leap::Arm::operator!= | ( | const Arm & | ) | const |
LEAP_EXPORT bool Leap::Arm::operator== | ( | const Arm & | ) | const |
LEAP_EXPORT const char* Leap::Arm::toCString | ( | ) | const [private] |
std::string Leap::Arm::toString | ( | ) | const [inline] |
LEAP_EXPORT float Leap::Arm::width | ( | ) | const |
The average width of the arm.
LEAP_EXPORT Vector Leap::Arm::wristPosition | ( | ) | const |
The position of the wrist.
Note that the wrist position is not collocated with the end of any bone in the hand. There is a gap of a few centimeters since the carpal bones are not included in the skeleton model.
LEAP_EXPORT friend std::ostream& operator<< | ( | std::ostream & | , |
const Arm & | |||
) | [friend] |
tuple Leap::Arm::__getattr__ = lambdaself,name:_swig_getattr(self, Arm, name) [static, private] |
Reimplemented from Leap::Interface.
Leap::Arm::__repr__ = _swig_repr [static, private] |
tuple Leap::Arm::__setattr__ = lambdaself,name,value:_swig_setattr(self, Arm, name, value) [static, private] |
Reimplemented from Leap::Interface.
Leap::Arm::__swig_destroy__ = LeapPython.delete_Arm [static, private] |
dictionary Leap::Arm::__swig_getmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
dictionary Leap::Arm::__swig_setmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
tuple Leap::Arm::basis = _swig_property(LeapPython.Arm_basis_get) [static] |
tuple Leap::Arm::center = _swig_property(LeapPython.Arm_center_get) [static] |
tuple Leap::Arm::direction = _swig_property(LeapPython.Arm_direction_get) [static] |
tuple Leap::Arm::elbow_position = _swig_property(LeapPython.Arm_elbow_position_get) [static] |
tuple Leap::Arm::is_valid = _swig_property(LeapPython.Arm_is_valid_get) [static] |
tuple Leap::Arm::width = _swig_property(LeapPython.Arm_width_get) [static] |
tuple Leap::Arm::wrist_position = _swig_property(LeapPython.Arm_wrist_position_get) [static] |