def __init__(self, frames, filename, **kwargs): super(Recorder, self).__init__(**kwargs) self.frames = frames self.recorded = 0 self.writer = open(filename, 'wb') self.oid = uuid.uuid1() self.kinect = KinectFactory.create_kinect()
def handleConnected(self): print self.address, 'connected' self.kinect = KinectFactory.create_kinect() self.oid = uuid.uuid1() self.kinect.add_observer(self.oid, self.send_depth)
def close_sig_handler(signum, frame): server.close() KinectFactory.kill() sys.exit()