The project's namespace, and the one event it raises about itself.
A BindingEvent is the only OPC UA event this project defines. Its subject is always a Binding: a diagnostic changing level, a QoS mismatch, a failed publish, a reached cap, a key collision, a lifecycle node moved by something other than us. It carries the Binding name, the ROS2 path and a code. A fault with a state worth reading has a variable for it; the rest are moments, and a moment is an event.
The event type subtypes the base event type, not the house AlertType, which would need the OPC UA condition lifecycle that the stack underneath hardly implements. The code goes in its own Code field, like the house alert's ErrorCode. The event is emitted by the item's Notification node with SourceNode and SourceName set to the item itself.
The namespace is shipped as XML and registered through opensmi.server's nodeset handling; NodeIds
are read off ~opensmi.ros2.server.nodesets.SmartFactoryROS2NodeIds. Events are raised on
asyncua through the server's ua_server. ROS2EventsMixin puts the BindingEvent on the
item's own Notification node, where opensmi fires its ua_log_* events.
ROS2ModelChangeMixin puts OPC UA's GeneralModelChangeEvent on the spatial-object list,
the node OPC 10000-210 names for it.
A client has to subscribe to the emitting node itself. asyncua does not propagate events up the HasNotifier hierarchy, so a subscription to the Server object receives none of them, and the failure is silence.
| Class | |
One BindingEvent, kept so that it can be read after the moment it was. |
| Class | |
Gives a machinery item the BindingEvent, on its own Notification node. |
| Class | |
Adds the standard model-change event, on the node the companion specification names. |
| Class | |
The house severity bands, which are the only ones this project uses. |
| Async Function | import |
Register this project's nodeset with a server, import it once, and return its namespace index. |
| Function | root |
Return the Machine a machinery item reports to, which for a Machine is itself. |
| Constant | NODESET |
Where the nodeset XML that defines everything in NAMESPACE_URI is installed. |
| Constant | RECENT |
How many BindingEvents one Machine keeps, so that they can be asked for after the fact. |
| Constant | _NODE |
The Property OPC UA Part 3 defines and OPC 10000-210 makes mandatory on the list. |
Register this project's nodeset with a server, import it once, and return its namespace index.
The import is idempotent, so a second Machine in the same process reuses the first one's.
| Parameters | |
server:Server | The opensmi server to import into. |
| Returns | |
int | Undocumented |
Where the nodeset XML that defines everything in NAMESPACE_URI is installed.
| Value |
|
How many BindingEvents one Machine keeps, so that they can be asked for after the fact.
A client that was not subscribed when an event fired cannot learn of it, so the introspection Component hands back the last N from this ring. It is a ring so that memory does not grow with every diagnostic transition; 200 covers a boot and the minutes after it.
| Value |
|