Fields
str
The message type
callable
Optional function for custom message processing
The most recently published/received message
Constructor
Signature
- “msg_type”: The message type (e.g., “Bool”, “Twist”, “Pose”)
- “fn”: The function to process the message }
dict
required
Configuration dictionary for the client
dict, optional
Dictionary of agent parameters. Defaults to None.
Optional shared Zenoh session. Defaults to None.
Methods
getLatestMessage()
Signature
None if no
message was received within the timeout.
get_msg()
Signature
msg_cb()
Signature
required
The Zenoh sample received from the subscription.
process_latest_msg()
Signature
publish()
Signature
required
Raw bytes to publish on the configured topic.
publish_msg()
Signature
required
The message to publish (can be a pycdr2 IdlStruct, dict, or primitive)
run()
Signature
stop()
Signature