The inward mirror: ROS2 messages arrive, and a container's variables follow.
A Mirror keeps a UA variable container in sync with a foreign source, and a Binding is the declaration that says which source. This mixin is the ROS2 to OPC UA direction, split by direction and not by container, so a topic read into Monitoring and an action's feedback read into the same place are one job on two sources. For each Binding it opens one subscription through the Runtime, asks the mutation chokepoint for the Binding's nodes from the Projection's plan, writes what arrives, derives the status code from the subscription's publisher count, and raises one BindingEvent per QoS incompatibility. It holds no QoS (an adaptation swaps the rclpy subscription beneath a handle this mirror keeps) and no Nodes (it keeps the rendered plan, which knows where each value goes).
A Binding has its nodes at boot even when its topic is absent from the graph, because the shape
comes from the declared type and a node that appears later is one a client's subscription never
recovers. Before the first message a client reads the plan's typed zero under
BadNoCommunication (nothing publishes) or BadWaitingForInitialData (a publisher, no sample);
the rule is opensmi.ros2.server.status's. A Binding that declares no type cannot subscribe,
so it has no nodes at boot and waits on the Runtime's graph facet. When its topic appears it
subscribes and gains its nodes through the chokepoint, and the watch closes when the last such
Binding is bound.
| Class | |
Keeps a machinery item's Monitoring variables in sync with the topics it declared. |
| Constant | AMBIGUOUS |
What an undeclared-type Binding reports when its topic carries more than one type. |
| Constant | PAYLOAD |
What a Binding reports when a bulk payload reached this server's byte-string ceiling. |
| Constant | UNUSABLE |
What an undeclared-type Binding reports when the type its topic carries cannot be bound. |
| Class | _ |
One Binding, live: its subscription, what to write where, and the tasks doing it. |
| Async Function | _stopped |
Stop following one Binding and close its subscription. Idempotent. |
What an undeclared-type Binding reports when its topic carries more than one type.
It is reported and waited out, not resolved. The Binding stays unbound and binds if the disagreement goes away.
| Value |
|
What a Binding reports when a bulk payload reached this server's byte-string ceiling.
The cap itself is applied by the Projection. The event is reported once per Binding, so a 100 Hz stream does not become an event storm.
| Value |
|
What an undeclared-type Binding reports when the type its topic carries cannot be bound.
For a declared type these faults (a missing interface package, a selection matching nothing, a field with no rendering) are fatal at init. Here the type arrived at run time, so the fault is reported and the Binding is given up on.
| Value |
|