apyrobo 3.0.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.
- apyrobo-3.0.0/LICENSE +189 -0
- apyrobo-3.0.0/PKG-INFO +452 -0
- apyrobo-3.0.0/README.md +408 -0
- apyrobo-3.0.0/apyrobo/__init__.py +152 -0
- apyrobo-3.0.0/apyrobo/__main__.py +6 -0
- apyrobo-3.0.0/apyrobo/__version__.py +3 -0
- apyrobo-3.0.0/apyrobo/agents/__init__.py +17 -0
- apyrobo-3.0.0/apyrobo/agents/multiturn.py +163 -0
- apyrobo-3.0.0/apyrobo/agents/tool_agent.py +151 -0
- apyrobo-3.0.0/apyrobo/api/__init__.py +14 -0
- apyrobo-3.0.0/apyrobo/api/app.py +166 -0
- apyrobo-3.0.0/apyrobo/audit.py +244 -0
- apyrobo-3.0.0/apyrobo/auth.py +297 -0
- apyrobo-3.0.0/apyrobo/cli.py +1857 -0
- apyrobo-3.0.0/apyrobo/config.py +408 -0
- apyrobo-3.0.0/apyrobo/core/__init__.py +13 -0
- apyrobo-3.0.0/apyrobo/core/adapters.py +841 -0
- apyrobo-3.0.0/apyrobo/core/health.py +241 -0
- apyrobo-3.0.0/apyrobo/core/robot.py +157 -0
- apyrobo-3.0.0/apyrobo/core/ros2_bridge.py +798 -0
- apyrobo-3.0.0/apyrobo/core/schemas.py +232 -0
- apyrobo-3.0.0/apyrobo/costmap.py +208 -0
- apyrobo-3.0.0/apyrobo/dashboard.py +362 -0
- apyrobo-3.0.0/apyrobo/fleet/__init__.py +18 -0
- apyrobo-3.0.0/apyrobo/fleet/manager.py +334 -0
- apyrobo-3.0.0/apyrobo/fleet/multisite.py +182 -0
- apyrobo-3.0.0/apyrobo/hardware/__init__.py +10 -0
- apyrobo-3.0.0/apyrobo/hardware/autodiscovery.py +138 -0
- apyrobo-3.0.0/apyrobo/hardware/schema.py +144 -0
- apyrobo-3.0.0/apyrobo/inference/__init__.py +32 -0
- apyrobo-3.0.0/apyrobo/inference/edge.py +176 -0
- apyrobo-3.0.0/apyrobo/inference/router.py +1010 -0
- apyrobo-3.0.0/apyrobo/inference/vlm.py +143 -0
- apyrobo-3.0.0/apyrobo/lts/__init__.py +6 -0
- apyrobo-3.0.0/apyrobo/lts/checker.py +79 -0
- apyrobo-3.0.0/apyrobo/lts/policy.py +93 -0
- apyrobo-3.0.0/apyrobo/memory/__init__.py +357 -0
- apyrobo-3.0.0/apyrobo/memory/episodic.py +320 -0
- apyrobo-3.0.0/apyrobo/memory/plan_cache.py +400 -0
- apyrobo-3.0.0/apyrobo/memory/semantic.py +287 -0
- apyrobo-3.0.0/apyrobo/moveit.py +459 -0
- apyrobo-3.0.0/apyrobo/nav2.py +404 -0
- apyrobo-3.0.0/apyrobo/observability.py +998 -0
- apyrobo-3.0.0/apyrobo/operations.py +961 -0
- apyrobo-3.0.0/apyrobo/orchestration/__init__.py +16 -0
- apyrobo-3.0.0/apyrobo/orchestration/adapter.py +263 -0
- apyrobo-3.0.0/apyrobo/persistence.py +767 -0
- apyrobo-3.0.0/apyrobo/plugins/__init__.py +7 -0
- apyrobo-3.0.0/apyrobo/plugins/base.py +89 -0
- apyrobo-3.0.0/apyrobo/plugins/loader.py +144 -0
- apyrobo-3.0.0/apyrobo/plugins/registry.py +137 -0
- apyrobo-3.0.0/apyrobo/profiles/__init__.py +4 -0
- apyrobo-3.0.0/apyrobo/profiles/schema.py +201 -0
- apyrobo-3.0.0/apyrobo/registry/__init__.py +6 -0
- apyrobo-3.0.0/apyrobo/registry/client.py +118 -0
- apyrobo-3.0.0/apyrobo/registry/models.py +52 -0
- apyrobo-3.0.0/apyrobo/registry/server.py +186 -0
- apyrobo-3.0.0/apyrobo/safety/__init__.py +21 -0
- apyrobo-3.0.0/apyrobo/safety/confidence.py +388 -0
- apyrobo-3.0.0/apyrobo/safety/enforcer.py +1180 -0
- apyrobo-3.0.0/apyrobo/safety/verification.py +185 -0
- apyrobo-3.0.0/apyrobo/sensors/__init__.py +11 -0
- apyrobo-3.0.0/apyrobo/sensors/pipeline.py +644 -0
- apyrobo-3.0.0/apyrobo/sensors/ros2_subscribers.py +386 -0
- apyrobo-3.0.0/apyrobo/sim/__init__.py +35 -0
- apyrobo-3.0.0/apyrobo/sim/adapters.py +484 -0
- apyrobo-3.0.0/apyrobo/sim/mujoco.py +153 -0
- apyrobo-3.0.0/apyrobo/sim/twin.py +164 -0
- apyrobo-3.0.0/apyrobo/skills/__init__.py +29 -0
- apyrobo-3.0.0/apyrobo/skills/agent.py +1339 -0
- apyrobo-3.0.0/apyrobo/skills/builtins.py +79 -0
- apyrobo-3.0.0/apyrobo/skills/builtins_extended.py +75 -0
- apyrobo-3.0.0/apyrobo/skills/checkpoint.py +297 -0
- apyrobo-3.0.0/apyrobo/skills/compose.py +475 -0
- apyrobo-3.0.0/apyrobo/skills/corrections.py +217 -0
- apyrobo-3.0.0/apyrobo/skills/decorators.py +152 -0
- apyrobo-3.0.0/apyrobo/skills/demonstrations.py +423 -0
- apyrobo-3.0.0/apyrobo/skills/discovery.py +187 -0
- apyrobo-3.0.0/apyrobo/skills/executor.py +740 -0
- apyrobo-3.0.0/apyrobo/skills/feedback.py +160 -0
- apyrobo-3.0.0/apyrobo/skills/handlers.py +225 -0
- apyrobo-3.0.0/apyrobo/skills/library.py +204 -0
- apyrobo-3.0.0/apyrobo/skills/longterm.py +492 -0
- apyrobo-3.0.0/apyrobo/skills/package.py +435 -0
- apyrobo-3.0.0/apyrobo/skills/plan_validator.py +354 -0
- apyrobo-3.0.0/apyrobo/skills/registry.py +355 -0
- apyrobo-3.0.0/apyrobo/skills/replanner.py +75 -0
- apyrobo-3.0.0/apyrobo/skills/retry.py +286 -0
- apyrobo-3.0.0/apyrobo/skills/simtoreal.py +233 -0
- apyrobo-3.0.0/apyrobo/skills/skill.py +237 -0
- apyrobo-3.0.0/apyrobo/skills/verifier.py +208 -0
- apyrobo-3.0.0/apyrobo/swarm/__init__.py +11 -0
- apyrobo-3.0.0/apyrobo/swarm/bus.py +182 -0
- apyrobo-3.0.0/apyrobo/swarm/coordinator.py +314 -0
- apyrobo-3.0.0/apyrobo/swarm/ros2_bus.py +198 -0
- apyrobo-3.0.0/apyrobo/swarm/safety.py +276 -0
- apyrobo-3.0.0/apyrobo/task_queue.py +325 -0
- apyrobo-3.0.0/apyrobo/tests/test_api.py +110 -0
- apyrobo-3.0.0/apyrobo/tests/test_audit.py +103 -0
- apyrobo-3.0.0/apyrobo/tests/test_checkpoint.py +270 -0
- apyrobo-3.0.0/apyrobo/tests/test_discovery.py +96 -0
- apyrobo-3.0.0/apyrobo/tests/test_feedback.py +102 -0
- apyrobo-3.0.0/apyrobo/tests/test_fleet.py +108 -0
- apyrobo-3.0.0/apyrobo/tests/test_lts.py +113 -0
- apyrobo-3.0.0/apyrobo/tests/test_multiturn.py +106 -0
- apyrobo-3.0.0/apyrobo/tests/test_operations/test_operations_features.py +366 -0
- apyrobo-3.0.0/apyrobo/tests/test_plan_validator.py +213 -0
- apyrobo-3.0.0/apyrobo/tests/test_plugins.py +144 -0
- apyrobo-3.0.0/apyrobo/tests/test_rbac.py +87 -0
- apyrobo-3.0.0/apyrobo/tests/test_registry.py +105 -0
- apyrobo-3.0.0/apyrobo/tests/test_retry.py +276 -0
- apyrobo-3.0.0/apyrobo/tests/test_sensors/test_pipeline_enhancements.py +82 -0
- apyrobo-3.0.0/apyrobo/tests/test_sim/test_sim_adapters.py +50 -0
- apyrobo-3.0.0/apyrobo/tests/test_tool_agent.py +81 -0
- apyrobo-3.0.0/apyrobo/tests/test_versioning.py +150 -0
- apyrobo-3.0.0/apyrobo/tests/test_vlm.py +74 -0
- apyrobo-3.0.0/apyrobo/versioning/__init__.py +13 -0
- apyrobo-3.0.0/apyrobo/versioning/changelog.py +132 -0
- apyrobo-3.0.0/apyrobo/versioning/compatibility.py +85 -0
- apyrobo-3.0.0/apyrobo/versioning/migration.py +106 -0
- apyrobo-3.0.0/apyrobo/voice.py +663 -0
- apyrobo-3.0.0/apyrobo.egg-info/PKG-INFO +452 -0
- apyrobo-3.0.0/apyrobo.egg-info/SOURCES.txt +194 -0
- apyrobo-3.0.0/apyrobo.egg-info/dependency_links.txt +1 -0
- apyrobo-3.0.0/apyrobo.egg-info/entry_points.txt +2 -0
- apyrobo-3.0.0/apyrobo.egg-info/requires.txt +21 -0
- apyrobo-3.0.0/apyrobo.egg-info/top_level.txt +1 -0
- apyrobo-3.0.0/pyproject.toml +85 -0
- apyrobo-3.0.0/setup.cfg +4 -0
- apyrobo-3.0.0/tests/test_auth_coverage.py +384 -0
- apyrobo-3.0.0/tests/test_cli_connect.py +325 -0
- apyrobo-3.0.0/tests/test_cli_coverage.py +990 -0
- apyrobo-3.0.0/tests/test_cli_diagnose.py +221 -0
- apyrobo-3.0.0/tests/test_cli_doctor.py +320 -0
- apyrobo-3.0.0/tests/test_cli_test_skill.py +198 -0
- apyrobo-3.0.0/tests/test_compose_repl.py +428 -0
- apyrobo-3.0.0/tests/test_confidence_coverage.py +623 -0
- apyrobo-3.0.0/tests/test_config_coverage.py +491 -0
- apyrobo-3.0.0/tests/test_config_toml.py +219 -0
- apyrobo-3.0.0/tests/test_connection_resilience.py +234 -0
- apyrobo-3.0.0/tests/test_core_adapters_coverage.py +668 -0
- apyrobo-3.0.0/tests/test_corrections.py +337 -0
- apyrobo-3.0.0/tests/test_costmap.py +264 -0
- apyrobo-3.0.0/tests/test_dashboard_coverage.py +679 -0
- apyrobo-3.0.0/tests/test_demonstrations.py +418 -0
- apyrobo-3.0.0/tests/test_episodic_store.py +303 -0
- apyrobo-3.0.0/tests/test_fleet_handoff.py +270 -0
- apyrobo-3.0.0/tests/test_fleet_multisite.py +188 -0
- apyrobo-3.0.0/tests/test_gazebo_improvements.py +277 -0
- apyrobo-3.0.0/tests/test_handler_registry.py +251 -0
- apyrobo-3.0.0/tests/test_hardware.py +387 -0
- apyrobo-3.0.0/tests/test_health_monitor.py +404 -0
- apyrobo-3.0.0/tests/test_inference_coverage.py +371 -0
- apyrobo-3.0.0/tests/test_inference_edge.py +146 -0
- apyrobo-3.0.0/tests/test_library_coverage.py +429 -0
- apyrobo-3.0.0/tests/test_long_horizon.py +407 -0
- apyrobo-3.0.0/tests/test_memory.py +332 -0
- apyrobo-3.0.0/tests/test_moveit_adapter.py +310 -0
- apyrobo-3.0.0/tests/test_moveit_new.py +126 -0
- apyrobo-3.0.0/tests/test_nav2_adapter.py +237 -0
- apyrobo-3.0.0/tests/test_nav2_new.py +95 -0
- apyrobo-3.0.0/tests/test_observability_coverage.py +1004 -0
- apyrobo-3.0.0/tests/test_operations_coverage.py +1673 -0
- apyrobo-3.0.0/tests/test_orchestration.py +252 -0
- apyrobo-3.0.0/tests/test_package_extra.py +558 -0
- apyrobo-3.0.0/tests/test_persistence_extra.py +649 -0
- apyrobo-3.0.0/tests/test_persistence_sqlite.py +172 -0
- apyrobo-3.0.0/tests/test_plan_cache.py +313 -0
- apyrobo-3.0.0/tests/test_profiles.py +216 -0
- apyrobo-3.0.0/tests/test_registry_cli.py +326 -0
- apyrobo-3.0.0/tests/test_registry_coverage.py +500 -0
- apyrobo-3.0.0/tests/test_replanner.py +425 -0
- apyrobo-3.0.0/tests/test_ros2_bridge_mocked.py +1017 -0
- apyrobo-3.0.0/tests/test_ros2_subscribers_mocked.py +493 -0
- apyrobo-3.0.0/tests/test_ros2_swarm_bus_mocked.py +626 -0
- apyrobo-3.0.0/tests/test_rule_agent_patterns.py +119 -0
- apyrobo-3.0.0/tests/test_safety_enforcer_extra.py +781 -0
- apyrobo-3.0.0/tests/test_safety_verification.py +119 -0
- apyrobo-3.0.0/tests/test_schemas_coverage.py +486 -0
- apyrobo-3.0.0/tests/test_semantic_store.py +288 -0
- apyrobo-3.0.0/tests/test_sensors_coverage.py +694 -0
- apyrobo-3.0.0/tests/test_sim_coverage.py +464 -0
- apyrobo-3.0.0/tests/test_sim_mujoco.py +97 -0
- apyrobo-3.0.0/tests/test_sim_twin.py +181 -0
- apyrobo-3.0.0/tests/test_simtoreal.py +264 -0
- apyrobo-3.0.0/tests/test_skill_decorator.py +293 -0
- apyrobo-3.0.0/tests/test_skills_executor_extra.py +890 -0
- apyrobo-3.0.0/tests/test_swarm_coordinator_coverage.py +690 -0
- apyrobo-3.0.0/tests/test_swarm_coverage.py +429 -0
- apyrobo-3.0.0/tests/test_task_queue_coverage.py +402 -0
- apyrobo-3.0.0/tests/test_task_verifier.py +375 -0
- apyrobo-3.0.0/tests/test_voice.py +303 -0
- apyrobo-3.0.0/tests/test_voice_adapter.py +158 -0
- apyrobo-3.0.0/tests/test_voice_agent.py +169 -0
- apyrobo-3.0.0/tests/test_voice_coverage.py +482 -0
- apyrobo-3.0.0/tests/test_voice_extra_coverage.py +789 -0
apyrobo-3.0.0/LICENSE
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding any notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
Copyright 2025 APYROBO Contributors
|
|
178
|
+
|
|
179
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
you may not use this file except in compliance with the License.
|
|
181
|
+
You may obtain a copy of the License at
|
|
182
|
+
|
|
183
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
|
|
185
|
+
Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
See the License for the specific language governing permissions and
|
|
189
|
+
limitations under the License.
|
apyrobo-3.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: apyrobo
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Open-source AI orchestration layer for robotics, built on ROS 2
|
|
5
|
+
Author: APYROBO Contributors
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/apyrobo/Apyrobo
|
|
8
|
+
Project-URL: Documentation, https://github.com/apyrobo/Apyrobo/tree/main/docs
|
|
9
|
+
Project-URL: Repository, https://github.com/apyrobo/Apyrobo
|
|
10
|
+
Project-URL: Issues, https://github.com/apyrobo/Apyrobo/issues
|
|
11
|
+
Keywords: robotics,ros2,ai,llm,swarm,orchestration
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: pydantic>=2.0
|
|
26
|
+
Requires-Dist: litellm>=1.0
|
|
27
|
+
Requires-Dist: networkx>=3.0
|
|
28
|
+
Requires-Dist: pyyaml>=6.0
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest-timeout>=2.3; extra == "dev"
|
|
34
|
+
Requires-Dist: hypothesis>=6.0; extra == "dev"
|
|
35
|
+
Requires-Dist: ruff>=0.4; extra == "dev"
|
|
36
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
37
|
+
Requires-Dist: pre-commit>=3.7; extra == "dev"
|
|
38
|
+
Provides-Extra: registry
|
|
39
|
+
Requires-Dist: fastapi>=0.110; extra == "registry"
|
|
40
|
+
Requires-Dist: uvicorn[standard]>=0.27; extra == "registry"
|
|
41
|
+
Requires-Dist: sqlalchemy>=2.0; extra == "registry"
|
|
42
|
+
Provides-Extra: ros
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
<strong>APYROBO</strong><br>
|
|
47
|
+
<em>The open-source AI orchestration layer for robotics</em>
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
<p align="center">
|
|
51
|
+
<a href="https://pypi.org/project/apyrobo/"><img src="https://badge.fury.io/py/apyrobo.svg" alt="PyPI version"></a>
|
|
52
|
+
<a href="https://github.com/apyrobo/Apyrobo/actions/workflows/ci.yml"><img src="https://github.com/apyrobo/Apyrobo/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
53
|
+
<a href="https://github.com/apyrobo/Apyrobo/actions/workflows/integration.yml"><img src="https://github.com/apyrobo/Apyrobo/actions/workflows/integration.yml/badge.svg" alt="Integration Tests"></a>
|
|
54
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0"></a>
|
|
55
|
+
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.10%2B-blue.svg" alt="Python"></a>
|
|
56
|
+
<a href="https://docs.ros.org/en/humble/"><img src="https://img.shields.io/badge/ROS%202-Humble-green.svg" alt="ROS 2"></a>
|
|
57
|
+
<a href="https://discord.gg/n3uX7VmrUr"><img src="https://img.shields.io/discord/1234567890?label=Discord&logo=discord&color=5865F2" alt="Discord"></a>
|
|
58
|
+
</p>
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
**APYROBO gives AI agents the runtime to act in the physical world.** It sits on top of [ROS 2](https://docs.ros.org/en/humble/) and provides capability discovery, skill orchestration, swarm coordination, and safety enforcement. One layer, any hardware, any LLM.
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
"deliver the package to dock 3"
|
|
66
|
+
│
|
|
67
|
+
▼
|
|
68
|
+
┌─────────┐ ┌───────────┐ ┌──────────┐ ┌─────────┐
|
|
69
|
+
│ AI Agent │ → │ Skill │ → │ Safety │ → │ ROS 2 / │
|
|
70
|
+
│ (any LLM)│ │ Graph │ │ Enforcer │ │ Hardware │
|
|
71
|
+
└─────────┘ └───────────┘ └──────────┘ └─────────┘
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
<p align="center">
|
|
75
|
+
<img src="docs/demo.gif" alt="APYROBO demo — pip install, discover robot, deliver task" width="640">
|
|
76
|
+
</p>
|
|
77
|
+
|
|
78
|
+
### 30-Second Demo
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
from apyrobo import Robot, Agent
|
|
82
|
+
|
|
83
|
+
robot = Robot.discover("mock://turtlebot4") # No ROS 2 needed
|
|
84
|
+
agent = Agent(provider="rule") # No API key needed
|
|
85
|
+
result = agent.execute("go to 3, 4 and pick up the object", robot)
|
|
86
|
+
print(result.status) # → completed
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Why APYROBO
|
|
92
|
+
|
|
93
|
+
| Challenge | How APYROBO Solves It |
|
|
94
|
+
|-----------|----------------------|
|
|
95
|
+
| LLMs can't control robots safely | Safety enforcer wraps every command with hard constraints |
|
|
96
|
+
| Robot code is tied to hardware | Capability adapters abstract any robot behind a semantic API |
|
|
97
|
+
| Multi-robot coordination is ad-hoc | Swarm bus + coordinator handles task splitting natively |
|
|
98
|
+
| Skill composition is manual | Skill graph engine chains skills with pre/postconditions |
|
|
99
|
+
| No standard AI-robotics interface | Model-agnostic agent layer works with any LLM provider |
|
|
100
|
+
| Picking the right LLM for the hardware is hard | Compute profiles auto-select models for any platform |
|
|
101
|
+
| Wiring a front-end (Slack, web, ROS) is boilerplate | `apyrobo serve` exposes a standard orchestration interface |
|
|
102
|
+
|
|
103
|
+
## Features
|
|
104
|
+
|
|
105
|
+
- **Capability Abstraction** — Semantic API that knows *what* robots can do, not just what topics they publish
|
|
106
|
+
- **AI Agent Orchestration** — Natural language to verified skill execution with any LLM (OpenAI, Anthropic, local)
|
|
107
|
+
- **Skill Graph Engine** — DAG-based task plans with precondition/postcondition verification and retry logic
|
|
108
|
+
- **Safety Enforcement** — Speed clamping, collision zones, watchdog, battery checks, escalation — agents can't bypass
|
|
109
|
+
- **Swarm Coordination** — Multi-robot task splitting, proximity safety, deadlock detection
|
|
110
|
+
- **Observability** — Structured JSON logging, Prometheus metrics, OpenTelemetry traces, execution replay
|
|
111
|
+
- **Multiple Persistence Backends** — JSON file, SQLite, Redis for state that survives crashes
|
|
112
|
+
- **Hardware Auto-Discovery** — `apyrobo connect ros2://ur10` detects robot type and loads the right skill package automatically
|
|
113
|
+
- **Compute Profiles** — `--profile jetson-orin` / `--profile workstation-gpu` / `--profile cpu-only` configure models for any hardware
|
|
114
|
+
- **Orchestration Server** — `apyrobo serve` exposes a JSON stdio interface; plug in Slack, Discord, web UI, or ROS service
|
|
115
|
+
- **Skill Package Ecosystem** — pip-installable skill packages for UR arms, Spot, Franka Panda, PX4 drones, and AGVs
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Quick Start (5 minutes, no ROS 2)
|
|
120
|
+
|
|
121
|
+
### Install
|
|
122
|
+
|
|
123
|
+
> **Requirements:** Python 3.10+, pip 21.3+ (run `pip install --upgrade pip` first if on macOS system Python)
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
pip install apyrobo
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Or from source:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
git clone https://github.com/apyrobo/apyrobo.git
|
|
133
|
+
cd apyrobo
|
|
134
|
+
pip install -e ".[dev]"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Discover and Command
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
from apyrobo import Robot
|
|
141
|
+
|
|
142
|
+
robot = Robot.discover("mock://turtlebot4")
|
|
143
|
+
caps = robot.capabilities()
|
|
144
|
+
print(f"Capabilities: {[c.name for c in caps.capabilities]}")
|
|
145
|
+
# → ['navigate_to', 'rotate', 'pick_object', 'place_object']
|
|
146
|
+
|
|
147
|
+
robot.move(x=2.0, y=3.0, speed=0.5)
|
|
148
|
+
print(robot.get_position()) # → (2.0, 3.0)
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Execute a Skill Graph
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
from apyrobo import Robot, SkillExecutor, SkillGraph, BUILTIN_SKILLS
|
|
155
|
+
|
|
156
|
+
robot = Robot.discover("mock://turtlebot4")
|
|
157
|
+
graph = SkillGraph()
|
|
158
|
+
graph.add_skill(BUILTIN_SKILLS["navigate_to"], parameters={"x": 3.0, "y": 4.0})
|
|
159
|
+
graph.add_skill(BUILTIN_SKILLS["pick_object"], depends_on=["navigate_to"])
|
|
160
|
+
|
|
161
|
+
executor = SkillExecutor(robot)
|
|
162
|
+
result = executor.execute_graph(graph)
|
|
163
|
+
print(f"{result.status.value}: {result.steps_completed}/{result.steps_total} steps")
|
|
164
|
+
# → completed: 2/2 steps
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Use an AI Agent
|
|
168
|
+
|
|
169
|
+
```python
|
|
170
|
+
from apyrobo import Robot, Agent
|
|
171
|
+
|
|
172
|
+
robot = Robot.discover("mock://turtlebot4")
|
|
173
|
+
|
|
174
|
+
# No API key needed
|
|
175
|
+
agent = Agent(provider="rule")
|
|
176
|
+
|
|
177
|
+
# LLM-backed — any LiteLLM model string
|
|
178
|
+
agent = Agent(provider="llm", model="claude-sonnet-4-20250514")
|
|
179
|
+
|
|
180
|
+
result = agent.execute("go to 5, 3 then pick up the object", robot)
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
| Provider | Description | Requires |
|
|
184
|
+
|----------|-------------|---------|
|
|
185
|
+
| `rule` | Built-in rule-based planner | Nothing |
|
|
186
|
+
| `llm` | LiteLLM-backed (any model) | `pip install litellm` + API key |
|
|
187
|
+
| `routed` | Edge/cloud routing via InferenceRouter | `pip install litellm` |
|
|
188
|
+
| `auto` | Picks `llm` if litellm is available, else `rule` | — |
|
|
189
|
+
|
|
190
|
+
### Compute Profiles
|
|
191
|
+
|
|
192
|
+
Select models automatically for your hardware — no LiteLLM string knowledge required:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
apyrobo exec "patrol zone A" --robot mock://turtlebot4 --profile jetson-orin
|
|
196
|
+
apyrobo exec "pick up the box" --robot mock://ur10 --profile workstation-gpu
|
|
197
|
+
apyrobo exec "navigate to dock" --robot mock://mir100 --profile cpu-only
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
```python
|
|
201
|
+
from apyrobo import Robot, Agent
|
|
202
|
+
from apyrobo.compute_profiles import get_profile
|
|
203
|
+
|
|
204
|
+
profile = get_profile("jetson-orin")
|
|
205
|
+
agent = Agent(provider="llm", model=profile.default_llm)
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
| Profile | Target Hardware | Default LLM |
|
|
209
|
+
|---------|----------------|-------------|
|
|
210
|
+
| `jetson-orin` | NVIDIA Jetson Orin | `ollama/llama3.2` |
|
|
211
|
+
| `workstation-gpu` | RTX 3080+ / A100 | `ollama/llama3.1:70b` |
|
|
212
|
+
| `cloud` | Cloud VM / CI | `claude-sonnet-4-20250514` |
|
|
213
|
+
| `cpu-only` | Laptop / Raspberry Pi | `ollama/qwen2.5:3b` |
|
|
214
|
+
|
|
215
|
+
### Orchestration Server
|
|
216
|
+
|
|
217
|
+
Expose APYROBO to any front-end over JSON stdio — wire it to Slack, a web UI, a ROS service, or any other system:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
# stdin → JSON task messages, stdout → JSON responses
|
|
221
|
+
apyrobo serve --robot mock://turtlebot4 --provider rule
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
```python
|
|
225
|
+
from apyrobo.orchestration import OrchestrationServer, StdioOrchestrationAdapter
|
|
226
|
+
from apyrobo import Agent
|
|
227
|
+
|
|
228
|
+
adapter = StdioOrchestrationAdapter()
|
|
229
|
+
server = OrchestrationServer(adapter, Agent(provider="rule"))
|
|
230
|
+
server.run()
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Each line in is a JSON task: `{"task": "navigate to dock", "robot_uri": "mock://turtlebot4"}`.
|
|
234
|
+
Each line out is a JSON response: `{"task": "...", "metadata": {"status": "planned"}, "source": "orchestration_server"}`.
|
|
235
|
+
|
|
236
|
+
### Custom Skills
|
|
237
|
+
|
|
238
|
+
```python
|
|
239
|
+
from apyrobo import Skill, SkillLibrary, Robot, Agent
|
|
240
|
+
from apyrobo.core.schemas import CapabilityType
|
|
241
|
+
|
|
242
|
+
skill = Skill(
|
|
243
|
+
skill_id="inspect_shelf",
|
|
244
|
+
name="inspect_shelf",
|
|
245
|
+
description="Visually inspect a shelf",
|
|
246
|
+
required_capability=CapabilityType.NAVIGATE,
|
|
247
|
+
)
|
|
248
|
+
lib = SkillLibrary()
|
|
249
|
+
lib.load_json(skill.to_json())
|
|
250
|
+
|
|
251
|
+
robot = Robot.discover("mock://turtlebot4")
|
|
252
|
+
agent = Agent(provider="rule", library=lib)
|
|
253
|
+
result = agent.execute("inspect shelf A3", robot)
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
See the [full quickstart guide](docs/quickstart_5min.md) for safety enforcement, swarm coordination, and LLM setup.
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Skill Packages
|
|
261
|
+
|
|
262
|
+
APYROBO ships with built-in skills and a growing ecosystem of pip-installable hardware-specific packages:
|
|
263
|
+
|
|
264
|
+
| Package | Hardware | Skills |
|
|
265
|
+
|---------|----------|--------|
|
|
266
|
+
| `apyrobo-skills-ur` | Universal Robots UR3/UR5/UR10/UR16 | `move_joints`, `move_linear`, `pick`, `place`, `move_home`, `set_tcp`, `get_pose` |
|
|
267
|
+
| `apyrobo-skills-spot` | Boston Dynamics Spot | `walk_to`, `sit`, `stand`, `stair_climb`, `dock`, `capture_image`, `arm_pick` |
|
|
268
|
+
| `apyrobo-skills-franka` | Franka Panda | `move_to_pose`, `grasp`, `release`, `move_home`, `cartesian_sweep`, `impedance_control` |
|
|
269
|
+
| `apyrobo-skills-drone-px4` | PX4-based drones | `takeoff`, `land`, `fly_to`, `orbit`, `return_home`, `capture_image` |
|
|
270
|
+
| `apyrobo-skills-agv` | MiR / Omron LD / Clearpath Husky | `navigate_to`, `follow_route`, `dock_to_station`, `load_cargo`, `unload_cargo` |
|
|
271
|
+
| `apyrobo-skills-turtlebot4` | TurtleBot 4 | `patrol_area`, `dock`, `undock`, `follow_person`, `inspect_room` |
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
pip install apyrobo-skills-ur
|
|
275
|
+
pip install apyrobo-skills-spot
|
|
276
|
+
pip install apyrobo-skills-drone-px4
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Skills register automatically via entry-points — no configuration required. See the [Skill Authoring Guide](docs/skill_authoring.md) to publish your own.
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Architecture
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
┌─────────────────────────────────────────┐
|
|
287
|
+
│ Foundation Models / LLMs │ Any provider (OpenAI, Anthropic, local)
|
|
288
|
+
├─────────────────────────────────────────┤
|
|
289
|
+
│ ┌─────────────────────────────────┐ │
|
|
290
|
+
│ │ APYROBO Orchestration Layer │ │ This project
|
|
291
|
+
│ │ │ │
|
|
292
|
+
│ │ Capability Skill Swarm │ │
|
|
293
|
+
│ │ Adapters Graph Coord │ │
|
|
294
|
+
│ │ │ │
|
|
295
|
+
│ │ Sensor Safety Agent │ │
|
|
296
|
+
│ │ Pipelines Enforcer Runtime │ │
|
|
297
|
+
│ │ │ │
|
|
298
|
+
│ │ Inference Observ- State │ │
|
|
299
|
+
│ │ Router ability Store │ │
|
|
300
|
+
│ │ │ │
|
|
301
|
+
│ │ Orchestration Compute │ │
|
|
302
|
+
│ │ Server Profiles │ │
|
|
303
|
+
│ └─────────────────────────────────┘ │
|
|
304
|
+
├─────────────────────────────────────────┤
|
|
305
|
+
│ ROS 2 (DDS, Nav2, MoveIt, TF2) │ Industry standard, not replaced
|
|
306
|
+
├─────────────────────────────────────────┤
|
|
307
|
+
│ Simulators (Gazebo, Isaac Sim) │
|
|
308
|
+
├─────────────────────────────────────────┤
|
|
309
|
+
│ Physical Hardware │
|
|
310
|
+
└─────────────────────────────────────────┘
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## Project Structure
|
|
316
|
+
|
|
317
|
+
```
|
|
318
|
+
apyrobo/
|
|
319
|
+
├── apyrobo/ # Main package
|
|
320
|
+
│ ├── core/ # Capability abstraction, robot discovery, adapters
|
|
321
|
+
│ ├── skills/ # Skill graph engine, executor, AI agent integration
|
|
322
|
+
│ ├── safety/ # Safety policy enforcement, watchdog, escalation
|
|
323
|
+
│ ├── swarm/ # Multi-robot bus, coordinator, proximity/deadlock
|
|
324
|
+
│ ├── sensors/ # Sensor pipelines, fusion, world state
|
|
325
|
+
│ ├── inference/ # Multi-tier LLM routing, circuit breakers
|
|
326
|
+
│ ├── orchestration/ # OrchestrationAdapter ABC, OrchestrationServer, stdio
|
|
327
|
+
│ ├── compute_profiles/ # Hardware profile → model mapping
|
|
328
|
+
│ ├── hardware/ # Per-robot spec files (reach, DoF, sensors, limits)
|
|
329
|
+
│ ├── observability.py # Structured logging, metrics, tracing, alerting
|
|
330
|
+
│ ├── persistence.py # State store (JSON, SQLite, Redis)
|
|
331
|
+
│ └── dashboard.py # FastAPI metrics/health dashboard
|
|
332
|
+
├── packages/ # Pip-installable skill packages (UR, Spot, Franka, …)
|
|
333
|
+
├── tests/ # 2000+ pytest tests (skills, safety, swarm, chaos)
|
|
334
|
+
├── examples/
|
|
335
|
+
│ └── workflows/ # 10 ready-made multi-robot workflow scripts
|
|
336
|
+
├── docs/ # Guides, architecture, API reference
|
|
337
|
+
├── docker/ # Dockerfile + docker-compose (ROS 2 + Gazebo)
|
|
338
|
+
└── .github/workflows/ # CI pipeline, nightly builds
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## Adapters
|
|
344
|
+
|
|
345
|
+
APYROBO works with any robot through capability adapters:
|
|
346
|
+
|
|
347
|
+
| Adapter | URI Scheme | Use Case |
|
|
348
|
+
|---------|-----------|----------|
|
|
349
|
+
| `MockAdapter` | `mock://` | Unit testing, development |
|
|
350
|
+
| `GazeboAdapter` | `gazebo://` | Simulation with physics |
|
|
351
|
+
| `MQTTAdapter` | `mqtt://` | IoT / remote robots |
|
|
352
|
+
| `HTTPAdapter` | `http://` | REST-based robot APIs |
|
|
353
|
+
| `Nav2Adapter` | `ros2://` | ROS 2 Nav2 navigation stack |
|
|
354
|
+
| `MoveItAdapter` | `ros2://` | ROS 2 MoveIt 2 manipulation |
|
|
355
|
+
|
|
356
|
+
Write your own: see the [Adapter Authoring Guide](docs/adapter_authoring.md).
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## Connecting to a Robot
|
|
361
|
+
|
|
362
|
+
| URI Scheme | What it does | Requires |
|
|
363
|
+
|------------|-------------|---------|
|
|
364
|
+
| `mock://` | Pure Python simulation, no external deps | Nothing |
|
|
365
|
+
| `gazebo://` | Physics-aware mock with simulated delays | Nothing |
|
|
366
|
+
| `gazebo_native://` | Real Gazebo bridge via socket | Gazebo running |
|
|
367
|
+
| `mujoco://` | MuJoCo physics engine | `pip install mujoco` |
|
|
368
|
+
| `ros2://` | Real ROS 2 robot via rclpy | ROS 2 + Docker image |
|
|
369
|
+
|
|
370
|
+
For your first real robot, use the Docker image which includes ROS 2:
|
|
371
|
+
|
|
372
|
+
```bash
|
|
373
|
+
docker-compose up apyrobo-api
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
## Workflow Templates
|
|
379
|
+
|
|
380
|
+
`examples/workflows/` contains 10 ready-made scripts covering common robotics use cases:
|
|
381
|
+
|
|
382
|
+
| Script | Description |
|
|
383
|
+
|--------|-------------|
|
|
384
|
+
| `patrol_loop.py` | Continuous waypoint patrol with configurable dwell time |
|
|
385
|
+
| `pick_and_place.py` | Async arm workflow with MoveIt adapter and gripper control |
|
|
386
|
+
| `inspection_round.py` | Checkpoint inspection with pass/fail logging and JSON report |
|
|
387
|
+
| `charging_cycle.py` | Battery-aware dock/undock loop |
|
|
388
|
+
| `shelf_restock.py` | Depot-to-shelf restocking with arm |
|
|
389
|
+
| `delivery_run.py` | Multi-stop delivery run with return to base |
|
|
390
|
+
| `multi_floor_navigation.py` | Elevator-based floor transitions with map switching |
|
|
391
|
+
| `quality_inspection.py` | Async vision-based QA with defect logging |
|
|
392
|
+
| `fleet_coordination.py` | Threaded round-robin task dispatch across a robot fleet |
|
|
393
|
+
| `voice_commanded_robot.py` | Voice loop with mock or Whisper STT backend |
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
## Documentation
|
|
398
|
+
|
|
399
|
+
| Document | Description |
|
|
400
|
+
|----------|-------------|
|
|
401
|
+
| [5-Minute Quickstart](docs/quickstart_5min.md) | Install + mock robot + first task |
|
|
402
|
+
| [Full Docker Setup](docs/QUICKSTART.md) | ROS 2 + Gazebo simulation |
|
|
403
|
+
| [Architecture](docs/architecture.md) | Design principles and data flow |
|
|
404
|
+
| [Skill Authoring Guide](docs/skill_authoring.md) | Write, test, and publish custom skills |
|
|
405
|
+
| [Adapter Authoring Guide](docs/adapter_authoring.md) | Add support for new hardware |
|
|
406
|
+
| [API Reference](docs/api_reference.md) | Auto-generated from docstrings |
|
|
407
|
+
| [APYROBO vs Alternatives](docs/comparison.md) | Comparison with RAI, ROS-LLM |
|
|
408
|
+
| [Roadmap](ROADMAP.md) | Public milestones and contribution areas |
|
|
409
|
+
|
|
410
|
+
---
|
|
411
|
+
|
|
412
|
+
## Roadmap
|
|
413
|
+
|
|
414
|
+
| Milestone | Focus | Status |
|
|
415
|
+
|-----------|-------|--------|
|
|
416
|
+
| **v0.1.0** | Foundation — core abstractions, skill graph, safety, swarm, observability | ✅ Done |
|
|
417
|
+
| **v0.2.0** | Handler registry, voice, Nav2/MoveIt adapters, retry, checkpointing | ✅ Done |
|
|
418
|
+
| **v0.3.0** | Memory + VLM — episodic/semantic memory, vision-language models, MuJoCo | ✅ Done |
|
|
419
|
+
| **v0.4.0** | Fleet & Cloud — fleet manager, Kubernetes, REST API | ✅ Done |
|
|
420
|
+
| **v1.0.0** | Stable release — API freeze, PyPI publish, changelog, migration guide | ✅ Done |
|
|
421
|
+
| **v1.1.0** | Ship & discover — PyPI pipeline, compute profiles, hardware profiles | ✅ Done |
|
|
422
|
+
| **v1.2.0** | Real robot hardening — Nav2 costmap, hardware-in-the-loop CI | ✅ Done |
|
|
423
|
+
| **v1.3.0** | Skill ecosystem — skill packages, turtlebot4 reference package | ✅ Done |
|
|
424
|
+
| **v2.0.0** | Adaptive intelligence — LLM replanning, VLM task verification, sim-to-real | ✅ Done |
|
|
425
|
+
| **v3.0.0** | Universal coverage — UR, Spot, Franka, PX4 drone, AGV skill packages, orchestration server, workflow templates | ✅ Done |
|
|
426
|
+
|
|
427
|
+
We have items marked **good first issue** and **help wanted** across future milestones.
|
|
428
|
+
See [ROADMAP.md](ROADMAP.md) for the full technical roadmap with contribution opportunities.
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## Contributing
|
|
433
|
+
|
|
434
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.
|
|
435
|
+
|
|
436
|
+
```bash
|
|
437
|
+
# Run the test suite
|
|
438
|
+
pip install -e ".[dev]"
|
|
439
|
+
pytest tests/ -v -o "addopts="
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
## License
|
|
445
|
+
|
|
446
|
+
Apache 2.0 — see [LICENSE](LICENSE).
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
<p align="center">
|
|
451
|
+
<strong>APYROBO</strong> · Built on ROS 2 · Open Source · Any Hardware · Any LLM
|
|
452
|
+
</p>
|