Closed lorenzoPatras closed 9 years ago
Fixed with commit 85a6a0d996cc36fcb90ea5285cd965a55598bac6. The first skeleton frame taken by the sensor is considered to be the initial position. Since we cannot assume that the user will come back to exactly the same position, and even if he/she comes back to the same position, we cannot assume that the sensor will compute the same quaternions, the bounds are relaxed a little bit. As a result we get an area around the initial skeleton recording which will be considered to be the initial position. When the user is in this "area" we will consider he/she is in initial position.
Each exercise should start from an initial position. The exercise is considered to be finished when the body returns in initial position for at least 1 sec. Implement a method, IsInitialPosition() which returns true if the body is in initial position or in a position close to initial one. When application is started ask user to stay in initial position for 5 seconds in order to train the deviation from the initial position.