Skip to content

Conversation

@hexbabe
Copy link
Member

@hexbabe hexbabe commented Dec 16, 2025

https://viam.atlassian.net/browse/RSDK-11728

Not for merging immediately; getting this ready for Jan 5th when all dependent code has been updated.

@hexbabe hexbabe requested a review from a team as a code owner December 16, 2025 21:13
@github-actions
Copy link
Contributor

Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!

component function
base is_moving
board gpio_pin_by_name
button push
genericcomponent do_command
camera get_image
encoder get_position
motor is_moving
sensor get_readings
servo get_position
switch get_position
arm get_end_position
gantry get_lengths
gripper is_moving
movement_sensor get_linear_acceleration
input_controller get_controls
audio get_properties
pose_tracker get_poses
power_sensor get_power
motion get_pose
vision get_properties
mlmodel metadata
genericservice do_command
slam get_point_cloud_map
audio_in get_properties
audio_out get_properties

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")
Copy link
Member Author

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

@hexbabe hexbabe requested a review from njooma December 16, 2025 21:48
@hexbabe hexbabe changed the title RSDK-11728 — get_image and render_frame removal RSDK-11728 — Remove get_image, render_frame, and format Dec 17, 2025
@hexbabe hexbabe changed the title RSDK-11728 — Remove get_image, render_frame, and format RSDK-11728 — Remove get_image and render_frame Dec 17, 2025
@hexbabe hexbabe changed the title RSDK-11728 — Remove get_image and render_frame RSDK-11728 — Remove get_image, render_frame, and format Dec 17, 2025
Comment on lines 25 to 28
"camera": {
"func": "get_image",
"packagePath": "viam.components"
},
Copy link
Member

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

Copy link
Member Author

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.")
Copy link
Member

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.")

Copy link
Member

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

Copy link
Member Author

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.")
Copy link
Member

Choose a reason for hiding this comment

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

Same here re: NotSupportedError

Copy link
Member Author

Choose a reason for hiding this comment

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

got it. Addressed

@hexbabe hexbabe requested a review from njooma December 31, 2025 19:43
@hexbabe hexbabe merged commit 9878f0d into viamrobotics:main Jan 5, 2026
13 checks passed
@hexbabe hexbabe deleted the RSDK-11728 branch January 5, 2026 15:22
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.

2 participants