RSDK-11728 — Remove get_image, render_frame, and format#1056
Conversation
|
Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!
|
50afeab to
17eba43
Compare
17eba43 to
5ff4f8a
Compare
| 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.
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.
do not remove this, but replace with get_images
There was a problem hiding this comment.
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.
raise NotSupportedError instead:
from viam.errors import NotSupportedError
...
raise NotSupportedError("GetImage is deprecated. Use GetImages instead.")There was a problem hiding this comment.
NotSupportedError will bubble up the gRPC stack appropriately
There was a problem hiding this comment.
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.
Same here re: NotSupportedError
There was a problem hiding this comment.
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.