-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add finger control rules to rules.py
- Loading branch information
1 parent
85aadd0
commit db97ebe
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
FINGERS = { | ||
"index_finger": "Dedo índice", | ||
"middle_finger": "Dedo medio", | ||
"ring_finger": "Dedo anular", | ||
"pinky_finger": "Dedo meñique", | ||
"lower_thumb": "Gordo bajo", | ||
"upper_thumb": "Gordo alto" | ||
} | ||
|
||
CLOSE_HAND = [ | ||
{"engine": "index_finger", "value": 1}, | ||
{"engine": "middle_finger", "value": 1}, | ||
{"engine": "ring_finger", "value": 1}, | ||
{"engine": "pinky_finger", "value": 1}, | ||
{"engine": "lower_thumb", "value": 1}, | ||
{"engine": "upper_thumb", "value": 1} | ||
] | ||
|
||
OPEN_HAND = [ | ||
{"engine": "upper_thumb", "value": 0}, | ||
{"engine": "lower_thumb", "value": 0}, | ||
{"engine": "index_finger", "value": 0}, | ||
{"engine": "middle_finger", "value": 0}, | ||
{"engine": "ring_finger", "value": 0}, | ||
{"engine": "pinky_finger", "value": 0}, | ||
] | ||
|
||
PINCH_GRIP = [ | ||
{"engine": "upper_thumb", "value": 1}, | ||
{"engine": "lower_thumb", "value": 0.8}, | ||
{"engine": "index_finger", "value": 0.50}, | ||
{"engine": "middle_finger", "value": 0}, | ||
{"engine": "ring_finger", "value": 0}, | ||
{"engine": "pinky_finger", "value": 0}, | ||
] |