Alina Lozovskaya commited on
Commit
af50a23
·
1 Parent(s): 1ba829a

Add CONTROL_LOOP_FREQUENCY_HZ variable

Browse files
src/reachy_mini_conversation_demo/moves.py CHANGED
@@ -52,6 +52,9 @@ from reachy_mini.utils.interpolation import (
52
 
53
  logger = logging.getLogger(__name__)
54
 
 
 
 
55
  # Type definitions
56
  FullBodyPose = Tuple[
57
  np.ndarray, Tuple[float, float], float
@@ -279,7 +282,7 @@ class MovementManager:
279
 
280
  # Configuration
281
  self.idle_inactivity_delay = 0.3 # seconds
282
- self.target_frequency = 100.0 # Hz
283
  self.target_period = 1.0 / self.target_frequency
284
 
285
  self._stop_event = threading.Event()
 
52
 
53
  logger = logging.getLogger(__name__)
54
 
55
+ # Configuration constants
56
+ CONTROL_LOOP_FREQUENCY_HZ = 100.0 # Hz - Target frequency for the movement control loop
57
+
58
  # Type definitions
59
  FullBodyPose = Tuple[
60
  np.ndarray, Tuple[float, float], float
 
282
 
283
  # Configuration
284
  self.idle_inactivity_delay = 0.3 # seconds
285
+ self.target_frequency = CONTROL_LOOP_FREQUENCY_HZ
286
  self.target_period = 1.0 / self.target_frequency
287
 
288
  self._stop_event = threading.Event()