-
Notifications
You must be signed in to change notification settings - Fork 111
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-9677] add GetModelsFromModules to robot interface #4676
base: main
Are you sure you want to change the base?
Conversation
robot/impl/local_robot.go
Outdated
@@ -1065,6 +1065,24 @@ func (r *localRobot) discoverRobotInternals(query resource.DiscoveryQuery) (inte | |||
} | |||
} | |||
|
|||
func (r *localRobot) GetModelsFromModules(ctx context.Context) ([]*resource.ModuleModelDiscovery, 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.
@cheukt @zaporter-work wasn't sure whether everything should live at the robot level or if I should add something to the module manager to better surface these messages.
Also not sure who I should be having to review this stuff, I assumed it would be cheuk but if theres a more appropriate person lmk
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 think having more of the logic in the modmanager would make a bit more sense and make it easier to test. I can review but I didn't implement the original code nor am I the end consumer, would be good to have @zaporter-work as a reviewer too
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.
kk moved to module manager. Just need to add tests for the server & manager and it should be ready
Initial implementation of GetModelsFromModules in Go. Currently working on the discovery service in a separate branch to make it easier on reviewers.
Still needs tests but I think its implemented everywhere else?
ticket: https://viam.atlassian.net/browse/RSDK-9677