One machinery item's required Bindings, as the wait and the watch that follow from them.
Held by its ROS2StartupSkill. wait is called from the starting handler and
close from the halting one and from shutdown. The graph watch and the loss watcher exist
only between them.
| Method | __init__ |
Resolve what this item will wait for, and refuse an item that could not report it. |
| Async Method | close |
Stop watching and let go of the graph. Idempotent. |
| Async Method | wait |
Wait for every required Binding, then keep an eye on them. |
| Property | prerequisites |
Return what this item's StartupSkill waits for, one entry per required Binding. |
| Property | watching |
Return whether the gate is still following its prerequisites after a startup. |
| Async Method | _follow |
Report a prerequisite that goes away after startup, and never act on it. |
| Async Method | _open |
Start reading the graph, if anything here can only be answered from it. |
| Async Method | _report |
Fire one BindingEvent, and never let the reporting be the fault. |
| Async Method | _report |
Announce one prerequisite that missed its own deadline. |
| Instance Variable | _emit |
Undocumented |
| Instance Variable | _item |
Undocumented |
| Instance Variable | _lost |
Undocumented |
| Instance Variable | _prerequisites |
Undocumented |
| Instance Variable | _watch |
Undocumented |
| Instance Variable | _watcher |
Undocumented |
Resolve what this item will wait for, and refuse an item that could not report it.
This is resolved at init, not at the first start, because both failures are declaration errors. Only how to ask is resolved here, never the answer.
| Raises | |
DeclarationError | When a required Binding's kind has no answer to what Satisfied means for it, or when the item cannot raise a BindingEvent. |
Stop watching and let go of the graph. Idempotent.
Called on the way to Halted and again at shutdown, for a Component torn down while the process goes on serving.
Wait for every required Binding, then keep an eye on them.
It re-runs on every start, so a resume after a crashed stack cannot claim Running on an old check.
| Raises | |
OpenSmiRuntimeError | When anything missed its deadline, carrying
REQUIRED_BINDING_ABSENT as its code. |
Start reading the graph, if anything here can only be answered from it.
The watch keeps the facet polling during the wait, and the read stops a service that is already there from costing a poll interval. Machines with only topic, parameter or node Bindings open neither.