Nuitrack  1.11.2
3D Skeleton Tracking Middleware
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
nuitrack.Skeleton Class Reference

Stores the skeleton data. More...

Public Member Functions

 Skeleton (int id, Joint[] joints)
 Initializes a new instance of the nuitrack.Skeleton class. More...
 
Joint GetJoint (JointType jointType)
 Get the joint. More...
 

Properties

int ID [get, set]
 Get the ID. More...
 
Joint[] Joints [get, set]
 Get the joints. More...
 

Detailed Description

Stores the skeleton data.

The skeleton is represented as a set of joints, each of which has its own position and orientation. If pairs of adjacent joints are connected by imaginary "bones", you can get a simplified model of a real human skeleton. Then, the orientation of the joint will be consistent with the orientation of the outgoing "bone".

The skeleton scheme is shown in the picture below.

skeleton_scheme.jpg
Skeleton scheme
Joint orientation is represented in the form of rotation matrix. In a T-pose, the rotation matrices for all joints are equal to an identity matrix (see the picture below). Rotations for wrists, feet and head are always identical.

t_pose.jpg
T-pose

Constructor & Destructor Documentation

nuitrack.Skeleton.Skeleton ( int  id,
Joint[]  joints 
)
inline

Initializes a new instance of the nuitrack.Skeleton class.

Parameters
[in]idIdentifier.
[in]jointsJoints.

Member Function Documentation

Joint nuitrack.Skeleton.GetJoint ( JointType  jointType)
inline

Get the joint.

Parameters
[in]jointTypeJoint type.
Returns
The joint.

Property Documentation

int nuitrack.Skeleton.ID
getset

Get the ID.

Returns
The ID.
Joint [] nuitrack.Skeleton.Joints
getset

Get the joints.

Returns
The joints.