-
Notifications
You must be signed in to change notification settings - Fork 114
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
[RSDK-9520] Refactor NextPointCloud -> PointCloud and add extra
param
#4628
Conversation
…date related tests This commit updates the camera interface by renaming the method `NextPointCloud` to `PointCloud`, reflecting a more consistent naming convention. All instances of the method across various files, including tests and implementations, have been modified accordingly. The new method signature includes the `extra` parameter to match the proto API, enhancing flexibility and aligning the interfaces. Changes include: - Updated method definitions and calls in `camera.go`, `client.go`, `videosourcewrappers.go`, and other related files. - Adjusted test cases to use the new method name and signature. This refactor improves code clarity and prepares the codebase for further updates to point cloud processing.
Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!
|
// a part of a sequence. In the future, there could be streaming of point clouds. | ||
NextPointCloud(ctx context.Context) (pointcloud.PointCloud, error) | ||
PointCloud(ctx context.Context, extra map[string]interface{}) (pointcloud.PointCloud, error) |
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.
Bro... I just realized this thing has a mimetype and returns bytes too....
https://github.com/viamrobotics/api/blob/a97363bad4477f2a2320c28be0d12447d9a81f89/proto/viam/component/camera/v1/camera.proto#L107
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.
no.
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.
noooooooooo
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.
We are ok to handle mimetype
inclusion in another PR? There are no consequences wrt data capture by adding in extra
to the interface method here?
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.
We are ok to handle mimetype inclusion in another PR?
If we are going to break the same interface I'd rather not do it twice.
Refactor camera interface: rename NextPointCloud to PointCloud and update related tests
This PR updates the camera interface by renaming the method
NextPointCloud
toPointCloud
, reflecting a more consistent naming convention. All instances of the method across various files, including tests and implementations, have been modified accordingly. The new method signature includes theextra
parameter to match the proto API, enhancing flexibility and aligning the interfaces.Changes include:
camera.go
,client.go
,videosourcewrappers.go
, and other related files.This refactor improves code clarity and prepares the codebase for further updates to point cloud processing.