#include <Leap.h>
Public Member Functions | |
def | __eq__ (self, arg2) |
def | __init__ (self) |
def | __ne__ (self, arg2) |
def | __str__ (self) |
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 |
Public Member Functions inherited from Leap::Interface | |
def | __init__ (self, args, kwargs) |
Static Public Member Functions | |
static LEAP_EXPORT const Arm & | invalid () |
Public Attributes | |
this | |
Static Public Attributes | |
basis = _swig_property(LeapPython.Arm_basis_get) | |
center = _swig_property(LeapPython.Arm_center_get) | |
direction = _swig_property(LeapPython.Arm_direction_get) | |
elbow_position = _swig_property(LeapPython.Arm_elbow_position_get) | |
is_valid = _swig_property(LeapPython.Arm_is_valid_get) | |
width = _swig_property(LeapPython.Arm_width_get) | |
wrist_position = _swig_property(LeapPython.Arm_wrist_position_get) | |
Private Member Functions | |
LEAP_EXPORT const char * | toCString () const |
Static Private Attributes | |
__getattr__ = lambdaself,name:_swig_getattr(self, Arm, name) | |
__repr__ = _swig_repr | |
__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 &) |
Additional Inherited Members | |
Protected Member Functions inherited from Leap::Interface | |
template<typename T > | |
T * | get () const |
LEAP_EXPORT | Interface (void *owner) |
LEAP_EXPORT | Interface (Implementation *reference, void *owner) |
LEAP_EXPORT | Interface (const Interface &rhs) |
Interface (class SharedObject *object) | |
LEAP_EXPORT Interface & | operator= (const Interface &rhs) |
virtual LEAP_EXPORT | ~Interface () |
Static Protected Member Functions inherited from Leap::Interface | |
static LEAP_EXPORT void | deleteCString (const char *cstr) |
Protected Attributes inherited from Leap::Interface | |
class SharedObject * | m_object |
Leap::Arm::Arm | ( | HandImplementation * | ) |
LEAP_EXPORT Leap::Arm::Arm | ( | ) |
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 bool Leap::Arm::isValid | ( | ) | const |
LEAP_EXPORT bool Leap::Arm::operator!= | ( | const Arm & | ) | const |
LEAP_EXPORT bool Leap::Arm::operator== | ( | const Arm & | ) | const |
|
private |
|
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.
|
friend |
Writes a brief, human readable description of the Arm object to an output stream.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |