Service: States

This page documents an earlier firmware release. Read this page for the latest release
This API is officially released and maintained.

An RPC service to request a stream of states messages. If a pipeline is already running, it will be used to stream the data. If no pipeline is running, it will be started first and then the stream will start. NOTE: in this second case, the pipeline will also be automatically stopped once there are no more clients requesting any stream type from the module.

Table 1. Available methods
Method Request Response

Stream

google.protobuf.Empty

StatesStreamResponseStream

Get

google.protobuf.Empty

StatesGetResponse

PreviewStream

StatesPreviewStreamRequest

StatesPreviewStreamResponseStream

Stream

A method to get a stream of states messages from the pipeline

Response Stream

A response for getting a stream of states messages from the running pipeline

Table 2. Available fields in blickfeld.percept_processing.services.StatesStreamResponse
Field Type Default Unit

states

data.States

-

-

The current states with the information detected in the scene.

Get

A method to get states messages from the pipeline

Response

Get response containing states message

Table 3. Available fields in blickfeld.percept_processing.services.StatesGetResponse
Field Type Default Unit

states

data.States

-

-

The current states with the information detected in the scene.

PreviewStream

Streams the state a zone would have, for a zone which does not have to be stored.

The zone travels with the request, so it can be tried out - placed, sized, tuned - against what the device sees before it is created, and an edit of a stored zone can be tried before it is applied. Every frame of the running pipeline is evaluated by the zone’s own algorithm, as it would be once stored, and the configured zones are not affected.

Occupancy, security, object based security and traversal security zones are previewed in a security setup, occupancy and volume zones in a volume setup. A traffic lane answers UNIMPLEMENTED, a zone the running setup does not evaluate FAILED_PRECONDITION. Injected states are not previewed. An object which is already tracked when the stream starts is evaluated as if it had just appeared.

The coverage of a security, object based security or traversal security zone is measured even while it configures no minimum coverage, so that how much of the zone the sensor sees is known before its tampering alarm is switched on. On a swarm leader every device measures it on its own beams, and the leader decides over them as for a stored zone; zone_coverage then holds the beams of all of them.

Request

Request for the preview of a zone

Table 4. Available fields in blickfeld.percept_processing.services.StatesPreviewStreamRequest
Field Type Default Unit

zone

percept_pipeline.config.ZoneAlgorithm

-

-

The zone to preview. It does not have to be a configured one.

Response Stream

A frame of the preview of a zone

Table 5. Available fields in blickfeld.percept_processing.services.StatesPreviewStreamResponse
Field Type Default Unit

states

data.States

-

-

The state of the previewed zone, keyed by its uuid, as the stream of the configured zones reports them. Holds no entry for a frame on which the zone is switched off by an occupancy zone it is linked to.

zone_coverage

optional core_processing.data.Frame

-

-

The beams which reach the zone, drawn where they enter it. A blocked beam is a hole in it.

Empty when no beam of the sensor reaches the zone, which then reports no coverage. Absent where the coverage of the zone is not measured, see PreviewStream.