attachment¶
Attachment utilities compatible with rmw_zenoh / ros-z.
Binary format (little-endian), matching our existing implementation: u64 sequence_number u64 timestamp_ns u8 gid_len u8[gid_len] gid
Used for: - Topic publications (publisher attachment) - Service requests/responses (required for correlation; server replies with the same sequence_id+gid)
Attachment
¶
Service/topic attachment compatible with rmw_zenoh.
Attributes:
| Name | Type | Description |
|---|---|---|
sequence_id |
int
|
Per-client/publisher sequence number. |
timestamp_ns |
int
|
Source timestamp in nanoseconds. |
gid |
bytes
|
Source GID (bytes, length <= 255). |
Source code in zenoh_ros2_sdk/attachment.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |