aether-robotics 3.4.2__tar.gz → 3.4.3__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 (91) hide show
  1. {aether_robotics-3.4.2/aether_robotics.egg-info → aether_robotics-3.4.3}/PKG-INFO +1 -1
  2. aether_robotics-3.4.3/VERSION +1 -0
  3. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/__init__.py +1 -1
  4. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/calibration.py +6 -2
  5. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/navigation_engine.py +10 -2
  6. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/tool_registry.py +41 -7
  7. {aether_robotics-3.4.2 → aether_robotics-3.4.3/aether_robotics.egg-info}/PKG-INFO +1 -1
  8. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/pyproject.toml +1 -1
  9. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_calibration.py +89 -0
  10. aether_robotics-3.4.2/VERSION +0 -1
  11. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/LICENSE +0 -0
  12. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/MANIFEST.in +0 -0
  13. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/README.md +0 -0
  14. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/__main__.py +0 -0
  15. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/actions/__init__.py +0 -0
  16. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/actions/abstract_actions.py +0 -0
  17. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/adapters/__init__.py +0 -0
  18. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/adapters/base_adapter.py +0 -0
  19. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/adapters/drone_adapter.py +0 -0
  20. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/adapters/rover_adapter.py +0 -0
  21. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/adapters/universal_adapter.py +0 -0
  22. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/__init__.py +0 -0
  23. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/adaptation_agent.py +0 -0
  24. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/camera_agent.py +0 -0
  25. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/correction_agent.py +0 -0
  26. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/execution_agent.py +0 -0
  27. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/fault_agent.py +0 -0
  28. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/memory_agent.py +0 -0
  29. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/movement_agent.py +0 -0
  30. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/navigation_agent.py +0 -0
  31. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/perception_agent.py +0 -0
  32. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/planner_agent.py +0 -0
  33. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/power_agent.py +0 -0
  34. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/task_manager.py +0 -0
  35. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/agents/thermal_agent.py +0 -0
  36. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/app.py +0 -0
  37. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/capabilities/__init__.py +0 -0
  38. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/capabilities/capability_loader.py +0 -0
  39. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/__init__.py +0 -0
  40. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/auto_installer.py +0 -0
  41. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/auto_updater.py +0 -0
  42. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/banner.py +0 -0
  43. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/executor.py +0 -0
  44. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/feedback.py +0 -0
  45. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/goal_parser.py +0 -0
  46. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/llm_planner.py +0 -0
  47. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/mapper.py +0 -0
  48. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/memory.py +0 -0
  49. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/message_bus.py +0 -0
  50. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/metrics.py +0 -0
  51. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/planner.py +0 -0
  52. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/task_scheduler.py +0 -0
  53. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/tool_builder.py +0 -0
  54. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/tool_discovery.py +0 -0
  55. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/core/visualizer.py +0 -0
  56. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/faults/__init__.py +0 -0
  57. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/faults/fault_detector.py +0 -0
  58. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/faults/fault_injector.py +0 -0
  59. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/simulation/__init__.py +0 -0
  60. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/simulation/environment.py +0 -0
  61. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/simulation/real_perception.py +0 -0
  62. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether/simulation/scenarios.py +0 -0
  63. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether_robotics.egg-info/SOURCES.txt +0 -0
  64. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether_robotics.egg-info/dependency_links.txt +0 -0
  65. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether_robotics.egg-info/entry_points.txt +0 -0
  66. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether_robotics.egg-info/requires.txt +0 -0
  67. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/aether_robotics.egg-info/top_level.txt +0 -0
  68. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/configs/calibrated_camera_only_20260331_121709.json +0 -0
  69. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/configs/calibrated_camera_only_20260331_122446.json +0 -0
  70. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/configs/calibrated_camera_only_20260401_094544.json +0 -0
  71. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/configs/calibrated_camera_only_20260401_094554.json +0 -0
  72. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/configs/drone_v1.json +0 -0
  73. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/configs/rover_v1.json +0 -0
  74. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/context/aether_definitions.txt +0 -0
  75. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/install.sh +0 -0
  76. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/main.py +0 -0
  77. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/requirements.txt +0 -0
  78. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/setup.cfg +0 -0
  79. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_auto_updater.py +0 -0
  80. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_calibration_unit.py +0 -0
  81. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_chaos.py +0 -0
  82. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_entrypoint.py +0 -0
  83. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_mapper.py +0 -0
  84. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_navigation_engine.py +0 -0
  85. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_persistent_memory.py +0 -0
  86. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_security.py +0 -0
  87. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_task_scheduler.py +0 -0
  88. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_tool_builder.py +0 -0
  89. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_tool_discovery.py +0 -0
  90. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/tests/test_yolo_integration.py +0 -0
  91. {aether_robotics-3.4.2 → aether_robotics-3.4.3}/weights/fault_agent.npy +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aether-robotics
3
- Version: 3.4.2
3
+ Version: 3.4.3
4
4
  Summary: Autonomous multi-agent robotics system with DRL-First Hybrid FDIR
5
5
  Author: Chahel Paatur
6
6
  License: MIT
@@ -0,0 +1 @@
1
+ 3.4.3
@@ -1,2 +1,2 @@
1
- __version__ = "3.4.2"
1
+ __version__ = "3.4.3"
2
2
  __author__ = "Chahel Paatur"
@@ -134,8 +134,12 @@ _CATEGORY_ACTION_PREFIX: Dict[int, str] = {
134
134
  # Stopwords stripped before slugifying descriptions (Bug 4)
135
135
  _SLUG_STOPWORDS = frozenset({
136
136
  "the", "then", "and", "a", "an", "that", "moved", "move", "moves",
137
- "is", "was", "it", "of", "to", "in", "at", "by", "for", "from",
138
- "with", "or", "but", "on", "its", "when", "while", "also", "did",
137
+ "is", "was", "it", "of", "to",
138
+ # "in" and "on" intentionally excluded: they appear in directional phrases
139
+ # like "in front", "on the left", "on top" and must survive slugification.
140
+ "at", "by", "for", "from",
141
+ "with", "or", "but",
142
+ "its", "when", "while", "also", "did",
139
143
  "went", "going", "started", "which",
140
144
  })
141
145
 
@@ -858,10 +858,17 @@ class _MotorNav:
858
858
  return _ok({"action": "stop"})
859
859
 
860
860
  def servo_set(self, pin: int, angle: float,
861
- servo_type: str = "positional") -> Dict:
861
+ servo_type: str = "positional",
862
+ duty_cycle: Optional[float] = None) -> Dict:
862
863
  if self._gpio is None:
863
864
  return _err("GPIO not available")
864
865
 
866
+ # If an explicit duty_cycle is supplied, use it directly and skip the
867
+ # angle→duty formula. This lets CorrectionAgent override the output
868
+ # without having to reverse-engineer the mapping.
869
+ if duty_cycle is not None:
870
+ return self.pwm_set(pin, 50, float(duty_cycle))
871
+
865
872
  if servo_type == "continuous":
866
873
  # Continuous-rotation servo: interpret angle as speed -100..+100
867
874
  # 0 → stop (90°), positive → forward, negative → reverse
@@ -1682,7 +1689,8 @@ class NavigationEngine:
1682
1689
  "servo_set": lambda: self._motors.servo_set(
1683
1690
  params.get("pin") or self._default_servo_pin(),
1684
1691
  params.get("angle", 90),
1685
- params.get("servo_type") or self._default_servo_type()),
1692
+ params.get("servo_type") or self._default_servo_type(),
1693
+ duty_cycle=params.get("duty_cycle")),
1686
1694
  "navigate_to_color": lambda: self._motors.navigate_to_color(
1687
1695
  params.get("color", params.get("class_name", "red")),
1688
1696
  lp, rp, sp, params.get("timeout", 30)),
