Expand description
OPC UA address space for the camera stack.
§⚠ READ THIS BEFORE EXPOSING ANY NODE
OPC UA is how this data reaches a PLC. A PLC is how machinery moves. That combination is exactly the mistake this crate is built to make hard.
Camera IVS/SMD detection is an OPERATOR AID. It is not safety-rated: no SIL level, no EN 50128 / EN 50129 assessment. It degrades in fog, rain, backlight and at range. It MUST NOT be used as an interlock, a permissive, or a condition for machine motion. Absence of a detection means nothing.
So the node naming here is deliberately unambiguous, and deliberately ugly:
Camera_front_Detection_Motion_NotSafetyRated
Camera_front_Health_NotSafetyRatedAn integrator browsing the address space cannot reach one of these values
without reading NotSafetyRated in the identifier itself. A comfortable
name like Camera1.MotionDetected invites exactly the wiring this notice
forbids, and a description field does not help — nobody reads descriptions
while dragging a tag into a ladder rung.
Every node also carries the full notice in its description, and
NodeSpec::is_safe_for_interlock returns false for all of them.
§Scope
This crate models the address space: node ids, browse names, descriptions,
data types and the mapping from workspace types to OPC UA values. The
transport is supplied by an OpcUaBackend implementation, so the model —
which is where the safety-critical naming decisions live — is testable
without standing up a server.
Structs§
- Node
Spec - One node in the address space.
Enums§
Constants§
- NOT_
SAFETY_ RATED - The suffix every detection and health node carries.
- SAFETY_
NOTICE - The notice attached to every node’s description.
Traits§
- OpcUa
Backend - The transport under the address space.
Functions§
- capability_
node - A node reporting whether a capability was confirmed.
- capability_
updates - Map a capability profile onto its nodes and values.
- clock_
offset_ node - A node carrying a camera’s clock offset in seconds.
- declare_
camera - Declare every node for a camera on a backend.
- detection_
node - A node carrying a detection, named so it cannot be mistaken for safe.
- event_
update - Map an event onto its node and value.
- health_
node - A node carrying a camera’s health verdict.
- health_
update - Map a health report onto its node and value.
- nodes_
for_ camera - Every node for one camera, given the event kinds it may report.
- severity_
code - Severity as an OPC UA-friendly integer, matching the enum’s ordering.