OpenSMI-ROS2 0.1.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.
Files changed (89) hide show
  1. opensmi/ros2/__init__.py +89 -0
  2. opensmi/ros2/__main__.py +11 -0
  3. opensmi/ros2/cli.py +143 -0
  4. opensmi/ros2/py.typed +0 -0
  5. opensmi/ros2/runtime/__init__.py +67 -0
  6. opensmi/ros2/runtime/_decode.py +101 -0
  7. opensmi/ros2/runtime/_encode.py +102 -0
  8. opensmi/ros2/runtime/_parser.py +147 -0
  9. opensmi/ros2/runtime/errors.py +141 -0
  10. opensmi/ros2/runtime/goal.py +232 -0
  11. opensmi/ros2/runtime/graph.py +288 -0
  12. opensmi/ros2/runtime/guard.py +213 -0
  13. opensmi/ros2/runtime/interface.py +140 -0
  14. opensmi/ros2/runtime/messages/__init__.py +503 -0
  15. opensmi/ros2/runtime/messages/industrial_msgs.py +62 -0
  16. opensmi/ros2/runtime/messages/industrial_msgs.pyi +159 -0
  17. opensmi/ros2/runtime/messages/motoros2_interfaces.py +79 -0
  18. opensmi/ros2/runtime/messages/motoros2_interfaces.pyi +307 -0
  19. opensmi/ros2/runtime/messages/neo_msgs2.py +55 -0
  20. opensmi/ros2/runtime/messages/neo_msgs2.pyi +138 -0
  21. opensmi/ros2/runtime/messages/neo_srvs2.py +72 -0
  22. opensmi/ros2/runtime/messages/neo_srvs2.pyi +224 -0
  23. opensmi/ros2/runtime/outcomes.py +103 -0
  24. opensmi/ros2/runtime/parameters.py +723 -0
  25. opensmi/ros2/runtime/publisher.py +125 -0
  26. opensmi/ros2/runtime/qos.py +394 -0
  27. opensmi/ros2/runtime/runtime.py +1171 -0
  28. opensmi/ros2/runtime/selection.py +150 -0
  29. opensmi/ros2/runtime/stamp.py +100 -0
  30. opensmi/ros2/runtime/subscription.py +354 -0
  31. opensmi/ros2/runtime/tf.py +714 -0
  32. opensmi/ros2/server/__init__.py +148 -0
  33. opensmi/ros2/server/access.py +109 -0
  34. opensmi/ros2/server/bindings/__init__.py +92 -0
  35. opensmi/ros2/server/bindings/_base.py +154 -0
  36. opensmi/ros2/server/bindings/action.py +133 -0
  37. opensmi/ros2/server/bindings/keyed.py +127 -0
  38. opensmi/ros2/server/bindings/lifecycle.py +131 -0
  39. opensmi/ros2/server/bindings/method.py +130 -0
  40. opensmi/ros2/server/bindings/monitoring.py +109 -0
  41. opensmi/ros2/server/bindings/parameter.py +133 -0
  42. opensmi/ros2/server/bindings/publisher.py +192 -0
  43. opensmi/ros2/server/bindings/registry.py +95 -0
  44. opensmi/ros2/server/bindings/tf.py +256 -0
  45. opensmi/ros2/server/browse_names.py +94 -0
  46. opensmi/ros2/server/component.py +334 -0
  47. opensmi/ros2/server/config.py +493 -0
  48. opensmi/ros2/server/containers.py +191 -0
  49. opensmi/ros2/server/drivers.py +421 -0
  50. opensmi/ros2/server/errors.py +159 -0
  51. opensmi/ros2/server/events.py +406 -0
  52. opensmi/ros2/server/introspection.py +850 -0
  53. opensmi/ros2/server/keyed.py +749 -0
  54. opensmi/ros2/server/lifecycle.py +238 -0
  55. opensmi/ros2/server/limits.py +66 -0
  56. opensmi/ros2/server/loader.py +977 -0
  57. opensmi/ros2/server/machine.py +225 -0
  58. opensmi/ros2/server/method.py +307 -0
  59. opensmi/ros2/server/mirror.py +582 -0
  60. opensmi/ros2/server/mutation.py +992 -0
  61. opensmi/ros2/server/nodesets/Opc.Ua.SmartFactory.ROS2.NodeSet2.xml +85 -0
  62. opensmi/ros2/server/nodesets/__init__.py +18 -0
  63. opensmi/ros2/server/nodesets/smart_factory_ros2.py +26 -0
  64. opensmi/ros2/server/parameters.py +704 -0
  65. opensmi/ros2/server/projection.py +1176 -0
  66. opensmi/ros2/server/projections/__init__.py +41 -0
  67. opensmi/ros2/server/projections/scope.py +222 -0
  68. opensmi/ros2/server/provenance.py +121 -0
  69. opensmi/ros2/server/publisher.py +781 -0
  70. opensmi/ros2/server/recipes.py +514 -0
  71. opensmi/ros2/server/required.py +633 -0
  72. opensmi/ros2/server/skill.py +363 -0
  73. opensmi/ros2/server/spatial.py +283 -0
  74. opensmi/ros2/server/startup.py +626 -0
  75. opensmi/ros2/server/status.py +107 -0
  76. opensmi/ros2/server/structures.py +135 -0
  77. opensmi/ros2/server/transforms/__init__.py +39 -0
  78. opensmi/ros2/server/transforms/conversions.py +58 -0
  79. opensmi/ros2/server/transforms/filing.py +340 -0
  80. opensmi/ros2/server/transforms/mirror.py +462 -0
  81. opensmi/ros2/server/transforms/outward.py +180 -0
  82. opensmi/ros2/server/transforms/records.py +195 -0
  83. opensmi/ros2/server/transforms/spatial.py +154 -0
  84. opensmi_ros2-0.1.0.dist-info/METADATA +183 -0
  85. opensmi_ros2-0.1.0.dist-info/RECORD +89 -0
  86. opensmi_ros2-0.1.0.dist-info/WHEEL +5 -0
  87. opensmi_ros2-0.1.0.dist-info/entry_points.txt +2 -0
  88. opensmi_ros2-0.1.0.dist-info/licenses/LICENSES/MIT.txt +18 -0
  89. opensmi_ros2-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,85 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ SPDX-FileCopyrightText: 2026 Technologie-Initiative SmartFactory KL e.V.
