Beispiel #1
0
 public AcclaimHandler(ASFReader asfReader, AMCReader amcReader)
 {
     this.asfReader = asfReader;
     this.amcReader = amcReader;
     frameBuffer    = new AMCFrameBuffer(BUFFERSIZE, amcReader);
     CreateSkeletonJointDict();
     SetSkeletonHierarchy();
 }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public AcclaimHandler(ASFReader asfReader, AMCReader amcReader, IMocapConverter cvt) :
     this(asfReader, amcReader)
 {
     mocapConverter = cvt;
 }