You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+21-17
Original file line number
Diff line number
Diff line change
@@ -54,22 +54,11 @@ New hand poses can be made by creating new Hand Pose Resource instances.
54
54
Hand Pose Resources consist of:
55
55
* A Pose Name (reported in the pose detector signals)
56
56
* A Threshold (a minimal fitness threshold to report the pose)
57
-
*An array of Hand Pose Rules
57
+
*A set of fitness functions to apply to each pose component
58
58
59
-
### Hand Pose Rules
59
+
### Pose Components
60
60
61
-

62
-
63
-
Hand Pose Rules consist of:
64
-
* A Rule Name (useful for tuning and debugging)
65
-
* A Rule Type [Flexion, Curl, Abduciton, and Tip-Distance]
66
-
* A Finger
67
-
* A second Finger (for Abduction and Tip-Distance)
68
-
* Fitness Function Terms (min, lower, upper, max)
69
-
70
-
### Rule Types
71
-
72
-
| Rule | Description |
61
+
| Type | Description |
73
62
| :--- | :---------- |
74
63
| Flexion | The angle (in degrees) of a fingers proximal joint curving into the palm to make a fist. |
75
64
| Curl | The curl (in degrees) of a finger from the proximal to the distal joints. |
@@ -78,10 +67,25 @@ Hand Pose Rules consist of:
78
67
79
68
### Fitness Function
80
69
81
-
Each rule produces a measurement in either degrees or millimeters. This measurement is translated to a fitness value in the range 0..1 using a transform defined by the fitness function terms. Values outside of the min/max range have a fitness of 0. Values inside the lower/upper range have a fitness of 1, and min-lower and upper-max are connected by a smoothstep function:
82
-

70
+
The fitness function converts a measurement (degrees or milimeters) into a fitness in the range 0..1 with 0 being a bad match, and 1 being a perfect match. Two types of fitness function are supported:
71
+
* Smoothstep
72
+
* Range
73
+
74
+
The fitness of a Hand Pose is the product of the fitness of all the components.
75
+
76
+
#### Smooth-Step Function
77
+
78
+
The Smooth-Step function transitions from 0 to 1 over the specified range. The paramerters may be reversed to reverse the function.
0 commit comments