public AcclaimHandler(ASFReader asfReader, AMCReader amcReader) { this.asfReader = asfReader; this.amcReader = amcReader; frameBuffer = new AMCFrameBuffer(BUFFERSIZE, amcReader); CreateSkeletonJointDict(); SetSkeletonHierarchy(); }
public AMCFrameBuffer(long size, AMCReader amcReader) { bufferSize = size; this.amcReader = amcReader; frameBuffer = new LinkedList <AMCFrame>(); var template = amcReader.templateValueDict; for (int i = 0; i < bufferSize; i++) { AMCFrame frame = new AMCFrame(template); frameBuffer.AddLast(frame); } }
void Start() { skeleton = new CharacterSkeleton(humanoid); state = new int[BODYCOUNT * JOINTCOUNT]; for (int i = 0; i < state.Length; i++) { state[i] = CharacterSkeleton.TrackingState_Tracked; } asfReader = new ASFReader(ASFPath); amcReader = new AMCReader(AMCPath); AcclaimToKinectConverter cvt = new AcclaimToKinectConverter(); acclaimHandler = new AcclaimHandler(asfReader, amcReader, cvt); }
public AcclaimHandler(ASFReader asfReader, AMCReader amcReader, IMocapConverter cvt) : this(asfReader, amcReader) { mocapConverter = cvt; }