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/EVENTDATAmessages and USB3 VisionEVENT_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
evskey. - 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§
- Acquisition
Control Request - Request payload for the
acquisition/controlqueryable. - Acquisition
Status - Acquisition status pushed by the service: once when acquisition starts,
once a second while it runs, whether or not frames arrive, a final
stoppedsnapshot when the stream ends, andinactiveonce the camera has stopped. - Bulk
Read Request - Request payload for the
nodes/bulk/readqueryable. - Bulk
Read Response - Response to a
nodes/bulk/readquery. - Command
Result - Response from an
executequeryable. - Device
Announce - Periodic announcement published by the camera service.
- Device
Report Request - Request payload for the
genicam/devices/{id}/reportqueryable. - Device
Report Response - Response to the
reportqueryable: the diagnostic report the service wrote for its device, as plain text, the same reportviva-camctl reportwrites. - Device
Status - Device connection status pushed by the service on change.
- Device
XmlResponse - Response to
genicam/devices/{id}/xmlqueryable. - Feature
State - Live state of a GenICam feature at a single point in time.
- Image
Meta - Image stream metadata published at acquisition start and on format change.
- Node
OpResponse - Generic response for node write, execute, and acquisition control.
- Node
SetRequest - Request payload for the
nodes/{name}/setqueryable. - Node
Value Update - Live node value update published by the service on change.
- Numeric
Range - Numeric range for an Integer or Float feature at the current camera state.
- Stream
Counters - One stream’s counters on the wire:
viva_genicam::StreamStats, with the six reasons a packet was ignored summed into one.
Enums§
- Acquisition
Command - 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.