-
Notifications
You must be signed in to change notification settings - Fork 67
RSDK-11728 — Remove get_image, render_frame, and format #1056
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
Conversation
|
Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!
|
| assert is_monitored is True | ||
|
|
||
| is_monitored = client._is_safety_heartbeat_monitored("/viam.component.camera.v1.CameraService/GetImage") | ||
| is_monitored = client._is_safety_heartbeat_monitored("/viam.component.camera.v1.CameraService/GetImages") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what this is and not sure if we can directly substitute GetImages here
…at enum field completely removed
| "camera": { | ||
| "func": "get_image", | ||
| "packagePath": "viam.components" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not remove this, but replace with get_images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it. Addressed
| camera = self.get_resource(name) | ||
| async def GetImage(self, stream: Stream) -> None: | ||
| """Deprecated: Use GetImages instead.""" | ||
| raise NotImplementedError("GetImage is deprecated. Use GetImages instead.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise NotSupportedError instead:
from viam.errors import NotSupportedError
...
raise NotSupportedError("GetImage is deprecated. Use GetImages instead.")There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NotSupportedError will bubble up the gRPC stack appropriately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it. Addressed
| await stream.send_message(response) | ||
| async def RenderFrame(self, stream: Stream) -> None: | ||
| """Deprecated: Use GetImages instead.""" | ||
| raise NotImplementedError("RenderFrame is deprecated. Use GetImages instead.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here re: NotSupportedError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it. Addressed
https://viam.atlassian.net/browse/RSDK-11728
Not for merging immediately; getting this ready for Jan 5th when all dependent code has been updated.