Skip to content

Commit

Permalink
feat: Add finger control rules to rules.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseFredes committed Aug 24, 2024
1 parent 85aadd0 commit db97ebe
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions rules/rules.py
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},
]

0 comments on commit db97ebe

Please sign in to comment.