4
+
5
+ SPDX-License-Identifier: MIT
6
+
7
+ This project's own information model, and the only one it defines.
8
+
9
+ It is shipped as a nodeset rather than created at run time, and registered and imported through
10
+ opensmi.server's nodeset handling like every standard nodeset. The namespace URI names the
11
+ information model rather than the distribution that ships it.
12
+
13
+ Two things live here:
14
+
15
+ * `BindingEventType`, the one event this project raises about itself. It subtypes `BaseEventType`
16
+ (i=2041) rather than the house `AlertType`, which is an `AlarmConditionType` descendant and
17
+ would promise a condition lifecycle the stack underneath does not implement.
18
+ * `SignedByteString`, a `ByteString` (i=15) subtype that says the elements packed into a bulk
19
+ payload are signed.
20
+
21
+ The event type's three properties carry no access level, which leaves them at the default of
22
+ read-only. The house `AlertType` marks its own `ErrorCode` writable; an event field is something
23
+ a server reports and a client reads, so copying that would hand a client a write it has no
24
+ business making.
25
+
26
+ The NodeId class in smart_factory_ros2.py is generated from this file with opensmi's nodeset
27
+ generator. Re-generate it by hand whenever this file changes.
28
+ -->
29
+ <UANodeSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uax="http://opcfoundation.org/UA/2008/02/Types.xsd" xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd">
30
+ <NamespaceUris>
31
+ <Uri>http://smartfactory.de/UA/ROS2</Uri>
32
+ </NamespaceUris>
33
+ <Models>
34
+ <Model ModelUri="http://smartfactory.de/UA/ROS2" PublicationDate="2026-09-19T00:00:00Z" Version="1.00">
35
+ <RequiredModel ModelUri="http://opcfoundation.org/UA/" PublicationDate="2021-12-15T00:00:00Z" Version="1.05.01"/>
36
+ </Model>
37
+ </Models>
38
+ <Aliases>
39
+ <Alias Alias="String">i=12</Alias>
40
+ <Alias Alias="ByteString">i=15</Alias>
41
+ </Aliases>
42
+
43
+ <UAObjectType NodeId="ns=1;i=1001" BrowseName="1:BindingEventType">
44
+ <DisplayName>BindingEventType</DisplayName>
45
+ <Description Locale="en">An event whose subject is always a Binding: which Binding, which ROS2 path, and a code.</Description>
46
+ <References>
47
+ <Reference ReferenceType="HasSubtype" IsForward="false">i=2041</Reference>
48
+ <Reference ReferenceType="HasProperty">ns=1;i=6001</Reference>
49
+ <Reference ReferenceType="HasProperty">ns=1;i=6002</Reference>
50
+ <Reference ReferenceType="HasProperty">ns=1;i=6003</Reference>
51
+ </References>
52
+ </UAObjectType>
53
+ <UAVariable DataType="String" NodeId="ns=1;i=6001" BrowseName="1:Binding" ParentNodeId="ns=1;i=1001">
54
+ <DisplayName>Binding</DisplayName>
55
+ <Description Locale="en">The name of the Binding this event is about.</Description>
56
+ <References>
57
+ <Reference ReferenceType="HasTypeDefinition">i=68</Reference>
58
+ <Reference ReferenceType="HasModellingRule">i=78</Reference>
59
+ </References>
60
+ </UAVariable>
61
+ <UAVariable DataType="String" NodeId="ns=1;i=6002" BrowseName="1:ROS2Path" ParentNodeId="ns=1;i=1001">
62
+ <DisplayName>ROS2Path</DisplayName>
63
+ <Description Locale="en">The ROS2 topic, service, action or node path that Binding names.</Description>
64
+ <References>
65
+ <Reference ReferenceType="HasTypeDefinition">i=68</Reference>
66
+ <Reference ReferenceType="HasModellingRule">i=78</Reference>
67
+ </References>
68
+ </UAVariable>
69
+ <UAVariable DataType="String" NodeId="ns=1;i=6003" BrowseName="1:Code" ParentNodeId="ns=1;i=1001">
70
+ <DisplayName>Code</DisplayName>
71
+ <Description Locale="en">What happened, as a stable identifier a client can branch on.</Description>
72
+ <References>
73
+ <Reference ReferenceType="HasTypeDefinition">i=68</Reference>
74
+ <Reference ReferenceType="HasModellingRule">i=78</Reference>
75
+ </References>
76
+ </UAVariable>
77
+
78
+ <UADataType NodeId="ns=1;i=3001" BrowseName="1:SignedByteString">
79
+ <DisplayName>SignedByteString</DisplayName>
80
+ <Description Locale="en">A bulk payload whose packed elements are signed two's-complement integers of the element width. A payload whose elements are unsigned keeps the plain ByteString, which OPC UA already defines as a string of unsigned bytes.</Description>
81
+ <References>
82
+ <Reference ReferenceType="HasSubtype" IsForward="false">i=15</Reference>
83
+ </References>
84
+ </UADataType>
85
+ </UANodeSet>
@@ -0,0 +1,18 @@
1
+ # SPDX-FileCopyrightText: 2026 Technologie-Initiative SmartFactory KL e.V.
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ """The nodeset XML this project ships, and the NodeId class generated from it.
6
+
7
+ A package so that the XML lands in the wheel as package data and opensmi.server can load it by name
8
+ (``Server.ua_register_nodeset_xml``). :mod:`opensmi.ros2.server.events` registers and imports it.
9
+ :class:`SmartFactoryROS2NodeIds` is generated from the XML with opensmi's nodeset generator and
10
+ committed; every NodeId of ours is read off it.
11
+ """
12
+
13
+ from opensmi.ros2.server.nodesets.smart_factory_ros2 import SmartFactoryROS2NodeIds
14
+
15
+ __all__ = ["PACKAGE", "SmartFactoryROS2NodeIds"]
16
+
17
+ PACKAGE = __name__
18
+ """The package the nodeset XML is installed in, which is what the server loads it from."""
@@ -0,0 +1,26 @@
1
+ # SPDX-FileCopyrightText: 2026 Technologie-Initiative SmartFactory KL e.V.
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ # !!! autogenerated code, do not change manually !!!
6
+ # generated on 2026-11-05 22:44:44.256778+01:00
7
+
8
+ """Node identifiers from the OPC UA 'SmartFactoryROS2' nodeset. Auto-generated."""
9
+
10
+ from typing import ClassVar, final
11
+
12
+ from opensmi.core.frozen import FrozenMeta
13
+ from opensmi.core.ua import NodeIdDefinition
14
+
15
+
16
+ @final
17
+ class SmartFactoryROS2NodeIds(metaclass=FrozenMeta):
18
+ """Node identifiers from the OPC UA 'SmartFactoryROS2' nodeset. Auto-generated."""
19
+
20
+ FILE_NAME: ClassVar[str] = "Opc.Ua.SmartFactory.ROS2.NodeSet2.xml"
21
+ URI: ClassVar[str] = "http://smartfactory.de/UA/ROS2"
22
+ VERSION: ClassVar[str] = "1.00"
23
+ REQUIRED_URIS: ClassVar[tuple[str, ...]] = ()
24
+
25
+ BindingEventType = NodeIdDefinition(identifier=1001, namespace_uri=URI)
26
+ SignedByteString = NodeIdDefinition(identifier=3001, namespace_uri=URI)