react-native-nitro-pose-exercises 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +192 -159
- package/android/src/main/java/com/margelo/nitro/nitroposeexercises/NitroPoseExercises.kt +121 -4
- package/ios/NitroPoseExercises.swift +128 -11
- package/lib/module/NitroPoseExercises.nitro.js.map +1 -1
- package/lib/module/config/bicep-curl.js +3 -0
- package/lib/module/config/bicep-curl.js.map +1 -1
- package/lib/module/config/boat-pose.js +44 -0
- package/lib/module/config/boat-pose.js.map +1 -0
- package/lib/module/config/bow-pose.js +37 -0
- package/lib/module/config/bow-pose.js.map +1 -0
- package/lib/module/config/bridge-pose.js +37 -0
- package/lib/module/config/bridge-pose.js.map +1 -0
- package/lib/module/config/calf-raise.js +47 -0
- package/lib/module/config/calf-raise.js.map +1 -0
- package/lib/module/config/camel-pose.js +37 -0
- package/lib/module/config/camel-pose.js.map +1 -0
- package/lib/module/config/chair-pose.js +3 -0
- package/lib/module/config/chair-pose.js.map +1 -1
- package/lib/module/config/childs-pose.js +42 -0
- package/lib/module/config/childs-pose.js.map +1 -0
- package/lib/module/config/cobra-pose.js +3 -0
- package/lib/module/config/cobra-pose.js.map +1 -1
- package/lib/module/config/cobra-wings.js +47 -0
- package/lib/module/config/cobra-wings.js.map +1 -0
- package/lib/module/config/dead-lift.js +54 -0
- package/lib/module/config/dead-lift.js.map +1 -0
- package/lib/module/config/downward-dog.js +3 -0
- package/lib/module/config/downward-dog.js.map +1 -1
- package/lib/module/config/extended-side-angle.js +49 -0
- package/lib/module/config/extended-side-angle.js.map +1 -0
- package/lib/module/config/fish-pose.js +37 -0
- package/lib/module/config/fish-pose.js.map +1 -0
- package/lib/module/config/front-raise.js +54 -0
- package/lib/module/config/front-raise.js.map +1 -0
- package/lib/module/config/glute-bridge.js +49 -0
- package/lib/module/config/glute-bridge.js.map +1 -0
- package/lib/module/config/hip-abduction.js +42 -0
- package/lib/module/config/hip-abduction.js.map +1 -0
- package/lib/module/config/knee-raise.js +47 -0
- package/lib/module/config/knee-raise.js.map +1 -0
- package/lib/module/config/lateral-raise.js +54 -0
- package/lib/module/config/lateral-raise.js.map +1 -0
- package/lib/module/config/leg-raise.js +49 -0
- package/lib/module/config/leg-raise.js.map +1 -0
- package/lib/module/config/lunge.js +3 -0
- package/lib/module/config/lunge.js.map +1 -1
- package/lib/module/config/mountain-pose.js +49 -0
- package/lib/module/config/mountain-pose.js.map +1 -0
- package/lib/module/config/overarm-reach.js +47 -0
- package/lib/module/config/overarm-reach.js.map +1 -0
- package/lib/module/config/plank.js +3 -0
- package/lib/module/config/plank.js.map +1 -1
- package/lib/module/config/pull-up.js +47 -0
- package/lib/module/config/pull-up.js.map +1 -0
- package/lib/module/config/pushup.js +4 -0
- package/lib/module/config/pushup.js.map +1 -1
- package/lib/module/config/reverse-warrior.js +49 -0
- package/lib/module/config/reverse-warrior.js.map +1 -0
- package/lib/module/config/shoulder-press.js +3 -0
- package/lib/module/config/shoulder-press.js.map +1 -1
- package/lib/module/config/side-lung.js +54 -0
- package/lib/module/config/side-lung.js.map +1 -0
- package/lib/module/config/side-plank.js +37 -0
- package/lib/module/config/side-plank.js.map +1 -0
- package/lib/module/config/situp.js +3 -0
- package/lib/module/config/situp.js.map +1 -1
- package/lib/module/config/squat.js +3 -0
- package/lib/module/config/squat.js.map +1 -1
- package/lib/module/config/sumo-squat.js +54 -0
- package/lib/module/config/sumo-squat.js.map +1 -0
- package/lib/module/config/tree-pose.js +3 -0
- package/lib/module/config/tree-pose.js.map +1 -1
- package/lib/module/config/triangle-pose.js +49 -0
- package/lib/module/config/triangle-pose.js.map +1 -0
- package/lib/module/config/tricep-dip.js +4 -0
- package/lib/module/config/tricep-dip.js.map +1 -1
- package/lib/module/config/v-up.js +42 -0
- package/lib/module/config/v-up.js.map +1 -0
- package/lib/module/config/wall-sit.js +3 -0
- package/lib/module/config/wall-sit.js.map +1 -1
- package/lib/module/config/warrior-i.js +3 -0
- package/lib/module/config/warrior-i.js.map +1 -1
- package/lib/module/config/warrior-ii.js +3 -0
- package/lib/module/config/warrior-ii.js.map +1 -1
- package/lib/module/config/warrior-iii.js +61 -0
- package/lib/module/config/warrior-iii.js.map +1 -0
- package/lib/module/index.js +31 -3
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/NitroPoseExercises.nitro.d.ts +9 -1
- package/lib/typescript/src/NitroPoseExercises.nitro.d.ts.map +1 -1
- package/lib/typescript/src/config/bicep-curl.d.ts.map +1 -1
- package/lib/typescript/src/config/boat-pose.d.ts +3 -0
- package/lib/typescript/src/config/boat-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/bow-pose.d.ts +3 -0
- package/lib/typescript/src/config/bow-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/bridge-pose.d.ts +3 -0
- package/lib/typescript/src/config/bridge-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/calf-raise.d.ts +3 -0
- package/lib/typescript/src/config/calf-raise.d.ts.map +1 -0
- package/lib/typescript/src/config/camel-pose.d.ts +3 -0
- package/lib/typescript/src/config/camel-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/chair-pose.d.ts.map +1 -1
- package/lib/typescript/src/config/childs-pose.d.ts +3 -0
- package/lib/typescript/src/config/childs-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/cobra-pose.d.ts.map +1 -1
- package/lib/typescript/src/config/cobra-wings.d.ts +3 -0
- package/lib/typescript/src/config/cobra-wings.d.ts.map +1 -0
- package/lib/typescript/src/config/dead-lift.d.ts +3 -0
- package/lib/typescript/src/config/dead-lift.d.ts.map +1 -0
- package/lib/typescript/src/config/downward-dog.d.ts.map +1 -1
- package/lib/typescript/src/config/extended-side-angle.d.ts +3 -0
- package/lib/typescript/src/config/extended-side-angle.d.ts.map +1 -0
- package/lib/typescript/src/config/fish-pose.d.ts +3 -0
- package/lib/typescript/src/config/fish-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/front-raise.d.ts +3 -0
- package/lib/typescript/src/config/front-raise.d.ts.map +1 -0
- package/lib/typescript/src/config/glute-bridge.d.ts +3 -0
- package/lib/typescript/src/config/glute-bridge.d.ts.map +1 -0
- package/lib/typescript/src/config/hip-abduction.d.ts +3 -0
- package/lib/typescript/src/config/hip-abduction.d.ts.map +1 -0
- package/lib/typescript/src/config/knee-raise.d.ts +3 -0
- package/lib/typescript/src/config/knee-raise.d.ts.map +1 -0
- package/lib/typescript/src/config/lateral-raise.d.ts +3 -0
- package/lib/typescript/src/config/lateral-raise.d.ts.map +1 -0
- package/lib/typescript/src/config/leg-raise.d.ts +3 -0
- package/lib/typescript/src/config/leg-raise.d.ts.map +1 -0
- package/lib/typescript/src/config/lunge.d.ts.map +1 -1
- package/lib/typescript/src/config/mountain-pose.d.ts +3 -0
- package/lib/typescript/src/config/mountain-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/overarm-reach.d.ts +3 -0
- package/lib/typescript/src/config/overarm-reach.d.ts.map +1 -0
- package/lib/typescript/src/config/plank.d.ts.map +1 -1
- package/lib/typescript/src/config/pull-up.d.ts +3 -0
- package/lib/typescript/src/config/pull-up.d.ts.map +1 -0
- package/lib/typescript/src/config/pushup.d.ts.map +1 -1
- package/lib/typescript/src/config/reverse-warrior.d.ts +3 -0
- package/lib/typescript/src/config/reverse-warrior.d.ts.map +1 -0
- package/lib/typescript/src/config/shoulder-press.d.ts.map +1 -1
- package/lib/typescript/src/config/side-lung.d.ts +3 -0
- package/lib/typescript/src/config/side-lung.d.ts.map +1 -0
- package/lib/typescript/src/config/side-plank.d.ts +3 -0
- package/lib/typescript/src/config/side-plank.d.ts.map +1 -0
- package/lib/typescript/src/config/situp.d.ts.map +1 -1
- package/lib/typescript/src/config/squat.d.ts.map +1 -1
- package/lib/typescript/src/config/sumo-squat.d.ts +3 -0
- package/lib/typescript/src/config/sumo-squat.d.ts.map +1 -0
- package/lib/typescript/src/config/tree-pose.d.ts.map +1 -1
- package/lib/typescript/src/config/triangle-pose.d.ts +3 -0
- package/lib/typescript/src/config/triangle-pose.d.ts.map +1 -0
- package/lib/typescript/src/config/tricep-dip.d.ts.map +1 -1
- package/lib/typescript/src/config/v-up.d.ts +3 -0
- package/lib/typescript/src/config/v-up.d.ts.map +1 -0
- package/lib/typescript/src/config/wall-sit.d.ts.map +1 -1
- package/lib/typescript/src/config/warrior-i.d.ts.map +1 -1
- package/lib/typescript/src/config/warrior-ii.d.ts.map +1 -1
- package/lib/typescript/src/config/warrior-iii.d.ts +3 -0
- package/lib/typescript/src/config/warrior-iii.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +26 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JCameraAngleType.hpp +58 -0
- package/nitrogen/generated/android/c++/JExerciseConfig.hpp +19 -3
- package/nitrogen/generated/android/c++/JHybridNitroPoseExercisesSpec.cpp +47 -0
- package/nitrogen/generated/android/c++/JHybridNitroPoseExercisesSpec.hpp +5 -0
- package/nitrogen/generated/android/c++/JPostureFamily.hpp +73 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroposeexercises/CameraAngleType.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroposeexercises/ExerciseConfig.kt +19 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroposeexercises/HybridNitroPoseExercisesSpec.kt +32 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroposeexercises/PostureFamily.kt +28 -0
- package/nitrogen/generated/ios/NitroPoseExercises-Swift-Cxx-Bridge.hpp +9 -0
- package/nitrogen/generated/ios/NitroPoseExercises-Swift-Cxx-Umbrella.hpp +6 -0
- package/nitrogen/generated/ios/c++/HybridNitroPoseExercisesSpecSwift.hpp +28 -0
- package/nitrogen/generated/ios/swift/CameraAngleType.swift +40 -0
- package/nitrogen/generated/ios/swift/ExerciseConfig.swift +17 -2
- package/nitrogen/generated/ios/swift/HybridNitroPoseExercisesSpec.swift +3 -0
- package/nitrogen/generated/ios/swift/HybridNitroPoseExercisesSpec_cxx.swift +76 -0
- package/nitrogen/generated/ios/swift/PostureFamily.swift +60 -0
- package/nitrogen/generated/shared/c++/CameraAngleType.hpp +76 -0
- package/nitrogen/generated/shared/c++/ExerciseConfig.hpp +20 -2
- package/nitrogen/generated/shared/c++/HybridNitroPoseExercisesSpec.cpp +5 -0
- package/nitrogen/generated/shared/c++/HybridNitroPoseExercisesSpec.hpp +5 -0
- package/nitrogen/generated/shared/c++/PostureFamily.hpp +96 -0
- package/package.json +1 -1
- package/src/NitroPoseExercises.nitro.ts +19 -0
- package/src/config/bicep-curl.ts +3 -0
- package/src/config/boat-pose.ts +36 -0
- package/src/config/bow-pose.ts +27 -0
- package/src/config/bridge-pose.ts +28 -0
- package/src/config/calf-raise.ts +30 -0
- package/src/config/camel-pose.ts +27 -0
- package/src/config/chair-pose.ts +3 -0
- package/src/config/childs-pose.ts +26 -0
- package/src/config/cobra-pose.ts +3 -0
- package/src/config/cobra-wings.ts +29 -0
- package/src/config/dead-lift.ts +38 -0
- package/src/config/downward-dog.ts +3 -0
- package/src/config/extended-side-angle.ts +36 -0
- package/src/config/fish-pose.ts +28 -0
- package/src/config/front-raise.ts +58 -0
- package/src/config/glute-bridge.ts +36 -0
- package/src/config/hip-abduction.ts +28 -0
- package/src/config/knee-raise.ts +29 -0
- package/src/config/lateral-raise.ts +58 -0
- package/src/config/leg-raise.ts +36 -0
- package/src/config/lunge.ts +3 -0
- package/src/config/mountain-pose.ts +36 -0
- package/src/config/overarm-reach.ts +49 -0
- package/src/config/plank.ts +3 -0
- package/src/config/pull-up.ts +30 -0
- package/src/config/pushup.ts +3 -0
- package/src/config/reverse-warrior.ts +36 -0
- package/src/config/shoulder-press.ts +3 -0
- package/src/config/side-lung.ts +37 -0
- package/src/config/side-plank.ts +28 -0
- package/src/config/situp.ts +3 -0
- package/src/config/squat.ts +3 -0
- package/src/config/sumo-squat.ts +38 -0
- package/src/config/tree-pose.ts +3 -0
- package/src/config/triangle-pose.ts +37 -0
- package/src/config/tricep-dip.ts +3 -0
- package/src/config/v-up.ts +29 -0
- package/src/config/wall-sit.ts +3 -0
- package/src/config/warrior-i.ts +3 -0
- package/src/config/warrior-ii.ts +3 -0
- package/src/config/warrior-iii.ts +45 -0
- package/src/index.tsx +31 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
2
|
+
export const REVERSE_WARRIOR_CONFIG: ExerciseConfig = {
|
|
3
|
+
name: 'Reverse Warrior (Viparita Virabhadrasana)',
|
|
4
|
+
type: 'hold',
|
|
5
|
+
postureFamily: 'standingUpright',
|
|
6
|
+
visibilityThreshold: 0.4,
|
|
7
|
+
cameraAngle: 'side',
|
|
8
|
+
angles: [
|
|
9
|
+
{ name: 'frontKnee', landmarkA: 23, landmarkB: 25, landmarkC: 27 },
|
|
10
|
+
{ name: 'backLeg', landmarkA: 24, landmarkB: 26, landmarkC: 28 },
|
|
11
|
+
{ name: 'torsoArch', landmarkA: 11, landmarkB: 23, landmarkC: 25 },
|
|
12
|
+
],
|
|
13
|
+
phases: [
|
|
14
|
+
{ phase: 'hold', angleName: 'frontKnee', minAngle: 80, maxAngle: 110 },
|
|
15
|
+
],
|
|
16
|
+
repSequence: [],
|
|
17
|
+
formRules: [
|
|
18
|
+
{
|
|
19
|
+
name: 'frontKneeStraight',
|
|
20
|
+
message: 'Bend your front knee deeper',
|
|
21
|
+
severity: 'warning',
|
|
22
|
+
angleName: 'frontKnee',
|
|
23
|
+
minAngle: 80,
|
|
24
|
+
maxAngle: 110,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'backLegBent',
|
|
28
|
+
message: 'Keep your back leg strong and straight',
|
|
29
|
+
severity: 'warning',
|
|
30
|
+
angleName: 'backLeg',
|
|
31
|
+
minAngle: 160,
|
|
32
|
+
maxAngle: 180,
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
holdDurationMs: 30000,
|
|
36
|
+
};
|
|
@@ -8,6 +8,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
8
8
|
export const SHOULDER_PRESS_CONFIG: ExerciseConfig = {
|
|
9
9
|
name: 'Shoulder Press',
|
|
10
10
|
type: 'rep',
|
|
11
|
+
postureFamily: 'standingUpright',
|
|
12
|
+
visibilityThreshold: 0.2,
|
|
13
|
+
cameraAngle: 'front',
|
|
11
14
|
angles: [
|
|
12
15
|
{
|
|
13
16
|
name: 'leftElbow',
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
2
|
+
export const SIDE_LUNGE_CONFIG: ExerciseConfig = {
|
|
3
|
+
name: 'Side Lunge',
|
|
4
|
+
type: 'rep',
|
|
5
|
+
postureFamily: 'standingUpright',
|
|
6
|
+
visibilityThreshold: 0.2,
|
|
7
|
+
cameraAngle: 'front',
|
|
8
|
+
angles: [
|
|
9
|
+
{ name: 'bentKnee', landmarkA: 23, landmarkB: 25, landmarkC: 27 },
|
|
10
|
+
{ name: 'straightLeg', landmarkA: 24, landmarkB: 26, landmarkC: 28 },
|
|
11
|
+
{ name: 'torso', landmarkA: 11, landmarkB: 23, landmarkC: 25 },
|
|
12
|
+
],
|
|
13
|
+
phases: [
|
|
14
|
+
{ phase: 'up', angleName: 'bentKnee', minAngle: 155, maxAngle: 180 },
|
|
15
|
+
{ phase: 'down', angleName: 'bentKnee', minAngle: 70, maxAngle: 110 },
|
|
16
|
+
],
|
|
17
|
+
repSequence: ['up', 'down', 'up'],
|
|
18
|
+
formRules: [
|
|
19
|
+
{
|
|
20
|
+
name: 'straightLegBending',
|
|
21
|
+
message: 'Keep your other leg straight',
|
|
22
|
+
severity: 'warning',
|
|
23
|
+
angleName: 'straightLeg',
|
|
24
|
+
minAngle: 160,
|
|
25
|
+
maxAngle: 180,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'leaningForward',
|
|
29
|
+
message: 'Keep your chest up',
|
|
30
|
+
severity: 'warning',
|
|
31
|
+
angleName: 'torso',
|
|
32
|
+
minAngle: 70,
|
|
33
|
+
maxAngle: 180,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
holdDurationMs: 0,
|
|
37
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
2
|
+
|
|
3
|
+
export const SIDE_PLANK_CONFIG: ExerciseConfig = {
|
|
4
|
+
name: 'Side Plank',
|
|
5
|
+
type: 'hold',
|
|
6
|
+
postureFamily: 'sidePlank',
|
|
7
|
+
visibilityThreshold: 0.3,
|
|
8
|
+
cameraAngle: 'side',
|
|
9
|
+
angles: [
|
|
10
|
+
{ name: 'hipLateral', landmarkA: 11, landmarkB: 23, landmarkC: 27 },
|
|
11
|
+
{ name: 'supportArm', landmarkA: 11, landmarkB: 13, landmarkC: 15 },
|
|
12
|
+
],
|
|
13
|
+
phases: [
|
|
14
|
+
{ phase: 'hold', angleName: 'hipLateral', minAngle: 155, maxAngle: 180 },
|
|
15
|
+
],
|
|
16
|
+
repSequence: [],
|
|
17
|
+
formRules: [
|
|
18
|
+
{
|
|
19
|
+
name: 'hipDrop',
|
|
20
|
+
message: 'Lift your hips — keep your body in a straight line',
|
|
21
|
+
severity: 'warning',
|
|
22
|
+
angleName: 'hipLateral',
|
|
23
|
+
minAngle: 155,
|
|
24
|
+
maxAngle: 180,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
holdDurationMs: 30000,
|
|
28
|
+
};
|
package/src/config/situp.ts
CHANGED
|
@@ -8,6 +8,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
8
8
|
export const SITUP_CONFIG: ExerciseConfig = {
|
|
9
9
|
name: 'Sit-Up',
|
|
10
10
|
type: 'rep',
|
|
11
|
+
postureFamily: 'standingUpright',
|
|
12
|
+
visibilityThreshold: 0.2,
|
|
13
|
+
cameraAngle: 'front',
|
|
11
14
|
angles: [
|
|
12
15
|
{
|
|
13
16
|
name: 'leftHip',
|
package/src/config/squat.ts
CHANGED
|
@@ -8,6 +8,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
8
8
|
export const SQUAT_CONFIG: ExerciseConfig = {
|
|
9
9
|
name: 'Squat',
|
|
10
10
|
type: 'rep',
|
|
11
|
+
postureFamily: 'standingUpright',
|
|
12
|
+
visibilityThreshold: 0.2,
|
|
13
|
+
cameraAngle: 'front',
|
|
11
14
|
angles: [
|
|
12
15
|
{
|
|
13
16
|
name: 'leftKnee',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
2
|
+
|
|
3
|
+
export const SUMO_SQUAT_CONFIG: ExerciseConfig = {
|
|
4
|
+
name: 'Sumo Squat',
|
|
5
|
+
type: 'rep',
|
|
6
|
+
postureFamily: 'standingUpright',
|
|
7
|
+
visibilityThreshold: 0.2,
|
|
8
|
+
cameraAngle: 'front',
|
|
9
|
+
angles: [
|
|
10
|
+
{ name: 'leftKnee', landmarkA: 23, landmarkB: 25, landmarkC: 27 },
|
|
11
|
+
{ name: 'rightKnee', landmarkA: 24, landmarkB: 26, landmarkC: 28 },
|
|
12
|
+
{ name: 'hipAngle', landmarkA: 11, landmarkB: 23, landmarkC: 25 },
|
|
13
|
+
],
|
|
14
|
+
phases: [
|
|
15
|
+
{ phase: 'up', angleName: 'leftKnee', minAngle: 155, maxAngle: 180 },
|
|
16
|
+
{ phase: 'down', angleName: 'leftKnee', minAngle: 60, maxAngle: 110 },
|
|
17
|
+
],
|
|
18
|
+
repSequence: ['up', 'down', 'up'],
|
|
19
|
+
formRules: [
|
|
20
|
+
{
|
|
21
|
+
name: 'kneesNotTracking',
|
|
22
|
+
message: 'Push knees out over your toes',
|
|
23
|
+
severity: 'warning',
|
|
24
|
+
angleName: 'leftKnee',
|
|
25
|
+
minAngle: 50,
|
|
26
|
+
maxAngle: 180,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'leaningForward',
|
|
30
|
+
message: 'Keep your torso upright',
|
|
31
|
+
severity: 'warning',
|
|
32
|
+
angleName: 'hipAngle',
|
|
33
|
+
minAngle: 80,
|
|
34
|
+
maxAngle: 180,
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
holdDurationMs: 0,
|
|
38
|
+
};
|
package/src/config/tree-pose.ts
CHANGED
|
@@ -8,6 +8,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
8
8
|
export const TREE_POSE_CONFIG: ExerciseConfig = {
|
|
9
9
|
name: 'Tree Pose (Vrksasana)',
|
|
10
10
|
type: 'hold',
|
|
11
|
+
postureFamily: 'standingUpright',
|
|
12
|
+
visibilityThreshold: 0.4,
|
|
13
|
+
cameraAngle: 'front',
|
|
11
14
|
angles: [
|
|
12
15
|
{
|
|
13
16
|
name: 'standingLeg',
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
2
|
+
|
|
3
|
+
export const TRIANGLE_POSE_CONFIG: ExerciseConfig = {
|
|
4
|
+
name: 'Triangle Pose (Trikonasana)',
|
|
5
|
+
type: 'hold',
|
|
6
|
+
postureFamily: 'standingUpright',
|
|
7
|
+
visibilityThreshold: 0.4,
|
|
8
|
+
cameraAngle: 'front',
|
|
9
|
+
angles: [
|
|
10
|
+
{ name: 'frontLeg', landmarkA: 23, landmarkB: 25, landmarkC: 27 },
|
|
11
|
+
{ name: 'backLeg', landmarkA: 24, landmarkB: 26, landmarkC: 28 },
|
|
12
|
+
{ name: 'torsoLateral', landmarkA: 11, landmarkB: 23, landmarkC: 25 },
|
|
13
|
+
],
|
|
14
|
+
phases: [
|
|
15
|
+
{ phase: 'hold', angleName: 'frontLeg', minAngle: 160, maxAngle: 180 },
|
|
16
|
+
],
|
|
17
|
+
repSequence: [],
|
|
18
|
+
formRules: [
|
|
19
|
+
{
|
|
20
|
+
name: 'frontKneeBending',
|
|
21
|
+
message: 'Keep your front leg straight',
|
|
22
|
+
severity: 'warning',
|
|
23
|
+
angleName: 'frontLeg',
|
|
24
|
+
minAngle: 160,
|
|
25
|
+
maxAngle: 180,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'backKneeBending',
|
|
29
|
+
message: 'Straighten your back leg',
|
|
30
|
+
severity: 'warning',
|
|
31
|
+
angleName: 'backLeg',
|
|
32
|
+
minAngle: 160,
|
|
33
|
+
maxAngle: 180,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
holdDurationMs: 30000,
|
|
37
|
+
};
|
package/src/config/tricep-dip.ts
CHANGED
|
@@ -8,6 +8,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
8
8
|
export const TRICEP_DIP_CONFIG: ExerciseConfig = {
|
|
9
9
|
name: 'Tricep Dip',
|
|
10
10
|
type: 'rep',
|
|
11
|
+
postureFamily: 'horizontalProne',
|
|
12
|
+
visibilityThreshold: 0.2, // ← add
|
|
13
|
+
cameraAngle: 'front',
|
|
11
14
|
angles: [
|
|
12
15
|
{
|
|
13
16
|
name: 'leftElbow',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
2
|
+
|
|
3
|
+
export const V_UP_CONFIG: ExerciseConfig = {
|
|
4
|
+
name: 'V-Up',
|
|
5
|
+
type: 'rep',
|
|
6
|
+
postureFamily: 'supine',
|
|
7
|
+
visibilityThreshold: 0.25,
|
|
8
|
+
cameraAngle: 'side',
|
|
9
|
+
angles: [
|
|
10
|
+
{ name: 'hipFold', landmarkA: 15, landmarkB: 23, landmarkC: 27 },
|
|
11
|
+
{ name: 'leftKnee', landmarkA: 23, landmarkB: 25, landmarkC: 27 },
|
|
12
|
+
],
|
|
13
|
+
phases: [
|
|
14
|
+
{ phase: 'down', angleName: 'hipFold', minAngle: 150, maxAngle: 180 },
|
|
15
|
+
{ phase: 'up', angleName: 'hipFold', minAngle: 30, maxAngle: 80 },
|
|
16
|
+
],
|
|
17
|
+
repSequence: ['down', 'up', 'down'],
|
|
18
|
+
formRules: [
|
|
19
|
+
{
|
|
20
|
+
name: 'kneesBending',
|
|
21
|
+
message: 'Keep your legs straight — reach for your toes',
|
|
22
|
+
severity: 'warning',
|
|
23
|
+
angleName: 'leftKnee',
|
|
24
|
+
minAngle: 155,
|
|
25
|
+
maxAngle: 180,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
holdDurationMs: 0,
|
|
29
|
+
};
|
package/src/config/wall-sit.ts
CHANGED
|
@@ -8,6 +8,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
8
8
|
export const WALL_SIT_CONFIG: ExerciseConfig = {
|
|
9
9
|
name: 'Wall Sit',
|
|
10
10
|
type: 'hold',
|
|
11
|
+
postureFamily: 'standingUpright',
|
|
12
|
+
visibilityThreshold: 0.3,
|
|
13
|
+
cameraAngle: 'side',
|
|
11
14
|
angles: [
|
|
12
15
|
{
|
|
13
16
|
name: 'leftKnee',
|
package/src/config/warrior-i.ts
CHANGED
|
@@ -9,6 +9,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
9
9
|
export const WARRIOR_I_CONFIG: ExerciseConfig = {
|
|
10
10
|
name: 'Warrior I (Virabhadrasana I)',
|
|
11
11
|
type: 'hold',
|
|
12
|
+
postureFamily: 'standingUpright',
|
|
13
|
+
visibilityThreshold: 0.4,
|
|
14
|
+
cameraAngle: 'side',
|
|
12
15
|
angles: [
|
|
13
16
|
{
|
|
14
17
|
name: 'frontKnee',
|
package/src/config/warrior-ii.ts
CHANGED
|
@@ -9,6 +9,9 @@ import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
|
9
9
|
export const WARRIOR_II_CONFIG: ExerciseConfig = {
|
|
10
10
|
name: 'Warrior II (Virabhadrasana II)',
|
|
11
11
|
type: 'hold',
|
|
12
|
+
postureFamily: 'standingUpright',
|
|
13
|
+
visibilityThreshold: 0.4,
|
|
14
|
+
cameraAngle: 'front',
|
|
12
15
|
angles: [
|
|
13
16
|
{
|
|
14
17
|
name: 'frontKnee',
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ExerciseConfig } from '../NitroPoseExercises.nitro';
|
|
2
|
+
export const WARRIOR_III_CONFIG: ExerciseConfig = {
|
|
3
|
+
name: 'Warrior III (Virabhadrasana III)',
|
|
4
|
+
type: 'hold',
|
|
5
|
+
postureFamily: 'standingUpright',
|
|
6
|
+
visibilityThreshold: 0.4,
|
|
7
|
+
cameraAngle: 'side',
|
|
8
|
+
angles: [
|
|
9
|
+
{ name: 'standingLeg', landmarkA: 23, landmarkB: 25, landmarkC: 27 },
|
|
10
|
+
{ name: 'hipHinge', landmarkA: 11, landmarkB: 23, landmarkC: 25 },
|
|
11
|
+
{ name: 'raisedLeg', landmarkA: 12, landmarkB: 24, landmarkC: 28 },
|
|
12
|
+
{ name: 'arms', landmarkA: 11, landmarkB: 13, landmarkC: 15 },
|
|
13
|
+
],
|
|
14
|
+
phases: [
|
|
15
|
+
{ phase: 'hold', angleName: 'hipHinge', minAngle: 70, maxAngle: 110 },
|
|
16
|
+
],
|
|
17
|
+
repSequence: [],
|
|
18
|
+
formRules: [
|
|
19
|
+
{
|
|
20
|
+
name: 'standingLegBent',
|
|
21
|
+
message: 'Straighten your standing leg',
|
|
22
|
+
severity: 'warning',
|
|
23
|
+
angleName: 'standingLeg',
|
|
24
|
+
minAngle: 165,
|
|
25
|
+
maxAngle: 180,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'raisedLegLow',
|
|
29
|
+
message: 'Lift your back leg parallel to the floor',
|
|
30
|
+
severity: 'info',
|
|
31
|
+
angleName: 'raisedLeg',
|
|
32
|
+
minAngle: 155,
|
|
33
|
+
maxAngle: 180,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'armsNotExtended',
|
|
37
|
+
message: 'Reach your arms forward',
|
|
38
|
+
severity: 'info',
|
|
39
|
+
angleName: 'arms',
|
|
40
|
+
minAngle: 160,
|
|
41
|
+
maxAngle: 180,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
holdDurationMs: 30000,
|
|
45
|
+
};
|
package/src/index.tsx
CHANGED
|
@@ -25,23 +25,51 @@ export type {
|
|
|
25
25
|
SessionResult,
|
|
26
26
|
} from './NitroPoseExercises.nitro';
|
|
27
27
|
|
|
28
|
-
// ─── Rep-Based
|
|
28
|
+
// ─── Rep-Based: Strength ─────────────────────────────────────
|
|
29
29
|
export { PUSHUP_CONFIG } from './config/pushup';
|
|
30
|
+
export { PULL_UP_CONFIG } from './config/pull-up';
|
|
30
31
|
export { SQUAT_CONFIG } from './config/squat';
|
|
32
|
+
export { SUMO_SQUAT_CONFIG } from './config/sumo-squat';
|
|
31
33
|
export { BICEP_CURL_CONFIG } from './config/bicep-curl';
|
|
32
34
|
export { SHOULDER_PRESS_CONFIG } from './config/shoulder-press';
|
|
33
35
|
export { LUNGE_CONFIG } from './config/lunge';
|
|
36
|
+
export { SIDE_LUNGE_CONFIG } from './config/side-lung';
|
|
34
37
|
export { SITUP_CONFIG } from './config/situp';
|
|
35
38
|
export { TRICEP_DIP_CONFIG } from './config/tricep-dip';
|
|
39
|
+
export { DEADLIFT_CONFIG } from './config/dead-lift';
|
|
40
|
+
export { LATERAL_RAISE_CONFIG } from './config/lateral-raise';
|
|
41
|
+
export { FRONT_RAISE_CONFIG } from './config/front-raise';
|
|
42
|
+
export { CALF_RAISE_CONFIG } from './config/calf-raise';
|
|
43
|
+
export { OVERARM_REACH_CONFIG } from './config/overarm-reach';
|
|
36
44
|
|
|
37
|
-
// ───
|
|
45
|
+
// ─── Rep-Based: Core ─────────────────────────────────────────
|
|
46
|
+
export { LEG_RAISE_CONFIG } from './config/leg-raise';
|
|
47
|
+
export { V_UP_CONFIG } from './config/v-up';
|
|
48
|
+
export { GLUTE_BRIDGE_CONFIG } from './config/glute-bridge';
|
|
49
|
+
export { COBRA_WINGS_CONFIG } from './config/cobra-wings';
|
|
50
|
+
export { KNEE_RAISE_CONFIG } from './config/knee-raise';
|
|
51
|
+
export { HIP_ABDUCTION_CONFIG } from './config/hip-abduction';
|
|
52
|
+
|
|
53
|
+
// ─── Hold-Based: Strength ────────────────────────────────────
|
|
38
54
|
export { PLANK_CONFIG } from './config/plank';
|
|
55
|
+
export { SIDE_PLANK_CONFIG } from './config/side-plank';
|
|
39
56
|
export { WALL_SIT_CONFIG } from './config/wall-sit';
|
|
40
57
|
|
|
41
|
-
// ─── Yoga
|
|
58
|
+
// ─── Hold-Based: Yoga ────────────────────────────────────────
|
|
42
59
|
export { TREE_POSE_CONFIG } from './config/tree-pose';
|
|
43
60
|
export { WARRIOR_I_CONFIG } from './config/warrior-i';
|
|
44
61
|
export { WARRIOR_II_CONFIG } from './config/warrior-ii';
|
|
62
|
+
export { WARRIOR_III_CONFIG } from './config/warrior-iii';
|
|
63
|
+
export { REVERSE_WARRIOR_CONFIG } from './config/reverse-warrior';
|
|
45
64
|
export { DOWNWARD_DOG_CONFIG } from './config/downward-dog';
|
|
46
65
|
export { CHAIR_POSE_CONFIG } from './config/chair-pose';
|
|
47
66
|
export { COBRA_POSE_CONFIG } from './config/cobra-pose';
|
|
67
|
+
export { BRIDGE_POSE_CONFIG } from './config/bridge-pose';
|
|
68
|
+
export { BOAT_POSE_CONFIG } from './config/boat-pose';
|
|
69
|
+
export { EXTENDED_SIDE_ANGLE_CONFIG } from './config/extended-side-angle';
|
|
70
|
+
export { CAMEL_POSE_CONFIG } from './config/camel-pose';
|
|
71
|
+
export { CHILDS_POSE_CONFIG } from './config/childs-pose';
|
|
72
|
+
export { BOW_POSE_CONFIG } from './config/bow-pose';
|
|
73
|
+
export { FISH_POSE_CONFIG } from './config/fish-pose';
|
|
74
|
+
export { MOUNTAIN_POSE_CONFIG } from './config/mountain-pose';
|
|
75
|
+
export { TRIANGLE_POSE_CONFIG } from './config/triangle-pose';
|