Skip to content
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

add GetModelsFromModules to robot interface #4676

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JohnN193
Copy link
Member

@JohnN193 JohnN193 commented Jan 3, 2025

Initial implementation of GetModelsFromModules in Go. Currently working on the discovery service in a separate branch to make it easier on reviewers.

Still needs client/server implementations and tests

ticket: https://viam.atlassian.net/browse/RSDK-9620

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Jan 3, 2025
@@ -1065,6 +1065,24 @@ func (r *localRobot) discoverRobotInternals(query resource.DiscoveryQuery) (inte
}
}

func (r *localRobot) GetModelsFromModules(ctx context.Context) ([]*resource.ModuleModelDiscovery, error) {
Copy link
Member Author

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

Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants