class documentation
class _Observed(CartesianFrame):
Known subclasses: ros2.server.transforms.records._Head
Constructor: _Observed(written, minimum_access_level, **kwargs)
A Location that reports a client's write and ignores this module's own bad-status writes.
A write is announced to on_value_change once opensmi has stored it, which is how a client's pose reaches ROS2. Without a written callback the node is made read-only after creation, because opensmi makes every Cartesian frame writable. This module writes bad statuses on purpose, and OPC UA nulls such a value, so a null value is passed over silently instead of being logged as invalid.
| Method | __init__ |
Remember who to tell about a client's write, if anybody. |
| Async Method | lifecycle |
Take the write bit off a Location nobody may write. |
| Async Method | on |
Keep the children in step, then tell the owner what a client wrote. |
| Instance Variable | _written |
Undocumented |
def __init__(self, *, written:
Callable[ [ Pose], Awaitable[ None]] | None = None, minimum_access_level: int | None = None, **kwargs: Any):
¶
Remember who to tell about a client's write, if anybody.
@lifecycle( after=CartesianFrame.lifecycle_frame)
async def lifecycle_observed(self) -> AsyncGenerator[ None]:
¶
Take the write bit off a Location nobody may write.