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

RSDK-9164 Configured services should not overwrite builtin services #4501

Conversation

biotinker
Copy link
Member

If a robot has components which depend upon the builtin motion service, and an additional motion service is configured, the builtin service breaks.

This PR allows configured motion services to coexist with the builtin service.

Tested by creating multiple motion services on a robot, and creating a module which depended upon all of them.

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Oct 29, 2024
@cheukt
Copy link
Member

cheukt commented Oct 29, 2024

can you add a test?

func TestDefaultServiceReconfigure(t *testing.T) {
could be a good reference

@raybjork
Copy link
Member

This makes sense and is good with me but I want to add the disclaimer that I haven't thought through all the implications of this code and potential edge cases so will defer to @cheukt on this

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Oct 29, 2024
@biotinker
Copy link
Member Author

biotinker commented Oct 29, 2024

@cheukt Added the requested test. While adding the test I noticed that the changes I made actually only allowed zero or one builtin services to be configured. I have also updated so N services may now be configured, and am testing accordingly.

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Oct 30, 2024
Copy link
Member

@cheukt cheukt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@biotinker biotinker merged commit 2cece34 into viamrobotics:main Oct 30, 2024
18 checks passed
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.

4 participants