Alina Lozovskaya
commited on
Commit
·
62d8867
1
Parent(s):
13d2d0d
Silence type: ignore[misc]
Browse files
pyproject.toml
CHANGED
|
@@ -98,3 +98,9 @@ python_version = "3.12"
|
|
| 98 |
files = ["src/"]
|
| 99 |
ignore_missing_imports = true
|
| 100 |
strict = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
files = ["src/"]
|
| 99 |
ignore_missing_imports = true
|
| 100 |
strict = true
|
| 101 |
+
show_error_codes = true
|
| 102 |
+
warn_unused_ignores = true
|
| 103 |
+
|
| 104 |
+
[[tool.mypy.overrides]]
|
| 105 |
+
module = "reachy_mini_conversation_demo.*"
|
| 106 |
+
disable_error_code = ["misc"]
|
src/reachy_mini_conversation_demo/dance_emotion_moves.py
CHANGED
|
@@ -19,7 +19,7 @@ from reachy_mini_dances_library.dance_move import DanceMove
|
|
| 19 |
logger = logging.getLogger(__name__)
|
| 20 |
|
| 21 |
|
| 22 |
-
class DanceQueueMove(Move):
|
| 23 |
"""Wrapper for dance moves to work with the movement queue system."""
|
| 24 |
|
| 25 |
def __init__(self, move_name: str):
|
|
@@ -53,7 +53,7 @@ class DanceQueueMove(Move): # type: ignore[misc]
|
|
| 53 |
return (neutral_head_pose, np.array([0.0, 0.0], dtype=np.float64), 0.0)
|
| 54 |
|
| 55 |
|
| 56 |
-
class EmotionQueueMove(Move):
|
| 57 |
"""Wrapper for emotion moves to work with the movement queue system."""
|
| 58 |
|
| 59 |
def __init__(self, emotion_name: str, recorded_moves: RecordedMoves):
|
|
@@ -87,7 +87,7 @@ class EmotionQueueMove(Move): # type: ignore[misc]
|
|
| 87 |
return (neutral_head_pose, np.array([0.0, 0.0], dtype=np.float64), 0.0)
|
| 88 |
|
| 89 |
|
| 90 |
-
class GotoQueueMove(Move):
|
| 91 |
"""Wrapper for goto moves to work with the movement queue system."""
|
| 92 |
|
| 93 |
def __init__(
|
|
|
|
| 19 |
logger = logging.getLogger(__name__)
|
| 20 |
|
| 21 |
|
| 22 |
+
class DanceQueueMove(Move):
|
| 23 |
"""Wrapper for dance moves to work with the movement queue system."""
|
| 24 |
|
| 25 |
def __init__(self, move_name: str):
|
|
|
|
| 53 |
return (neutral_head_pose, np.array([0.0, 0.0], dtype=np.float64), 0.0)
|
| 54 |
|
| 55 |
|
| 56 |
+
class EmotionQueueMove(Move):
|
| 57 |
"""Wrapper for emotion moves to work with the movement queue system."""
|
| 58 |
|
| 59 |
def __init__(self, emotion_name: str, recorded_moves: RecordedMoves):
|
|
|
|
| 87 |
return (neutral_head_pose, np.array([0.0, 0.0], dtype=np.float64), 0.0)
|
| 88 |
|
| 89 |
|
| 90 |
+
class GotoQueueMove(Move):
|
| 91 |
"""Wrapper for goto moves to work with the movement queue system."""
|
| 92 |
|
| 93 |
def __init__(
|
src/reachy_mini_conversation_demo/moves.py
CHANGED
|
@@ -61,7 +61,7 @@ CONTROL_LOOP_FREQUENCY_HZ = 100.0 # Hz - Target frequency for the movement cont
|
|
| 61 |
FullBodyPose = Tuple[NDArray[np.float32], Tuple[float, float], float] # (head_pose_4x4, antennas, body_yaw)
|
| 62 |
|
| 63 |
|
| 64 |
-
class BreathingMove(Move):
|
| 65 |
"""Breathing move with interpolation to neutral and then continuous breathing patterns."""
|
| 66 |
|
| 67 |
def __init__(
|
|
|
|
| 61 |
FullBodyPose = Tuple[NDArray[np.float32], Tuple[float, float], float] # (head_pose_4x4, antennas, body_yaw)
|
| 62 |
|
| 63 |
|
| 64 |
+
class BreathingMove(Move):
|
| 65 |
"""Breathing move with interpolation to neutral and then continuous breathing patterns."""
|
| 66 |
|
| 67 |
def __init__(
|