pyroengine.sensors

The sensors module provides control over perception sensors connected to the system.

class pyroengine.sensors.ReolinkCamera(ip_address: str, username: str, password: str, cam_type: str, cam_poses: List[int] | None = None, protocol: str = 'https')[source]

A controller class for interacting with Reolink cameras.

Variables:
  • ip_address (str) – IP address of the Reolink camera.

  • username (str) – Username for accessing the camera.

  • password (str) – Password for accessing the camera.

  • cam_type (str) – Type of the camera, e.g., ‘static’ or ‘ptz’ (pan-tilt-zoom).

  • cam_poses (Optional[List[int]]) – List of preset positions for PTZ cameras.

  • protocol (str) – Protocol used for communication, defaults to ‘https’.

capture(pos_id)[source]

Captures an image from the camera. Moves to position pos_id if provided.

move_camera(operation, speed, idx)[source]

Moves the camera based on the operation type and speed.

move_in_seconds(s, operation, speed)[source]

Moves the camera for a specific duration and then stops.

get_ptz_preset()[source]

Retrieves preset positions for a PTZ camera.

set_ptz_preset(idx)[source]

Sets a PTZ preset position using an ID.