urml-px4-runtime 0.5.0__py3-none-any.whl
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.
- urml_px4_runtime/__init__.py +38 -0
- urml_px4_runtime/_version.py +3 -0
- urml_px4_runtime/adapter.py +1318 -0
- urml_px4_runtime/composite.py +372 -0
- urml_px4_runtime/config.py +124 -0
- urml_px4_runtime/py.typed +0 -0
- urml_px4_runtime-0.5.0.dist-info/METADATA +219 -0
- urml_px4_runtime-0.5.0.dist-info/RECORD +9 -0
- urml_px4_runtime-0.5.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""urml_px4_runtime — PX4 / MAVLink reference runtime for URML.
|
|
2
|
+
|
|
3
|
+
Public API:
|
|
4
|
+
|
|
5
|
+
PX4Adapter(config)
|
|
6
|
+
Real MAVLink adapter via pymavlink. Implements the same ROSAdapter
|
|
7
|
+
Protocol as the ROS 2 runtime's RclpyAdapter — substrate-neutral by
|
|
8
|
+
design. pymavlink is imported lazily so this module loads on every
|
|
9
|
+
host; constructing the adapter without pymavlink raises a clear,
|
|
10
|
+
actionable error.
|
|
11
|
+
|
|
12
|
+
PX4AdapterConfig
|
|
13
|
+
Connection + identity config (URL, system_id, component_id, default
|
|
14
|
+
timeouts). Loaded from YAML via load_px4_config(path).
|
|
15
|
+
|
|
16
|
+
CompositeAdapter(flight=..., companion=..., routing=None)
|
|
17
|
+
Routes one URML program across two substrates — a PX4 flight
|
|
18
|
+
adapter and a ROS 2 companion adapter — by dispatching each
|
|
19
|
+
ROSAdapter method to whichever backend owns that capability.
|
|
20
|
+
Imports neither pymavlink nor rclpy; loads on every host.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
from __future__ import annotations
|
|
24
|
+
|
|
25
|
+
from urml_px4_runtime._version import __version__
|
|
26
|
+
from urml_px4_runtime.adapter import PX4Adapter
|
|
27
|
+
from urml_px4_runtime.composite import COMPANION, FLIGHT, CompositeAdapter
|
|
28
|
+
from urml_px4_runtime.config import PX4AdapterConfig, load_px4_config
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"COMPANION",
|
|
32
|
+
"FLIGHT",
|
|
33
|
+
"CompositeAdapter",
|
|
34
|
+
"PX4Adapter",
|
|
35
|
+
"PX4AdapterConfig",
|
|
36
|
+
"__version__",
|
|
37
|
+
"load_px4_config",
|
|
38
|
+
]
|