@@ -1023,18 +1023,52 @@ def register_built_tools(registry: "ToolRegistry",
1023
1023
  def _make_physical_fn(pin, pwm_type):
1024
1024
  def _fn(**kwargs):
1025
1025
  if pwm_type == "servo_continuous":
1026
- # Accept direction/speed/angle any key the LLM uses
1027
- hint = kwargs.get(
1028
- "direction",
1029
- kwargs.get("speed",
1030
- kwargs.get("angle", "forward")))
1026
+ # Resolve direction from whichever kwarg the LLM uses.
1027
+ # Priority: direction/speed > angle > position > default.
1028
+ if "direction" in kwargs or "speed" in kwargs:
1029
+ hint = kwargs.get("direction") or kwargs.get("speed")
1030
+ elif "angle" in kwargs:
1031
+ hint = kwargs["angle"]
1032
+ elif "position" in kwargs:
1033
+ # "position" is a positional-servo idiom with no
1034
+ # meaning on a continuous servo. position=90 is the
1035
+ # center/neutral default — treat it as forward intent
1036
+ # because stopping requires an explicit stop/halt/neutral.
1037
+ # TODO: thread objective text into the closure so that
1038
+ # "stop" + position=90 maps to neutral (0.0) while
1039
+ # "move" + position=90 maps to forward (100.0).
1040
+ pos = kwargs["position"]
1041
+ hint = "forward" if float(pos) == 90.0 else pos
1042
+ else:
1043
+ # No direction hint at all — default to forward.
1044
+ # Stopping requires explicit stop/halt/neutral intent.
1045
+ hint = "forward"
1046
+
1031
1047
  speed = _infer_continuous_speed(hint)
1032
- return registry.execute(
1048
+ result = registry.execute(
1033
1049
  "servo_set",
1034
1050
  {"pin": pin, "angle": speed,
1035
1051
  "servo_type": "continuous"})
1052
+
1053
+ # Optional timed run: spin for N seconds then neutral.
1054
+ duration = kwargs.get("duration")
1055
+ if duration is not None and result.success:
1056
+ try:
1057
+ time.sleep(float(duration))
1058
+ except (ValueError, TypeError):
1059
+ pass
1060
+ registry.execute(
1061
+ "servo_set",
1062
+ {"pin": pin, "angle": 0.0,
1063
+ "servo_type": "continuous"})
1064
+
1065
+ return result
1066
+
1036
1067
  elif pwm_type == "servo_positional":
1037
- angle = float(kwargs.get("angle", 90))
1068
+ # Accept both "angle" and "position" — LLM uses either
1069
+ angle = float(
1070
+ kwargs.get("angle",
1071
+ kwargs.get("position", 90)))
1038
1072
  return registry.execute(
1039
1073
  "servo_set",
1040
1074
  {"pin": pin, "angle": angle,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aether-robotics
3
- Version: 3.4.2
3
+ Version: 3.4.3
4
4
  Summary: Autonomous multi-agent robotics system with DRL-First Hybrid FDIR
5
5
  Author: Chahel Paatur
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aether-robotics"
7
- version = "3.4.2"
7
+ version = "3.4.3"
8
8
  description = "Autonomous multi-agent robotics system with DRL-First Hybrid FDIR"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -615,3 +615,92 @@ class TestBugFixes342:
615
615
  # Whether the pulse succeeded or not, cleanup must have been attempted
616
616
  assert any("cleanup" in str(c) or "stop" in str(c)
617
617
  for c in cleanup_called)
618
+
619
+
620
+ class TestBugFixes343:
621
+ """3.4.3 regression tests: continuous-servo default-forward, duty_cycle
622
+ bypass, stopword preservation of directional words."""
623
+
624
+ # ── Helpers ──────────────────────────────────────────────────────────
625
+
626
+ def _make_registry_and_tool(self, pwm_type):
627
+ """Build a minimal registry with one physical_map tool and a mock
628
+ servo_set that records the params it was called with."""
629
+ from aether.core.tool_registry import (
630
+ ToolRegistry, register_built_tools, DynamicTool,
631
+ )
632
+
633
+ calls = []
634
+
635
+ registry = ToolRegistry()
636
+
637
+ def _fake_servo_set(**params):
638
+ calls.append(dict(params))
639
+ return {"success": True, "pin": params.get("pin"),
640
+ "angle": params.get("angle"),
641
+ "servo_type": params.get("servo_type")}
642
+
643
+ registry.register(DynamicTool("servo_set", _fake_servo_set,
644
+ "fake servo_set"))
645
+
646
+ physical_map = {
647
+ "servos": [{"bcm": 17, "description": "left wheel",
648
+ "action": "servo_test_tool",
649
+ "pwm_type": pwm_type}],
650
+ }
651
+
652
+ class _FakeNav:
653
+ level = 2
654
+ def available_actions(self): return ["servo_set"]
655
+ def execute(self, act, params): return {"success": True}
656
+
657
+ register_built_tools(registry, {}, _FakeNav(),
658
+ manifest={"physical_map": physical_map})
659
+
660
+ return registry, calls
661
+
662
+ # ── Bug D: continuous defaults to forward ─────────────────────────
663
+
664
+ def test_continuous_no_hint_defaults_to_forward(self):
665
+ """servo_continuous with no direction kwarg must spin forward (speed>0)."""
666
+ registry, calls = self._make_registry_and_tool("servo_continuous")
667
+ registry.execute("servo_test_tool", {}) # no hint at all
668
+ assert calls, "servo_set was never called"
669
+ # angle passed to servo_set should be > 0 (forward), not 0.0 (stop)
670
+ assert calls[0]["angle"] > 0, (
671
+ f"Expected forward speed > 0, got {calls[0]['angle']}")
672
+
673
+ def test_continuous_position_90_treated_as_forward(self):
674
+ """position=90 on a continuous servo must map to forward, not neutral."""
675
+ registry, calls = self._make_registry_and_tool("servo_continuous")
676
+ registry.execute("servo_test_tool", {"position": 90})
677
+ assert calls, "servo_set was never called"
678
+ assert calls[0]["angle"] > 0, (
679
+ f"Expected forward (>0), got angle={calls[0]['angle']}")
680
+
681
+ def test_continuous_explicit_stop_still_stops(self):
682
+ """An explicit 'stop' direction must still produce neutral (angle=0.0)."""
683
+ registry, calls = self._make_registry_and_tool("servo_continuous")
684
+ registry.execute("servo_test_tool", {"direction": "stop"})
685
+ assert calls, "servo_set was never called"
686
+ assert calls[0]["angle"] == 0.0, (
687
+ f"Expected stop (0.0), got angle={calls[0]['angle']}")
688
+
689
+ # ── Bug F: "in" and "on" survive slugification ────────────────────
690
+
691
+ def test_direction_words_in_and_on_not_stripped(self):
692
+ """'in front' and 'on the left' must keep 'in', 'on', 'front', 'left'."""
693
+ from aether.core.calibration import _derive_action_label
694
+ label = _derive_action_label(2, "in front on the left")
695
+ assert "in" in label, f"'in' was stripped from label: {label}"
696
+ assert "front" in label, f"'front' was stripped from label: {label}"
697
+ # "on" should also survive
698
+ assert "on" in label, f"'on' was stripped from label: {label}"
699
+
700
+ def test_clockwise_and_counter_preserved(self):
701
+ """'clockwise' and 'counter' must survive slugification."""
702
+ from aether.core.calibration import _derive_action_label
703
+ label = _derive_action_label(5, "left wheel clockwise")
704
+ assert "left" in label, f"'left' stripped: {label}"
705
+ assert "clockwise" in label, f"'clockwise' stripped: {label}"
706
+ assert "wheel" in label, f"'wheel' stripped: {label}"
@@ -1 +0,0 @@
1
- 3.4.2
File without changes
File without changes