def refreshData(self):
		for i in range(self.availableKinects):
			totalData = MultiKinect.getNextSkeletonFrameFromKinectAtIndex(i)
			if totalData != None:
				self.skeletonData[i] = totalData[0]
				self.skeletonPointData[i] = totalData[1]
				self.kinectTimeStamp[i] = totalData[2]
	def __init__(self):
		initData = MultiKinect.initKinects()
		self.availableKinects = initData[0]

		self.skeletonData = []
		self.skeletonPointData = []
		self.kinectTimeStamp = []
		for i in range(self.availableKinects):
			self.skeletonData.append([])
			self.skeletonPointData.append([])
			self.kinectTimeStamp.append([])

		print "Initializing " + str(self.availableKinects) + " Kinects..."
		if initData[1]:
			print "UNABLE TO CREATE ALL KINECT INSTANCES."
		else:
			print "Kinect instances created."
		if initData[2]:
			print "INITIALIZATIONS FAILED."
		else:
			print "Initialization success."
		if initData[3]:
			print "SKELETON ENABLING FAILED."
		else:
			print "Skeletons enabled."
		if initData[4]:
			print "UNABLE TO OPEN DEPTH STREAM."
		else:
			print "Depth streams open."
	def setKinectElevation(self, kinectNum, elevation):
		if kinectNum >= self.availableKinects:
			return False
		else:
			MultiKinect.setKinectElevationAngle(kinectNum, elevation)
			return True
	def getKinectElevation(self, kinectNum):
		if kinectNum >= self.availableKinects:
			return None
		else:
			return MultiKinect.getKinectElevationAngle(kinectNum)
	def shutdownKinect(self):
		MultiKinect.shutDownKinects()
		#for testing
		print "Shuting down Kinects..."