Kinect Body Tracking  1.0
 All Classes Functions
shahqaan.kinect.LoggableSkeleton Class Reference

Inherits shahqaan.kinect.AbstractLoggable.

Public Member Functions

void start ()
 
void log (Skeletons skeletons, HashMap< SkeletonJoint, SkeletonJointPosition > skel)
 
void stop ()
 

Detailed Description

Author
Shahqaan Qasim

Definition at line 26 of file LoggableSkeleton.java.

Member Function Documentation

void shahqaan.kinect.LoggableSkeleton.log ( Skeletons  skeletons,
HashMap< SkeletonJoint, SkeletonJointPosition >  skel 
)
Parameters
skeletons
skel

Implements shahqaan.kinect.AbstractLoggable.

Definition at line 58 of file LoggableSkeleton.java.

58  {
59  if (isLogging) {
60  try {
61  for (SkeletonJoint j : SkeletonJoint.values()) {
62  Point3D point = skeletons.getJointPos(skel, j);
63  if (point != null) {
64  p.print(point.getX() + "," + point.getY() + "," + point.getZ() + ",,");
65  }
66  }
67  p.println();
68  } catch (Exception e) {
69  e.printStackTrace();
70  System.exit(1);
71  }
72  }
73  }

The documentation for this class was generated from the following file: