Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

squid: abc: Add the AbstractCamera interface, and a simulated camera implementation #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ianohara
Copy link
Collaborator

@ianohara ianohara commented Jan 2, 2025

This adds the AbstractCamera and simulated camera, but without touching existing machinery. A follow up PR will integrate this into the system.

Tested by: unit test on simulated camera creation and basic functionality.

@ianohara ianohara force-pushed the ian/camera-interface branch from 4bd7a7b to 166ae9b Compare January 20, 2025 19:17
beniroquai pushed a commit to beniroquai/octopi-research that referenced this pull request Jan 20, 2025
@ianohara ianohara force-pushed the ian/camera-interface branch 2 times, most recently from 39f19ea to 64fd872 Compare February 4, 2025 02:13
@ianohara ianohara force-pushed the ian/camera-interface branch from 64fd872 to 5d6dbcb Compare February 18, 2025 01:08
_log = squid.logging.get_logger("squid.camera.utils")


def get_camera(config: CameraConfig, simulated: bool = False) -> AbstractCamera:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not actually AbstractCamera, but in an effort to make this not a totally insane single PR I'm breaking it up into a few.

# some cameras had in the pre-AbstractCamera days.
self._missing_methods = {}

class MissingAttribImpl:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed once the migration to AbstractCamera is done, but is useful for finding missed migrations.

@ianohara ianohara force-pushed the ian/camera-interface branch 2 times, most recently from 5ddf111 to 309e85a Compare February 25, 2025 03:27
@ianohara ianohara force-pushed the ian/camera-interface branch from 309e85a to e6ffbaf Compare March 3, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant