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,159 @@
1
+ # SPDX-FileCopyrightText: 2026 Technologie-Initiative SmartFactory KL e.V.
2
+ # SPDX-FileCopyrightText: 2012 Southwest Research Institute
3
+ #
4
+ # SPDX-License-Identifier: MIT AND BSD-3-Clause
5
+
6
+ """Static types for the ROS2 interface package ``industrial_msgs``.
7
+
8
+ Generated by `python -m tools.catalog_sync --stubs` from the definition catalog.
9
+ Edit the catalog and regenerate; do not edit this file.
10
+
11
+ A field whose type comes from an interface package the catalog does not carry is annotated
12
+ ``Any``: the catalog holds the packages nothing can install, and inventing a shape for one it
13
+ leaves to apt would be a second source of truth for a structure the installed package already
14
+ states exactly.
15
+ """
16
+
17
+ from dataclasses import dataclass
18
+ from typing import Any
19
+
20
+ from opensmi.ros2.runtime.messages import Message
21
+
22
+ @dataclass(frozen=True, kw_only=True)
23
+ class CmdJointTrajectory_Request(Message):
24
+ """The ROS2 message ``industrial_msgs/srv/CmdJointTrajectory_Request``, as it crosses the seam."""
25
+
26
+ trajectory: Any
27
+
28
+
29
+ @dataclass(frozen=True, kw_only=True)
30
+ class CmdJointTrajectory_Response(Message):
31
+ """The ROS2 message ``industrial_msgs/srv/CmdJointTrajectory_Response``, as it crosses the seam."""
32
+
33
+ code: ServiceReturnCode
34
+
35
+
36
+ @dataclass(frozen=True, kw_only=True)
37
+ class DebugLevel(Message):
38
+ """The ROS2 message ``industrial_msgs/msg/DebugLevel``, as it crosses the seam."""
39
+
40
+ val: int
41
+
42
+
43
+ @dataclass(frozen=True, kw_only=True)
44
+ class DeviceInfo(Message):
45
+ """The ROS2 message ``industrial_msgs/msg/DeviceInfo``, as it crosses the seam."""
46
+
47
+ model: str
48
+ serial_number: str
49
+ hw_version: str
50
+ sw_version: str
51
+ address: str
52
+
53
+
54
+ @dataclass(frozen=True, kw_only=True)
55
+ class GetRobotInfo_Request(Message):
56
+ """The ROS2 message ``industrial_msgs/srv/GetRobotInfo_Request``, as it crosses the seam."""
57
+
58
+ ...
59
+
60
+
61
+ @dataclass(frozen=True, kw_only=True)
62
+ class GetRobotInfo_Response(Message):
63
+ """The ROS2 message ``industrial_msgs/srv/GetRobotInfo_Response``, as it crosses the seam."""
64
+
65
+ controller: DeviceInfo
66
+ robots: tuple[DeviceInfo, ...]
67
+ code: ServiceReturnCode
68
+
69
+
70
+ @dataclass(frozen=True, kw_only=True)
71
+ class RobotMode(Message):
72
+ """The ROS2 message ``industrial_msgs/msg/RobotMode``, as it crosses the seam."""
73
+
74
+ val: int
75
+
76
+
77
+ @dataclass(frozen=True, kw_only=True)
78
+ class RobotStatus(Message):
79
+ """The ROS2 message ``industrial_msgs/msg/RobotStatus``, as it crosses the seam."""
80
+
81
+ header: Any
82
+ mode: RobotMode
83
+ e_stopped: TriState
84
+ drives_powered: TriState
85
+ motion_possible: TriState
86
+ in_motion: TriState
87
+ in_error: TriState
88
+ error_codes: tuple[int, ...]
89
+
90
+
91
+ @dataclass(frozen=True, kw_only=True)
92
+ class ServiceReturnCode(Message):
93
+ """The ROS2 message ``industrial_msgs/msg/ServiceReturnCode``, as it crosses the seam."""
94
+
95
+ val: int
96
+
97
+
98
+ @dataclass(frozen=True, kw_only=True)
99
+ class SetDrivePower_Request(Message):
100
+ """The ROS2 message ``industrial_msgs/srv/SetDrivePower_Request``, as it crosses the seam."""
101
+
102
+ drive_power: bool
103
+
104
+
105
+ @dataclass(frozen=True, kw_only=True)
106
+ class SetDrivePower_Response(Message):
107
+ """The ROS2 message ``industrial_msgs/srv/SetDrivePower_Response``, as it crosses the seam."""
108
+
109
+ code: ServiceReturnCode
110
+
111
+
112
+ @dataclass(frozen=True, kw_only=True)
113
+ class SetRemoteLoggerLevel_Request(Message):
114
+ """The ROS2 message ``industrial_msgs/srv/SetRemoteLoggerLevel_Request``, as it crosses the seam."""
115
+
116
+ level: DebugLevel
117
+
118
+
119
+ @dataclass(frozen=True, kw_only=True)
120
+ class SetRemoteLoggerLevel_Response(Message):
121
+ """The ROS2 message ``industrial_msgs/srv/SetRemoteLoggerLevel_Response``, as it crosses the seam."""
122
+
123
+ code: ServiceReturnCode
124
+
125
+
126
+ @dataclass(frozen=True, kw_only=True)
127
+ class StartMotion_Request(Message):
128
+ """The ROS2 message ``industrial_msgs/srv/StartMotion_Request``, as it crosses the seam."""
129
+
130
+ ...
131
+
132
+
133
+ @dataclass(frozen=True, kw_only=True)
134
+ class StartMotion_Response(Message):
135
+ """The ROS2 message ``industrial_msgs/srv/StartMotion_Response``, as it crosses the seam."""
136
+
137
+ code: ServiceReturnCode
138
+
139
+
140
+ @dataclass(frozen=True, kw_only=True)
141
+ class StopMotion_Request(Message):
142
+ """The ROS2 message ``industrial_msgs/srv/StopMotion_Request``, as it crosses the seam."""
143
+
144
+ ...
145
+
146
+
147
+ @dataclass(frozen=True, kw_only=True)
148
+ class StopMotion_Response(Message):
149
+ """The ROS2 message ``industrial_msgs/srv/StopMotion_Response``, as it crosses the seam."""
150
+
151
+ code: ServiceReturnCode
152
+
153
+
154
+ @dataclass(frozen=True, kw_only=True)
155
+ class TriState(Message):
156
+ """The ROS2 message ``industrial_msgs/msg/TriState``, as it crosses the seam."""
157
+
158
+ val: int
159
+
@@ -0,0 +1,79 @@
1
+ # SPDX-FileCopyrightText: 2026 Technologie-Initiative SmartFactory KL e.V.
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ """The ROS2 interface package ``motoros2_interfaces``, as message dataclasses.
6
+
7
+ Generated by `python -m tools.catalog_sync --stubs` from the definition catalog.
8
+ Edit the catalog and regenerate; do not edit this file.
9
+
10
+ ``from opensmi.ros2.runtime.messages.motoros2_interfaces import AlarmCauseRemedy`` resolves through
11
+ :func:`~opensmi.ros2.runtime.messages.message_dataclass` at run time and type-checks against the
12
+ generated ``motoros2_interfaces.pyi`` beside this file. The two halves answer different questions: the stub
13
+ says what the fields *are*, and this module makes sure what you get is the very dataclass every
14
+ Binding carrying that type already holds.
15
+
16
+ Importing a name from here needs the interface package installed, exactly as a Binding on it does
17
+ -- the catalog makes a type describable, never receivable.
18
+ """
19
+
20
+ from __future__ import annotations
21
+
22
+ from typing import TYPE_CHECKING
23
+
24
+ from opensmi.ros2.runtime.messages import message_dataclass
25
+
26
+ if TYPE_CHECKING:
27
+ from opensmi.ros2.runtime.messages import Message
28
+
29
+ _TYPES = {
30
+ "AlarmCauseRemedy": "motoros2_interfaces/msg/AlarmCauseRemedy",
31
+ "AlarmInfo": "motoros2_interfaces/msg/AlarmInfo",
32
+ "ErrorInfo": "motoros2_interfaces/msg/ErrorInfo",
33
+ "GetActiveAlarmInfo_Request": "motoros2_interfaces/srv/GetActiveAlarmInfo_Request",
34
+ "GetActiveAlarmInfo_Response": "motoros2_interfaces/srv/GetActiveAlarmInfo_Response",
35
+ "InformJobCrudResultCodes": "motoros2_interfaces/msg/InformJobCrudResultCodes",
36
+ "InitTrajEnum": "motoros2_interfaces/msg/InitTrajEnum",
37
+ "IoResultCodes": "motoros2_interfaces/msg/IoResultCodes",
38
+ "ListInformJobs_Request": "motoros2_interfaces/srv/ListInformJobs_Request",
39
+ "ListInformJobs_Response": "motoros2_interfaces/srv/ListInformJobs_Response",
40
+ "MotionReadyEnum": "motoros2_interfaces/msg/MotionReadyEnum",
41
+ "QueueResultEnum": "motoros2_interfaces/msg/QueueResultEnum",
42
+ "QueueTrajPoint_Request": "motoros2_interfaces/srv/QueueTrajPoint_Request",
43
+ "QueueTrajPoint_Response": "motoros2_interfaces/srv/QueueTrajPoint_Response",
44
+ "ReadGroupIO_Request": "motoros2_interfaces/srv/ReadGroupIO_Request",
45
+ "ReadGroupIO_Response": "motoros2_interfaces/srv/ReadGroupIO_Response",
46
+ "ReadMRegister_Request": "motoros2_interfaces/srv/ReadMRegister_Request",
47
+ "ReadMRegister_Response": "motoros2_interfaces/srv/ReadMRegister_Response",
48
+ "ReadSingleIO_Request": "motoros2_interfaces/srv/ReadSingleIO_Request",
49
+ "ReadSingleIO_Response": "motoros2_interfaces/srv/ReadSingleIO_Response",
50
+ "ResetError_Request": "motoros2_interfaces/srv/ResetError_Request",
51
+ "ResetError_Response": "motoros2_interfaces/srv/ResetError_Response",
52
+ "SelectMotionTool_Request": "motoros2_interfaces/srv/SelectMotionTool_Request",
53
+ "SelectMotionTool_Response": "motoros2_interfaces/srv/SelectMotionTool_Response",
54
+ "SelectionResultCodes": "motoros2_interfaces/msg/SelectionResultCodes",
55
+ "StartPointQueueMode_Request": "motoros2_interfaces/srv/StartPointQueueMode_Request",
56
+ "StartPointQueueMode_Response": "motoros2_interfaces/srv/StartPointQueueMode_Response",
57
+ "StartTrajMode_Request": "motoros2_interfaces/srv/StartTrajMode_Request",
58
+ "StartTrajMode_Response": "motoros2_interfaces/srv/StartTrajMode_Response",
59
+ "WriteGroupIO_Request": "motoros2_interfaces/srv/WriteGroupIO_Request",
60
+ "WriteGroupIO_Response": "motoros2_interfaces/srv/WriteGroupIO_Response",
61
+ "WriteMRegister_Request": "motoros2_interfaces/srv/WriteMRegister_Request",
62
+ "WriteMRegister_Response": "motoros2_interfaces/srv/WriteMRegister_Response",
63
+ "WriteSingleIO_Request": "motoros2_interfaces/srv/WriteSingleIO_Request",
64
+ "WriteSingleIO_Response": "motoros2_interfaces/srv/WriteSingleIO_Response",
65
+ }
66
+
67
+
68
+ def __getattr__(name: str) -> type[Message]:
69
+ """Return the message dataclass one of this package's types is built as."""
70
+ type_name = _TYPES.get(name)
71
+ if type_name is None:
72
+ message = f"module {__name__!r} has no attribute {name!r}"
73
+ raise AttributeError(message)
74
+ return message_dataclass(type_name)
75
+
76
+
77
+ def __dir__() -> list[str]:
78
+ """List what this module answers for, since it has no module-level names of its own."""
79
+ return sorted(_TYPES)
@@ -0,0 +1,307 @@
1
+ # SPDX-FileCopyrightText: 2026 Technologie-Initiative SmartFactory KL e.V.
2
+ # SPDX-FileCopyrightText: 2022-2024 Yaskawa America, Inc.
3
+ # SPDX-FileCopyrightText: 2022 Delft University of Technology
4
+ #
5
+ # SPDX-License-Identifier: MIT AND Apache-2.0
6
+
7
+ """Static types for the ROS2 interface package ``motoros2_interfaces``.
8
+
9
+ Generated by `python -m tools.catalog_sync --stubs` from the definition catalog.
10
+ Edit the catalog and regenerate; do not edit this file.
11
+
12
+ A field whose type comes from an interface package the catalog does not carry is annotated
13
+ ``Any``: the catalog holds the packages nothing can install, and inventing a shape for one it
14
+ leaves to apt would be a second source of truth for a structure the installed package already
15
+ states exactly.
16
+ """
17
+
18
+ from dataclasses import dataclass
19
+ from typing import Any
20
+
21
+ from opensmi.ros2.runtime.messages import Message
22
+
23
+ @dataclass(frozen=True, kw_only=True)
24
+ class AlarmCauseRemedy(Message):
25
+ """The ROS2 message ``motoros2_interfaces/msg/AlarmCauseRemedy``, as it crosses the seam."""
26
+
27
+ cause: str
28
+ remedy: str
29
+
30
+
31
+ @dataclass(frozen=True, kw_only=True)
32
+ class AlarmInfo(Message):
33
+ """The ROS2 message ``motoros2_interfaces/msg/AlarmInfo``, as it crosses the seam."""
34
+
35
+ number: int
36
+ message: str
37
+ sub_code: int
38
+ datetime: Any
39
+ contents: str
40
+ description: str
41
+ help: tuple[AlarmCauseRemedy, ...]
42
+
43
+
44
+ @dataclass(frozen=True, kw_only=True)
45
+ class ErrorInfo(Message):
46
+ """The ROS2 message ``motoros2_interfaces/msg/ErrorInfo``, as it crosses the seam."""
47
+
48
+ number: int
49
+ message: str
50
+ sub_code: int
51
+ datetime: Any
52
+
53
+
54
+ @dataclass(frozen=True, kw_only=True)
55
+ class GetActiveAlarmInfo_Request(Message):
56
+ """The ROS2 message ``motoros2_interfaces/srv/GetActiveAlarmInfo_Request``, as it crosses the seam."""
57
+
58
+ ...
59
+
60
+
61
+ @dataclass(frozen=True, kw_only=True)
62
+ class GetActiveAlarmInfo_Response(Message):
63
+ """The ROS2 message ``motoros2_interfaces/srv/GetActiveAlarmInfo_Response``, as it crosses the seam."""
64
+
65
+ result_code: int
66
+ result_message: str
67
+ alarms: tuple[AlarmInfo, ...]
68
+ errors: tuple[ErrorInfo, ...]
69
+
70
+
71
+ @dataclass(frozen=True, kw_only=True)
72
+ class InformJobCrudResultCodes(Message):
73
+ """The ROS2 message ``motoros2_interfaces/msg/InformJobCrudResultCodes``, as it crosses the seam."""
74
+
75
+ ...
76
+
77
+
78
+ @dataclass(frozen=True, kw_only=True)
79
+ class InitTrajEnum(Message):
80
+ """The ROS2 message ``motoros2_interfaces/msg/InitTrajEnum``, as it crosses the seam."""
81
+
82
+ value: int
83
+
84
+
85
+ @dataclass(frozen=True, kw_only=True)
86
+ class IoResultCodes(Message):
87
+ """The ROS2 message ``motoros2_interfaces/msg/IoResultCodes``, as it crosses the seam."""
88
+
89
+ ...
90
+
91
+
92
+ @dataclass(frozen=True, kw_only=True)
93
+ class ListInformJobs_Request(Message):
94
+ """The ROS2 message ``motoros2_interfaces/srv/ListInformJobs_Request``, as it crosses the seam."""
95
+
96
+ ...
97
+
98
+
99
+ @dataclass(frozen=True, kw_only=True)
100
+ class ListInformJobs_Response(Message):
101
+ """The ROS2 message ``motoros2_interfaces/srv/ListInformJobs_Response``, as it crosses the seam."""
102
+
103
+ result_code: int
104
+ message: str
105
+ names: tuple[str, ...]
106
+
107
+
108
+ @dataclass(frozen=True, kw_only=True)
109
+ class MotionReadyEnum(Message):
110
+ """The ROS2 message ``motoros2_interfaces/msg/MotionReadyEnum``, as it crosses the seam."""
111
+
112
+ value: int
113
+
114
+
115
+ @dataclass(frozen=True, kw_only=True)
116
+ class QueueResultEnum(Message):
117
+ """The ROS2 message ``motoros2_interfaces/msg/QueueResultEnum``, as it crosses the seam."""
118
+
119
+ value: int
120
+
121
+
122
+ @dataclass(frozen=True, kw_only=True)
123
+ class QueueTrajPoint_Request(Message):
124
+ """The ROS2 message ``motoros2_interfaces/srv/QueueTrajPoint_Request``, as it crosses the seam."""
125
+
126
+ joint_names: tuple[str, ...]
127
+ point: Any
128
+
129
+
130
+ @dataclass(frozen=True, kw_only=True)
131
+ class QueueTrajPoint_Response(Message):
132
+ """The ROS2 message ``motoros2_interfaces/srv/QueueTrajPoint_Response``, as it crosses the seam."""
133
+
134
+ result_code: QueueResultEnum
135
+ message: str
136
+
137
+
138
+ @dataclass(frozen=True, kw_only=True)
139
+ class ReadGroupIO_Request(Message):
140
+ """The ROS2 message ``motoros2_interfaces/srv/ReadGroupIO_Request``, as it crosses the seam."""
141
+
142
+ address: int
143
+
144
+
145
+ @dataclass(frozen=True, kw_only=True)
146
+ class ReadGroupIO_Response(Message):
147
+ """The ROS2 message ``motoros2_interfaces/srv/ReadGroupIO_Response``, as it crosses the seam."""
148
+
149
+ result_code: int
150
+ message: str
151
+ success: bool
152
+ value: int
153
+
154
+
155
+ @dataclass(frozen=True, kw_only=True)
156
+ class ReadMRegister_Request(Message):
157
+ """The ROS2 message ``motoros2_interfaces/srv/ReadMRegister_Request``, as it crosses the seam."""
158
+
159
+ address: int
160
+
161
+
162
+ @dataclass(frozen=True, kw_only=True)
163
+ class ReadMRegister_Response(Message):
164
+ """The ROS2 message ``motoros2_interfaces/srv/ReadMRegister_Response``, as it crosses the seam."""
165
+
166
+ result_code: int
167
+ message: str
168
+ success: bool
169
+ value: int
170
+
171
+
172
+ @dataclass(frozen=True, kw_only=True)
173
+ class ReadSingleIO_Request(Message):
174
+ """The ROS2 message ``motoros2_interfaces/srv/ReadSingleIO_Request``, as it crosses the seam."""
175
+
176
+ address: int
177
+
178
+
179
+ @dataclass(frozen=True, kw_only=True)
180
+ class ReadSingleIO_Response(Message):
181
+ """The ROS2 message ``motoros2_interfaces/srv/ReadSingleIO_Response``, as it crosses the seam."""
182
+
183
+ result_code: int
184
+ message: str
185
+ success: bool
186
+ value: int
187
+
188
+
189
+ @dataclass(frozen=True, kw_only=True)
190
+ class ResetError_Request(Message):
191
+ """The ROS2 message ``motoros2_interfaces/srv/ResetError_Request``, as it crosses the seam."""
192
+
193
+ ...
194
+
195
+
196
+ @dataclass(frozen=True, kw_only=True)
197
+ class ResetError_Response(Message):
198
+ """The ROS2 message ``motoros2_interfaces/srv/ResetError_Response``, as it crosses the seam."""
199
+
200
+ result_code: MotionReadyEnum
201
+ message: str
202
+
203
+
204
+ @dataclass(frozen=True, kw_only=True)
205
+ class SelectMotionTool_Request(Message):
206
+ """The ROS2 message ``motoros2_interfaces/srv/SelectMotionTool_Request``, as it crosses the seam."""
207
+
208
+ group_number: int
209
+ tool_number: int
210
+
211
+
212
+ @dataclass(frozen=True, kw_only=True)
213
+ class SelectMotionTool_Response(Message):
214
+ """The ROS2 message ``motoros2_interfaces/srv/SelectMotionTool_Response``, as it crosses the seam."""
215
+
216
+ result_code: SelectionResultCodes
217
+ message: str
218
+ success: bool
219
+
220
+
221
+ @dataclass(frozen=True, kw_only=True)
222
+ class SelectionResultCodes(Message):
223
+ """The ROS2 message ``motoros2_interfaces/msg/SelectionResultCodes``, as it crosses the seam."""
224
+
225
+ value: int
226
+
227
+
228
+ @dataclass(frozen=True, kw_only=True)
229
+ class StartPointQueueMode_Request(Message):
230
+ """The ROS2 message ``motoros2_interfaces/srv/StartPointQueueMode_Request``, as it crosses the seam."""
231
+
232
+ ...
233
+
234
+
235
+ @dataclass(frozen=True, kw_only=True)
236
+ class StartPointQueueMode_Response(Message):
237
+ """The ROS2 message ``motoros2_interfaces/srv/StartPointQueueMode_Response``, as it crosses the seam."""
238
+
239
+ result_code: MotionReadyEnum
240
+ message: str
241
+
242
+
243
+ @dataclass(frozen=True, kw_only=True)
244
+ class StartTrajMode_Request(Message):
245
+ """The ROS2 message ``motoros2_interfaces/srv/StartTrajMode_Request``, as it crosses the seam."""
246
+
247
+ ...
248
+
249
+
250
+ @dataclass(frozen=True, kw_only=True)
251
+ class StartTrajMode_Response(Message):
252
+ """The ROS2 message ``motoros2_interfaces/srv/StartTrajMode_Response``, as it crosses the seam."""
253
+
254
+ result_code: MotionReadyEnum
255
+ message: str
256
+
257
+
258
+ @dataclass(frozen=True, kw_only=True)
259
+ class WriteGroupIO_Request(Message):
260
+ """The ROS2 message ``motoros2_interfaces/srv/WriteGroupIO_Request``, as it crosses the seam."""
261
+
262
+ address: int
263
+ value: int
264
+
265
+
266
+ @dataclass(frozen=True, kw_only=True)
267
+ class WriteGroupIO_Response(Message):
268
+ """The ROS2 message ``motoros2_interfaces/srv/WriteGroupIO_Response``, as it crosses the seam."""
269
+
270
+ result_code: int
271
+ message: str
272
+ success: bool
273
+
274
+
275
+ @dataclass(frozen=True, kw_only=True)
276
+ class WriteMRegister_Request(Message):
277
+ """The ROS2 message ``motoros2_interfaces/srv/WriteMRegister_Request``, as it crosses the seam."""
278
+
279
+ address: int
280
+ value: int
281
+
282
+
283
+ @dataclass(frozen=True, kw_only=True)
284
+ class WriteMRegister_Response(Message):
285
+ """The ROS2 message ``motoros2_interfaces/srv/WriteMRegister_Response``, as it crosses the seam."""
286
+
287
+ result_code: int
288
+ message: str
289
+ success: bool
290
+
291
+
292
+ @dataclass(frozen=True, kw_only=True)
293
+ class WriteSingleIO_Request(Message):
294
+ """The ROS2 message ``motoros2_interfaces/srv/WriteSingleIO_Request``, as it crosses the seam."""
295
+
296
+ address: int
297
+ value: int
298
+
299
+
300
+ @dataclass(frozen=True, kw_only=True)
301
+ class WriteSingleIO_Response(Message):
302
+ """The ROS2 message ``motoros2_interfaces/srv/WriteSingleIO_Response``, as it crosses the seam."""
303
+
304
+ result_code: int
305
+ message: str
306
+ success: bool
307
+
@@ -0,0 +1,55 @@
1
+ # SPDX-FileCopyrightText: 2026 Technologie-Initiative SmartFactory KL e.V.
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ """The ROS2 interface package ``neo_msgs2``, as message dataclasses.
6
+
7
+ Generated by `python -m tools.catalog_sync --stubs` from the definition catalog.
8
+ Edit the catalog and regenerate; do not edit this file.
9
+
10
+ ``from opensmi.ros2.runtime.messages.neo_msgs2 import EmergencyStopState`` resolves through
11
+ :func:`~opensmi.ros2.runtime.messages.message_dataclass` at run time and type-checks against the
12
+ generated ``neo_msgs2.pyi`` beside this file. The two halves answer different questions: the stub
13
+ says what the fields *are*, and this module makes sure what you get is the very dataclass every
14
+ Binding carrying that type already holds.
15
+
16
+ Importing a name from here needs the interface package installed, exactly as a Binding on it does
17
+ -- the catalog makes a type describable, never receivable.
18
+ """
19
+
20
+ from __future__ import annotations
21
+
22
+ from typing import TYPE_CHECKING
23
+
24
+ from opensmi.ros2.runtime.messages import message_dataclass
25
+
26
+ if TYPE_CHECKING:
27
+ from opensmi.ros2.runtime.messages import Message
28
+
29
+ _TYPES = {
30
+ "EmergencyStopState": "neo_msgs2/msg/EmergencyStopState",
31
+ "IOBoard": "neo_msgs2/msg/IOBoard",
32
+ "Keypad": "neo_msgs2/msg/Keypad",
33
+ "KinematicsState": "neo_msgs2/msg/KinematicsState",
34
+ "LCDOutput": "neo_msgs2/msg/LCDOutput",
35
+ "RelayBoardV2": "neo_msgs2/msg/RelayBoardV2",
36
+ "RelayBoardV3": "neo_msgs2/msg/RelayBoardV3",
37
+ "SafetyMode": "neo_msgs2/msg/SafetyMode",
38
+ "SafetyState": "neo_msgs2/msg/SafetyState",
39
+ "USBoard": "neo_msgs2/msg/USBoard",
40
+ "USBoardV2": "neo_msgs2/msg/USBoardV2",
41
+ }
42
+
43
+
44
+ def __getattr__(name: str) -> type[Message]:
45
+ """Return the message dataclass one of this package's types is built as."""
46
+ type_name = _TYPES.get(name)
47
+ if type_name is None:
48
+ message = f"module {__name__!r} has no attribute {name!r}"
49
+ raise AttributeError(message)
50
+ return message_dataclass(type_name)
51
+
52
+
53
+ def __dir__() -> list[str]:
54
+ """List what this module answers for, since it has no module-level names of its own."""
55
+ return sorted(_TYPES)