compas_eve.zenoh
¤
Classes¤
ZenohTransport
¤
ZenohTransport(
config: Config | None = None,
codec: MessageCodec | None = None,
*args: Any,
**kwargs: Any
)
Zenoh transport allows sending and receiving messages using an Apache Zenoh router.
Parameters:
-
config(Config | None, default:None) –The Zenoh configuration to use. If not provided, a default
zenoh.Config()will be used. -
codec(MessageCodec | None, default:None) –The codec to use for encoding and decoding messages. If not provided, defaults to JsonMessageCodec.
Functions¤
advertise
¤
on_ready
¤
on_ready(callback: Callable) -> None
Allows to hook-up to the event triggered when the connection is established.
Parameters:
-
callback(Callable) –Function to invoke when the connection is established.