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 stop_configuration_service #6

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

Conversation

Rezenders
Copy link

@marioney I want to add the ability to stop configurations.
I want to use this in the case that a FuncDesign has other Functions as dependency. So the dependent Functions are triggered when a FunctionDesign needs it and then when the parent FunctionDesign is reconfigured I want to have the ability to stop the dependent Functions. Something like in the figure below.
Does this make sense?
I tested this code and it seems to work.

image

kill_node(node)
rospy.loginfo("Stopping node %s" % str(node))
rospy.sleep(2)
self.stop_configuration()
Copy link
Collaborator

Choose a reason for hiding this comment

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

wouldn't this fail because the req argument is missing?

maybe create a separate function for the service callback, and then just call the stop_configuration() so it's not conflicting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants