reachy-nova 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. reachy_nova-0.1.0/LICENSE +21 -0
  2. reachy_nova-0.1.0/PKG-INFO +103 -0
  3. reachy_nova-0.1.0/README.md +78 -0
  4. reachy_nova-0.1.0/docker/nervous-system/heartbeat.py +45 -0
  5. reachy_nova-0.1.0/docker/nervous-system/nervous_system.py +473 -0
  6. reachy_nova-0.1.0/pyproject.toml +55 -0
  7. reachy_nova-0.1.0/reachy_nova/__init__.py +18 -0
  8. reachy_nova-0.1.0/reachy_nova/antenna_animator.py +218 -0
  9. reachy_nova-0.1.0/reachy_nova/api_routes.py +181 -0
  10. reachy_nova-0.1.0/reachy_nova/audio_pipeline.py +56 -0
  11. reachy_nova-0.1.0/reachy_nova/config.py +48 -0
  12. reachy_nova-0.1.0/reachy_nova/emotions.py +487 -0
  13. reachy_nova-0.1.0/reachy_nova/face_manager.py +361 -0
  14. reachy_nova-0.1.0/reachy_nova/face_recognition.py +239 -0
  15. reachy_nova-0.1.0/reachy_nova/forge_validator.py +215 -0
  16. reachy_nova-0.1.0/reachy_nova/gestures.py +277 -0
  17. reachy_nova-0.1.0/reachy_nova/harness/__init__.py +13 -0
  18. reachy_nova-0.1.0/reachy_nova/harness/__main__.py +6 -0
  19. reachy_nova-0.1.0/reachy_nova/harness/app.py +308 -0
  20. reachy_nova-0.1.0/reachy_nova/harness/bus.py +638 -0
  21. reachy_nova-0.1.0/reachy_nova/harness/cognition_feed.py +93 -0
  22. reachy_nova-0.1.0/reachy_nova/harness/gate.py +94 -0
  23. reachy_nova-0.1.0/reachy_nova/harness/hearing.py +535 -0
  24. reachy_nova-0.1.0/reachy_nova/harness/memory_leg.py +284 -0
  25. reachy_nova-0.1.0/reachy_nova/harness/rules_overlay.py +552 -0
  26. reachy_nova-0.1.0/reachy_nova/harness/speaking.py +444 -0
  27. reachy_nova-0.1.0/reachy_nova/harness/statedir.py +118 -0
  28. reachy_nova-0.1.0/reachy_nova/harness/supervisor.py +462 -0
  29. reachy_nova-0.1.0/reachy_nova/harness/tools.py +794 -0
  30. reachy_nova-0.1.0/reachy_nova/harness/unit.py +250 -0
  31. reachy_nova-0.1.0/reachy_nova/harness/vision_leg.py +451 -0
  32. reachy_nova-0.1.0/reachy_nova/main.py +950 -0
  33. reachy_nova-0.1.0/reachy_nova/movement_math.py +18 -0
  34. reachy_nova-0.1.0/reachy_nova/nova_browser.py +364 -0
  35. reachy_nova-0.1.0/reachy_nova/nova_context.py +35 -0
  36. reachy_nova-0.1.0/reachy_nova/nova_feedback.py +417 -0
  37. reachy_nova-0.1.0/reachy_nova/nova_memory.py +645 -0
  38. reachy_nova-0.1.0/reachy_nova/nova_mqtt.py +113 -0
  39. reachy_nova-0.1.0/reachy_nova/nova_omni.py +241 -0
  40. reachy_nova-0.1.0/reachy_nova/nova_slack.py +314 -0
  41. reachy_nova-0.1.0/reachy_nova/nova_sonic.py +812 -0
  42. reachy_nova-0.1.0/reachy_nova/nova_vision.py +185 -0
  43. reachy_nova-0.1.0/reachy_nova/safety.py +93 -0
  44. reachy_nova-0.1.0/reachy_nova/sensory_log.py +38 -0
  45. reachy_nova-0.1.0/reachy_nova/session_state.py +347 -0
  46. reachy_nova-0.1.0/reachy_nova/skill_executors.py +581 -0
  47. reachy_nova-0.1.0/reachy_nova/skill_forge.py +342 -0
  48. reachy_nova-0.1.0/reachy_nova/skills/browse/SKILL.md +24 -0
  49. reachy_nova-0.1.0/reachy_nova/skills/control/SKILL.md +28 -0
  50. reachy_nova-0.1.0/reachy_nova/skills/face/SKILL.md +62 -0
  51. reachy_nova-0.1.0/reachy_nova/skills/focus/SKILL.md +38 -0
  52. reachy_nova-0.1.0/reachy_nova/skills/forge/SKILL.md +32 -0
  53. reachy_nova-0.1.0/reachy_nova/skills/gesture/SKILL.md +45 -0
  54. reachy_nova-0.1.0/reachy_nova/skills/look/SKILL.md +23 -0
  55. reachy_nova-0.1.0/reachy_nova/skills/memory/SKILL.md +24 -0
  56. reachy_nova-0.1.0/reachy_nova/skills/mood/SKILL.md +65 -0
  57. reachy_nova-0.1.0/reachy_nova/skills/remember_negatively/SKILL.md +24 -0
  58. reachy_nova-0.1.0/reachy_nova/skills/remember_positively/SKILL.md +24 -0
  59. reachy_nova-0.1.0/reachy_nova/skills/slack/SKILL.md +29 -0
  60. reachy_nova-0.1.0/reachy_nova/skills/vocalize/SKILL.md +41 -0
  61. reachy_nova-0.1.0/reachy_nova/skills.py +563 -0
  62. reachy_nova-0.1.0/reachy_nova/sleep_mode.py +68 -0
  63. reachy_nova-0.1.0/reachy_nova/sleep_orchestrator.py +259 -0
  64. reachy_nova-0.1.0/reachy_nova/speech_events.py +310 -0
  65. reachy_nova-0.1.0/reachy_nova/state.py +85 -0
  66. reachy_nova-0.1.0/reachy_nova/static/index.html +214 -0
  67. reachy_nova-0.1.0/reachy_nova/static/main.js +254 -0
  68. reachy_nova-0.1.0/reachy_nova/static/style.css +724 -0
  69. reachy_nova-0.1.0/reachy_nova/temporal.py +117 -0
  70. reachy_nova-0.1.0/reachy_nova/tracking.py +772 -0
  71. reachy_nova-0.1.0/reachy_nova/vocalize.py +193 -0
  72. reachy_nova-0.1.0/reachy_nova/wake_word.py +130 -0
  73. reachy_nova-0.1.0/reachy_nova.egg-info/PKG-INFO +103 -0
  74. reachy_nova-0.1.0/reachy_nova.egg-info/SOURCES.txt +219 -0
  75. reachy_nova-0.1.0/reachy_nova.egg-info/dependency_links.txt +1 -0
  76. reachy_nova-0.1.0/reachy_nova.egg-info/entry_points.txt +6 -0
  77. reachy_nova-0.1.0/reachy_nova.egg-info/requires.txt +15 -0
  78. reachy_nova-0.1.0/reachy_nova.egg-info/top_level.txt +8 -0
  79. reachy_nova-0.1.0/setup.cfg +4 -0
  80. reachy_nova-0.1.0/tests/chaos/__init__.py +11 -0
  81. reachy_nova-0.1.0/tests/chaos/test_chaos_aws_loss.py +177 -0
  82. reachy_nova-0.1.0/tests/chaos/test_chaos_harness_kill.py +149 -0
  83. reachy_nova-0.1.0/tests/chaos/test_chaos_runtime_restart.py +288 -0
  84. reachy_nova-0.1.0/tests/chaos/test_chaos_wifi_flap.py +220 -0
  85. reachy_nova-0.1.0/tests/conftest.py +50 -0
  86. reachy_nova-0.1.0/tests/test_audio_direction.py +235 -0
  87. reachy_nova-0.1.0/tests/test_cognition_feed.py +234 -0
  88. reachy_nova-0.1.0/tests/test_forge_validator.py +191 -0
  89. reachy_nova-0.1.0/tests/test_hardening.py +159 -0
  90. reachy_nova-0.1.0/tests/test_harness_app.py +319 -0
  91. reachy_nova-0.1.0/tests/test_harness_boundary.py +215 -0
  92. reachy_nova-0.1.0/tests/test_harness_bus.py +731 -0
  93. reachy_nova-0.1.0/tests/test_harness_gate.py +115 -0
  94. reachy_nova-0.1.0/tests/test_harness_hearing.py +749 -0
  95. reachy_nova-0.1.0/tests/test_harness_install_script.py +211 -0
  96. reachy_nova-0.1.0/tests/test_harness_memory_leg.py +454 -0
  97. reachy_nova-0.1.0/tests/test_harness_rules_overlay.py +378 -0
  98. reachy_nova-0.1.0/tests/test_harness_speaking.py +499 -0
  99. reachy_nova-0.1.0/tests/test_harness_supervisor.py +367 -0
  100. reachy_nova-0.1.0/tests/test_harness_tools.py +769 -0
  101. reachy_nova-0.1.0/tests/test_harness_unit.py +182 -0
  102. reachy_nova-0.1.0/tests/test_harness_vision_leg.py +616 -0
  103. reachy_nova-0.1.0/tests/test_hot_registration.py +780 -0
  104. reachy_nova-0.1.0/tests/test_main_integration.py +167 -0
  105. reachy_nova-0.1.0/tests/test_nova_act_flag.py +242 -0
  106. reachy_nova-0.1.0/tests/test_nova_omni.py +335 -0
  107. reachy_nova-0.1.0/tests/test_packaging.py +94 -0
  108. reachy_nova-0.1.0/tests/test_placeholder.py +11 -0
  109. reachy_nova-0.1.0/tests/test_rules_coverage.py +183 -0
  110. reachy_nova-0.1.0/tests/test_sensory_log.py +143 -0
  111. reachy_nova-0.1.0/tests/test_skill_forge.py +675 -0
  112. reachy_nova-0.1.0/tests/test_sonic_resilience.py +463 -0
  113. reachy_nova-0.1.0/tests/test_speech_events.py +309 -0
  114. reachy_nova-0.1.0/tests/test_vocalize.py +249 -0
  115. reachy_nova-0.1.0/tools/__init__.py +0 -0
  116. reachy_nova-0.1.0/tools/sonic_demo.py +174 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ori Nachum
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.4
2
+ Name: reachy-nova
3
+ Version: 0.1.0
4
+ Summary: Reachy Nova - Voice, Vision & Browser AI for Reachy Mini
5
+ Keywords: reachy-mini-app
6
+ Requires-Python: >=3.12
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: reachy-mini
10
+ Requires-Dist: boto3>=1.35.0
11
+ Requires-Dist: aws_sdk_bedrock_runtime>=0.3.0
12
+ Requires-Dist: nova-act>=3.0.0
13
+ Requires-Dist: numpy
14
+ Requires-Dist: opencv-python
15
+ Requires-Dist: python-dotenv
16
+ Requires-Dist: pyaudio
17
+ Requires-Dist: ultralytics
18
+ Requires-Dist: pymongo>=4.6.0
19
+ Requires-Dist: neo4j>=5.0.0
20
+ Requires-Dist: slack-bolt>=1.18.0
21
+ Requires-Dist: paho-mqtt>=2.0.0
22
+ Requires-Dist: pyyaml>=6.0
23
+ Requires-Dist: nemo_toolkit[asr]
24
+ Dynamic: license-file
25
+
26
+ ---
27
+ title: Reachy Nova
28
+ emoji: "\U0001F916"
29
+ colorFrom: indigo
30
+ colorTo: cyan
31
+ sdk: static
32
+ pinned: false
33
+ short_description: Voice, Vision & Browser AI for Reachy Mini
34
+ tags:
35
+ - reachy_mini
36
+ - reachy_mini_python_app
37
+ ---
38
+
39
+ # Reachy Nova
40
+
41
+ AI-powered brain for Reachy Mini, integrating three Amazon Nova services:
42
+
43
+ - **Nova Sonic** - Real-time speech-to-speech conversation
44
+ - **Nova 2 Lite** - Camera-based vision and scene understanding
45
+ - **Nova Act** - Voice-controlled browser automation
46
+
47
+ This project enables Reachy Mini to see, hear, speak, and interact with the digital world.
48
+
49
+ <img width="1115" height="987" alt="image" src="https://github.com/user-attachments/assets/3b66f514-3384-47a8-8fd8-dc6f82faa38c" />
50
+
51
+
52
+ ## Documentation
53
+
54
+ - [**Architecture Overview**](docs/architecture.md): High-level system design.
55
+ - [**Component Documentation**](docs/components/): Detailed docs for each module.
56
+ - [Nova Sonic (Voice)](docs/components/nova_sonic.md)
57
+ - [Nova Vision (Sight)](docs/components/nova_vision.md)
58
+ - [Nova Browser (Action)](docs/components/nova_browser.md)
59
+ - [Tracking Manager](docs/components/tracking.md)
60
+ - [Skills System](docs/components/skills.md)
61
+ - [**Main Application**](docs/main.md): Core loop and state management.
62
+ - [**Setup Guide**](docs/setup.md): detailed installation instructions.
63
+
64
+ ## Quick Start
65
+
66
+ 1. **Install dependencies**:
67
+ ```bash
68
+ uv sync
69
+ ```
70
+
71
+ 2. **Configure environment**:
72
+ ```bash
73
+ cp .env.sample .env
74
+ # Edit .env with your AWS credentials
75
+ ```
76
+
77
+ 3. **Run**:
78
+ ```bash
79
+ uv run python -m reachy_nova.main
80
+ ```
81
+
82
+ ## Features
83
+
84
+ - **Natural Conversation**: Talk to the robot naturally - it responds with voice via Nova Sonic.
85
+ - **Visual Understanding**: The robot sees through its camera and describes what it sees.
86
+ - **Browser Automation**: Say "search for..." or "look up..." to trigger Google searches and more.
87
+ - **Smart Tracking**:
88
+ - Tracks faces automatically.
89
+ - Turns to look at speakers.
90
+ - Reacts instantly to snaps/claps.
91
+ - **Expressive Animations**: Mood-reactive antenna and head movements.
92
+ - **Web Dashboard**: Monitor status at `http://localhost:8042`.
93
+
94
+ ## Project Structure
95
+
96
+ - `reachy_nova/`: Main package.
97
+ - `main.py`: Entry point and orchestration.
98
+ - `nova_sonic.py`: Voice interface.
99
+ - `nova_vision.py`: Vision interface.
100
+ - `nova_browser.py`: Browser automation.
101
+ - `tracking.py`: Head tracking logic.
102
+ - `tools/`: Utility scripts (e.g., demos).
103
+ - `docs/`: Detailed documentation.
@@ -0,0 +1,78 @@
1
+ ---
2
+ title: Reachy Nova
3
+ emoji: "\U0001F916"
4
+ colorFrom: indigo
5
+ colorTo: cyan
6
+ sdk: static
7
+ pinned: false
8
+ short_description: Voice, Vision & Browser AI for Reachy Mini
9
+ tags:
10
+ - reachy_mini
11
+ - reachy_mini_python_app
12
+ ---
13
+
14
+ # Reachy Nova
15
+
16
+ AI-powered brain for Reachy Mini, integrating three Amazon Nova services:
17
+
18
+ - **Nova Sonic** - Real-time speech-to-speech conversation
19
+ - **Nova 2 Lite** - Camera-based vision and scene understanding
20
+ - **Nova Act** - Voice-controlled browser automation
21
+
22
+ This project enables Reachy Mini to see, hear, speak, and interact with the digital world.
23
+
24
+ <img width="1115" height="987" alt="image" src="https://github.com/user-attachments/assets/3b66f514-3384-47a8-8fd8-dc6f82faa38c" />
25
+
26
+
27
+ ## Documentation
28
+
29
+ - [**Architecture Overview**](docs/architecture.md): High-level system design.
30
+ - [**Component Documentation**](docs/components/): Detailed docs for each module.
31
+ - [Nova Sonic (Voice)](docs/components/nova_sonic.md)
32
+ - [Nova Vision (Sight)](docs/components/nova_vision.md)
33
+ - [Nova Browser (Action)](docs/components/nova_browser.md)
34
+ - [Tracking Manager](docs/components/tracking.md)
35
+ - [Skills System](docs/components/skills.md)
36
+ - [**Main Application**](docs/main.md): Core loop and state management.
37
+ - [**Setup Guide**](docs/setup.md): detailed installation instructions.
38
+
39
+ ## Quick Start
40
+
41
+ 1. **Install dependencies**:
42
+ ```bash
43
+ uv sync
44
+ ```
45
+
46
+ 2. **Configure environment**:
47
+ ```bash
48
+ cp .env.sample .env
49
+ # Edit .env with your AWS credentials
50
+ ```
51
+
52
+ 3. **Run**:
53
+ ```bash
54
+ uv run python -m reachy_nova.main
55
+ ```
56
+
57
+ ## Features
58
+
59
+ - **Natural Conversation**: Talk to the robot naturally - it responds with voice via Nova Sonic.
60
+ - **Visual Understanding**: The robot sees through its camera and describes what it sees.
61
+ - **Browser Automation**: Say "search for..." or "look up..." to trigger Google searches and more.
62
+ - **Smart Tracking**:
63
+ - Tracks faces automatically.
64
+ - Turns to look at speakers.
65
+ - Reacts instantly to snaps/claps.
66
+ - **Expressive Animations**: Mood-reactive antenna and head movements.
67
+ - **Web Dashboard**: Monitor status at `http://localhost:8042`.
68
+
69
+ ## Project Structure
70
+
71
+ - `reachy_nova/`: Main package.
72
+ - `main.py`: Entry point and orchestration.
73
+ - `nova_sonic.py`: Voice interface.
74
+ - `nova_vision.py`: Vision interface.
75
+ - `nova_browser.py`: Browser automation.
76
+ - `tracking.py`: Head tracking logic.
77
+ - `tools/`: Utility scripts (e.g., demos).
78
+ - `docs/`: Detailed documentation.
@@ -0,0 +1,45 @@
1
+ """Heartbeat — publishes periodic tick events to MQTT."""
2
+
3
+ import json
4
+ import logging
5
+ import threading
6
+ import time
7
+ import uuid
8
+ from datetime import datetime, timezone
9
+
10
+ logger = logging.getLogger(__name__)
11
+
12
+
13
+ class Heartbeat:
14
+ """Publishes periodic time events to MQTT."""
15
+
16
+ def __init__(self, mqtt_client, interval: int = 60):
17
+ self.client = mqtt_client
18
+ self.interval = interval
19
+ self._thread = None
20
+
21
+ def start(self, stop_event: threading.Event):
22
+ def _run():
23
+ tick_count = 0
24
+ while not stop_event.is_set():
25
+ stop_event.wait(timeout=self.interval)
26
+ if stop_event.is_set():
27
+ break
28
+ tick_count += 1
29
+ event = {
30
+ "event_id": str(uuid.uuid4()),
31
+ "type": "tick",
32
+ "source": "heartbeat",
33
+ "payload": {
34
+ "interval": self.interval,
35
+ "tick_count": tick_count,
36
+ "wall_clock": datetime.now(timezone.utc).isoformat(),
37
+ },
38
+ "timestamp": time.time(),
39
+ }
40
+ self.client.publish("nova/heartbeat", json.dumps(event))
41
+ logger.debug(f"Heartbeat tick #{tick_count}")
42
+
43
+ self._thread = threading.Thread(target=_run, daemon=True, name="heartbeat")
44
+ self._thread.start()
45
+ logger.info(f"Heartbeat started (interval={self.interval}s)")