// String names for each posture
        public static string getPostureName(Postures postureID)
        {
            switch (postureID)
            {
                case Postures.RIGHT_HAND_OVER_SHOULDER:
                    return "Right hand over shoulder";
                case Postures.LEFT_HAND_OVER_SHOULDER:
                    return "Left hand over shoulder";
                case Postures.ARMS_CROSSED:
                    return "Arms crossed";
                case Postures.ARMS_NEAR_POCKETS:
                    return "Arms near pockets";
                case Postures.ARMS_DOWN_TOGETHER:
                    return "Arms down together";
                case Postures.RIGHT_HAND_OUT:
                    return "Right hand out";
                case Postures.LEFT_HAND_OUT:
                    return "Left hand out";
                case Postures.HANDS_FRONT_TOGETHER:
                    return "Hands together in front";
                case Postures.LEFT_KNEE_UP:
                    return "Left knee up";
                case Postures.RIGHT_KNEE_UP:
                    return "Right knee up";
                case Postures.RIGHT_HAND_OVER_HEAD:
                    return "Right hand over head";
                case Postures.LEFT_HAND_OVER_HEAD:
                    return "Left hand over head";
                case Postures.RIGHT_HAND_LEFT_OF_SHOULDER:
                    return "Right hand left of shoulder";
                case Postures.RIGHT_HAND_RIGHT_OF_SHOULDER:
                    return "Right hand right of shoulder";
                case Postures.POINTING_RIGHT:
                    return "Right hand pointing gesture";
                case Postures.RIGHT_HAND_CLOSE_TO_ARM:
                    return "Right hand close to arm";
                case Postures.LEFT_HAND_CLOSE_TO_ARM:
                    return "Left hand close to arm";
                case Postures.NUM_POSTURES:
                    return "Invalid posture id";
            }

            return "Unknown posture id";
        }
Esempio n. 2
0
        // String names for each posture
        public static string getPostureName(Postures postureID)
        {
            switch (postureID)
            {
            case Postures.RIGHT_HAND_OVER_SHOULDER:
                return("Right hand over shoulder");

            case Postures.LEFT_HAND_OVER_SHOULDER:
                return("Left hand over shoulder");

            case Postures.ARMS_CROSSED:
                return("Arms crossed");

            case Postures.ARMS_NEAR_POCKETS:
                return("Arms near pockets");

            case Postures.ARMS_DOWN_TOGETHER:
                return("Arms down together");

            case Postures.RIGHT_HAND_OUT:
                return("Right hand out");

            case Postures.LEFT_HAND_OUT:
                return("Left hand out");

            case Postures.HANDS_FRONT_TOGETHER:
                return("Hands together in front");

            case Postures.LEFT_KNEE_UP:
                return("Left knee up");

            case Postures.RIGHT_KNEE_UP:
                return("Right knee up");

            case Postures.RIGHT_HAND_OVER_HEAD:
                return("Right hand over head");

            case Postures.LEFT_HAND_OVER_HEAD:
                return("Left hand over head");

            case Postures.RIGHT_HAND_LEFT_OF_SHOULDER:
                return("Right hand left of shoulder");

            case Postures.RIGHT_HAND_RIGHT_OF_SHOULDER:
                return("Right hand right of shoulder");

            case Postures.POINTING_RIGHT:
                return("Right hand pointing gesture");

            case Postures.RIGHT_HAND_CLOSE_TO_ARM:
                return("Right hand close to arm");

            case Postures.LEFT_HAND_CLOSE_TO_ARM:
                return("Left hand close to arm");

            case Postures.NUM_POSTURES:
                return("Invalid posture id");
            }

            return("Unknown posture id");
        }