Skip to content

Conversation

@hexbabe
Copy link
Member

@hexbabe hexbabe commented Dec 31, 2025

This PR is stacked on top of RSDK-11831 and RSDK-11732 to reduce the diff surface area without actually merging the former two PRs.

It deprecates GetImage (logging deprecation warning), format and replaces all usages throughout RDK. And deletes GetImage testing.

@hexbabe hexbabe requested a review from oliviamiller January 2, 2026 15:15
return nil, camera.ImageMetadata{}, err
}
return imgBytes, resMetadata, nil
return nil, camera.ImageMetadata{}, errors.New("method GetImage is deprecated; please utilize 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.

Should this be a warning? My understanding is that deprecation should be keeping the existing behavior for a period of time before fully removing.

Copy link
Member Author

Choose a reason for hiding this comment

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

great point. Full deletion should come later

Copy link
Member Author

Choose a reason for hiding this comment

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

done


// GetImage returns an image from a camera of the underlying robot. If a specific MIME type
// is requested and is not available, an error is returned.
func (s *serviceServer) GetImage(
Copy link
Member

Choose a reason for hiding this comment

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

why fully removing it here but keeping it in the interface?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm gonna change it to keep all the definitions but log deprecation

Copy link
Member Author

Choose a reason for hiding this comment

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

done

}

return resp.Image, ImageMetadata{MimeType: resp.MimeType}, nil
return nil, ImageMetadata{}, errors.New("method GetImage is deprecated; please utilize 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 question here about deprecation meaning

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm gonna change it to keep all the definitions but log deprecation

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@hexbabe hexbabe force-pushed the RSDK-11726 branch 3 times, most recently from efbc93d to 58ef59f Compare January 2, 2026 16:31
@hexbabe hexbabe requested a review from a team as a code owner January 5, 2026 15:16
@hexbabe hexbabe requested review from allisonschiang and lia-viam and removed request for a team January 5, 2026 15:16
@hexbabe hexbabe closed this Jan 5, 2026
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.

6 participants