class documentation
One consumer's view of one ROS2 node's parameter changes, and its lifetime.
Handed out by ParameterFacet.watch. Close it when done: the shared subscription closes
with the last watch.
| Method | __aiter__ |
Return an iterator yielding updates until the watch is closed. |
| Method | __init__ |
Bind a watch to one node's name and the facet's deregistration. |
| Method | __repr__ |
Return a representation naming the node and the watch's state. |
| Async Method | close |
End this watch, and with it the shared subscription if it was the last one. |
| Method | deliver |
Hand this watch one update. Only the facet's demux calls it. |
| Async Method | receive |
Await the next parameter change on this node. |
| Property | closed |
Return whether this watch's lifetime has ended. |
| Property | node |
Return the fully qualified ROS2 node name this watch follows. |
| Async Method | _stream |
Yield updates until the watch is closed, then stop cleanly. |
| Instance Variable | _arrival |
Undocumented |
| Instance Variable | _closed |
Undocumented |
| Instance Variable | _facet |
Undocumented |
| Instance Variable | _node |
Undocumented |
| Instance Variable | _release |
Undocumented |
| Instance Variable | _updates |
Undocumented |
def __init__(self, *, node:
str, facet: ParameterFacet, release: Callable[ [ ParameterWatch], None]):
¶
Bind a watch to one node's name and the facet's deregistration.
Await the next parameter change on this node.
| Raises | |
SubscriptionClosedError | When the watch has been closed. |