urml-ros2-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_ros2_runtime/__init__.py +100 -0
- urml_ros2_runtime/_version.py +5 -0
- urml_ros2_runtime/action_server.py +694 -0
- urml_ros2_runtime/bindings.py +115 -0
- urml_ros2_runtime/conditions.py +220 -0
- urml_ros2_runtime/errors.py +86 -0
- urml_ros2_runtime/fleet.py +464 -0
- urml_ros2_runtime/primitives.py +993 -0
- urml_ros2_runtime/py.typed +0 -0
- urml_ros2_runtime/rehearsal.py +373 -0
- urml_ros2_runtime/runtime.py +522 -0
- urml_ros2_runtime/scan_plan.py +402 -0
- urml_ros2_runtime/shield.py +204 -0
- urml_ros2_runtime/substrate/__init__.py +63 -0
- urml_ros2_runtime/substrate/adapter_config.py +160 -0
- urml_ros2_runtime/substrate/base.py +622 -0
- urml_ros2_runtime/substrate/mock.py +693 -0
- urml_ros2_runtime/substrate/rclpy_adapter.py +961 -0
- urml_ros2_runtime-0.5.0.dist-info/METADATA +105 -0
- urml_ros2_runtime-0.5.0.dist-info/RECORD +22 -0
- urml_ros2_runtime-0.5.0.dist-info/WHEEL +4 -0
- urml_ros2_runtime-0.5.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""urml_ros2_runtime — ROS 2 reference runtime for URML.
|
|
2
|
+
|
|
3
|
+
Public API:
|
|
4
|
+
|
|
5
|
+
URMLRuntime(adapter)
|
|
6
|
+
.execute(program, manifest, envelope=None, profiles=(),
|
|
7
|
+
*, policy="DEFAULT", manifest_base_dir=None) -> RuntimeResult
|
|
8
|
+
|
|
9
|
+
MockROSAdapter()
|
|
10
|
+
Hermetic substrate for tests and development without ROS.
|
|
11
|
+
|
|
12
|
+
RclpyAdapter(config=None)
|
|
13
|
+
Real ROS 2 adapter via rclpy. Requires a ROS 2 environment;
|
|
14
|
+
rclpy is imported lazily so this module loads on every host.
|
|
15
|
+
|
|
16
|
+
AdapterConfig / load_adapter_config(path)
|
|
17
|
+
Deployment-side config for RclpyAdapter (action-server names,
|
|
18
|
+
perception topics, speech topics, location-to-pose map).
|
|
19
|
+
|
|
20
|
+
ROSAdapter
|
|
21
|
+
Protocol every substrate adapter implements.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from __future__ import annotations
|
|
25
|
+
|
|
26
|
+
from urml_ros2_runtime._version import __version__
|
|
27
|
+
from urml_ros2_runtime.bindings import resolve as resolve_reference
|
|
28
|
+
from urml_ros2_runtime.bindings import resolve_all as resolve_references
|
|
29
|
+
from urml_ros2_runtime.conditions import evaluate as evaluate_condition
|
|
30
|
+
from urml_ros2_runtime.errors import (
|
|
31
|
+
ConditionEvalError,
|
|
32
|
+
PrimitiveExecutionError,
|
|
33
|
+
RuntimeError,
|
|
34
|
+
UnresolvedReferenceError,
|
|
35
|
+
UnsupportedCompositionError,
|
|
36
|
+
ValidationRejectedError,
|
|
37
|
+
)
|
|
38
|
+
from urml_ros2_runtime.fleet import FleetRuntime, FleetRuntimeResult
|
|
39
|
+
from urml_ros2_runtime.primitives import PrimitiveOutcome
|
|
40
|
+
from urml_ros2_runtime.rehearsal import (
|
|
41
|
+
KinematicProfile,
|
|
42
|
+
KinematicRehearsalAdapter,
|
|
43
|
+
RehearsalReport,
|
|
44
|
+
TraceRecorder,
|
|
45
|
+
rehearse,
|
|
46
|
+
)
|
|
47
|
+
from urml_ros2_runtime.runtime import RuntimeResult, URMLRuntime
|
|
48
|
+
from urml_ros2_runtime.shield import Shield, ShieldedAdapter, ShieldViolationError
|
|
49
|
+
from urml_ros2_runtime.substrate import (
|
|
50
|
+
AdapterConfig,
|
|
51
|
+
CaptureResult,
|
|
52
|
+
DetectionResult,
|
|
53
|
+
MeasurementResult,
|
|
54
|
+
MockROSAdapter,
|
|
55
|
+
NavigationResult,
|
|
56
|
+
RclpyAdapter,
|
|
57
|
+
ROSAdapter,
|
|
58
|
+
SubstrateResult,
|
|
59
|
+
TelemetryAdapter,
|
|
60
|
+
WaitResult,
|
|
61
|
+
load_adapter_config,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
__all__ = [
|
|
65
|
+
"AdapterConfig",
|
|
66
|
+
"CaptureResult",
|
|
67
|
+
"ConditionEvalError",
|
|
68
|
+
"DetectionResult",
|
|
69
|
+
"FleetRuntime",
|
|
70
|
+
"FleetRuntimeResult",
|
|
71
|
+
"KinematicProfile",
|
|
72
|
+
"KinematicRehearsalAdapter",
|
|
73
|
+
"MeasurementResult",
|
|
74
|
+
"MockROSAdapter",
|
|
75
|
+
"NavigationResult",
|
|
76
|
+
"PrimitiveExecutionError",
|
|
77
|
+
"PrimitiveOutcome",
|
|
78
|
+
"ROSAdapter",
|
|
79
|
+
"RclpyAdapter",
|
|
80
|
+
"RehearsalReport",
|
|
81
|
+
"RuntimeError",
|
|
82
|
+
"RuntimeResult",
|
|
83
|
+
"Shield",
|
|
84
|
+
"ShieldViolationError",
|
|
85
|
+
"ShieldedAdapter",
|
|
86
|
+
"SubstrateResult",
|
|
87
|
+
"TelemetryAdapter",
|
|
88
|
+
"TraceRecorder",
|
|
89
|
+
"URMLRuntime",
|
|
90
|
+
"UnresolvedReferenceError",
|
|
91
|
+
"UnsupportedCompositionError",
|
|
92
|
+
"ValidationRejectedError",
|
|
93
|
+
"WaitResult",
|
|
94
|
+
"__version__",
|
|
95
|
+
"evaluate_condition",
|
|
96
|
+
"load_adapter_config",
|
|
97
|
+
"rehearse",
|
|
98
|
+
"resolve_reference",
|
|
99
|
+
"resolve_references",
|
|
100
|
+
]
|