Skip to content

Harmonize cam_id vs camera_ip naming in pyro_camera_api #368

Description

@MateoLostanlen

Several call sites in pyro_camera_api use cam_id as a loop variable when iterating dicts keyed by camera IP (CAMERA_REGISTRY, PATROL_FLAGS, STUCK_CHECK_FLAGS, stream_workers, stream_processes, RAW_CONFIG, ...). This is misleading: cam_id is used elsewhere in the project for the camera-pose identifier ("{ip}_{p}"), not for plain IPs.

The loop functions in camera/patrol.py and camera/stuck_detector.py already use camera_ip correctly — the call sites should match.

Files to update: pyro_camera_api/main.py, api/routes_stream.py, api/routes_cameras.py.

Pure rename, no behavior change. Spotted while reviewing #360.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions