Skip to content

device_server: FloatingDeviceMixin in functions and controllers #204

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

Open
dstoychev opened this issue Apr 26, 2021 · 2 comments
Open

device_server: FloatingDeviceMixin in functions and controllers #204

dstoychev opened this issue Apr 26, 2021 · 2 comments

Comments

@dstoychev
Copy link
Collaborator

At the moment there doesn't seem to be a way to indirectly use -- in a user-defined function or as a subdevice of Controller -- classes which inherit from FloatingDeviceMixin. The main issue seems to be keeping track of indices across multiple processes, but there's also the matter of UIDs and how floating devices are served. Perhaps it would be best to create some sort of shared data structure, a sort of a floating device depot, which multiple processes can read and write. To achieve complete automation of the index selection, the FloatingDeviceMixin (or its derivatives) class should implement the synchronisation logic, using the suggested shared data structure.

@carandraug
Copy link
Collaborator

For a user defined function, at the moment the solution is for that function to do the assignment of each device itself. For controller, I don't understand how its subdevices can be floating devices. Do you have a specific use case for this?

@dstoychev
Copy link
Collaborator Author

Floating devices seem quite popular among cameras, so if a controller has one as a subdevice then this is an easy way for it to have a floating device too. Theoretical example: PR #133.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants