-
Notifications
You must be signed in to change notification settings - Fork 126
RSDK-11726 — (STACKED) Deprecate GetImage and Format in Go SDK/RDK #5626
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
| return nil, camera.ImageMetadata{}, err | ||
| } | ||
| return imgBytes, resMetadata, nil | ||
| return nil, camera.ImageMetadata{}, errors.New("method GetImage is deprecated; please utilize 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.
Should this be a warning? My understanding is that deprecation should be keeping the existing behavior for a period of time before fully removing.
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.
great point. Full deletion should come later
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.
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( |
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.
why fully removing it here but keeping it in the interface?
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.
I'm gonna change it to keep all the definitions but log deprecation
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.
done
components/camera/client.go
Outdated
| } | ||
|
|
||
| return resp.Image, ImageMetadata{MimeType: resp.MimeType}, nil | ||
| return nil, ImageMetadata{}, errors.New("method GetImage is deprecated; please utilize 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 question here about deprecation meaning
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.
I'm gonna change it to keep all the definitions but log deprecation
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.
done
efbc93d to
58ef59f
Compare
…h in stream server (viamrobotics#5603)
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.