class documentation

class ParameterWatch:

Constructor: ParameterWatch(node, facet, release)

View In Hierarchy

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 __aiter__(self) -> AsyncIterator[ParameterUpdate]:

Return an iterator yielding updates until the watch is closed.

def __init__(self, *, node: str, facet: ParameterFacet, release: Callable[[ParameterWatch], None]):

Bind a watch to one node's name and the facet's deregistration.

def __repr__(self) -> str:

Return a representation naming the node and the watch's state.

async def close(self):

End this watch, and with it the shared subscription if it was the last one.

Idempotent.

def deliver(self, update: ParameterUpdate):

Hand this watch one update. Only the facet's demux calls it.

async def receive(self) -> ParameterUpdate:

Await the next parameter change on this node.

Raises
SubscriptionClosedErrorWhen the watch has been closed.
@property
closed: bool =

Return whether this watch's lifetime has ended.

@property
node: str =

Return the fully qualified ROS2 node name this watch follows.

async def _stream(self) -> AsyncIterator[ParameterUpdate]:

Yield updates until the watch is closed, then stop cleanly.

_arrival =

Undocumented

_closed: bool =

Undocumented

_facet =

Undocumented

_node =

Undocumented

_release =

Undocumented

_updates: deque[ParameterUpdate] =

Undocumented