-
Notifications
You must be signed in to change notification settings - Fork 113
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-3027 - implement resource.Named for vision service models #2351
Conversation
Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!
|
Note: merge base coverage results not available, comparing against closest 627dd95~2=(a7318eb) 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.
LGTM, nice
@@ -94,7 +96,7 @@ func NewService( | |||
"model %q does not fulfill any method of the vision service. It is neither a detector, nor classifier, nor 3D segmenter", name) | |||
} | |||
return &vizModel{ | |||
name: name, | |||
Named: name.AsNamed(), |
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!
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.
LGTM! Glad to have learned about it
All vision service models did not actually implement the
resource.Named
interface, and had left it nil. This caused a nil pointer de-reference whenever "Name()" was called on any vision service resource.Manually tested out the fixes with the QA plan for the color detector that originally found the error, and it now works.