Skip to main content

Crate viva_zenoh_api

Crate viva_zenoh_api 

Source
Expand description

The message payloads and topic names the viva GenICam camera services publish, and their clients subscribe to.

This is the contract, not the transport. Despite the crate name, nothing here depends on the zenoh crate: these are plain serde types, so a client can agree with the service on the message format without linking a message broker — and the crate compiles everywhere, including wasm32.

Re-exports§

pub use camera_event::CameraEvent;
pub use camera_event::EventCommand;
pub use camera_event::EventControlRequest;
pub use camera_event::EventFeature;
pub use camera_event::EventMonitorStatus;
pub use camera_event::restore_warnings;
pub use camera_event::setup_error_message;
pub use camera_tools::ConfigurationLoadRequest;
pub use camera_tools::ConfigurationLoaded;
pub use camera_tools::ConfigurationOmission;
pub use camera_tools::ConfigurationSaved;
pub use camera_tools::RegisterData;
pub use camera_tools::RegisterWriteRequest;
pub use evs_header::EVS_HEADER_SIZE;
pub use evs_header::EVS_MAGIC;
pub use evs_header::EvsFormat;
pub use evs_header::EvsHeader;
pub use evs_header::EvsHeaderError;
pub use frame_header::FRAME_MAGIC;
pub use frame_header::FrameHeader;
pub use frame_header::FrameHeaderError;
pub use frame_header::HEADER_SIZE;
pub use frame_metadata::FrameChunk;
pub use frame_metadata::FrameFeature;
pub use frame_metadata::FrameMetadata;
pub use frame_metadata::MAX_FRAME_METADATA_BYTES;
pub use frame_metadata::MAX_FRAME_METADATA_ITEMS;
pub use frame_metadata::MAX_FRAME_METADATA_TEXT;

Modules§

camera_event
GenICam device events — GigE Vision EVENT/EVENTDATA messages and USB3 Vision EVENT_CMDs — and the control that turns their delivery on and off.
camera_tools
A camera’s configuration, saved and restored, and its raw <Register> nodes: the queries behind Viva Studio’s configuration and register tools (backlog ST-50, ST-53).
evs_header
Binary header prepended to every event-vision block on the Zenoh evs key.
frame_header
Binary image envelope on the Zenoh image key.
frame_metadata
Per-frame facts kept in the same packet as their pixels.
keys
Key expression constants and helpers for the GenICam Zenoh API.

Structs§

AcquisitionControlRequest
Request payload for the acquisition/control queryable.
AcquisitionStatus
Acquisition status pushed by the service: once when acquisition starts, once a second while it runs, whether or not frames arrive, a final stopped snapshot when the stream ends, and inactive once the camera has stopped.
BulkReadRequest
Request payload for the nodes/bulk/read queryable.
BulkReadResponse
Response to a nodes/bulk/read query.
CommandResult
Response from an execute queryable.
DeviceAnnounce
Periodic announcement published by the camera service.
DeviceReportRequest
Request payload for the genicam/devices/{id}/report queryable.
DeviceReportResponse
Response to the report queryable: the diagnostic report the service wrote for its device, as plain text, the same report viva-camctl report writes.
DeviceStatus
Device connection status pushed by the service on change.
DeviceXmlResponse
Response to genicam/devices/{id}/xml queryable.
FeatureState
Live state of a GenICam feature at a single point in time.
ImageMeta
Image stream metadata published at acquisition start and on format change.
NodeOpResponse
Generic response for node write, execute, and acquisition control.
NodeSetRequest
Request payload for the nodes/{name}/set queryable.
NodeValueUpdate
Live node value update published by the service on change.
NumericRange
Numeric range for an Integer or Float feature at the current camera state.
StreamCounters
One stream’s counters on the wire: viva_genicam::StreamStats, with the six reasons a packet was ignored summed into one.

Enums§

AcquisitionCommand
What an acquisition control request asks for.

Constants§

ANNOUNCE_EXPIRY
How long a client keeps a camera whose announces have stopped: three missed ANNOUNCE_INTERVALs.
ANNOUNCE_INTERVAL
How often a service re-announces each camera it serves.
API_VERSION
Current GenICam Zenoh API version.

Functions§

gige_device_id
Device id for a GigE Vision camera: cam- followed by its MAC address as twelve lowercase hex digits.
u3v_device_id
Device id for a USB3 Vision camera: cam-u3v-, its vendor and product ids as eight hex digits, then its serial number.