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

Question about setting up new trees / resetting existing trees #221

Open
sea-bass opened this issue May 18, 2024 · 0 comments
Open

Question about setting up new trees / resetting existing trees #221

sea-bass opened this issue May 18, 2024 · 0 comments

Comments

@sea-bass
Copy link
Collaborator

I am running into a use case in py_trees (and py_trees_ros) wherein I am ticking a tree to completion and then wanting to "reset" it to start from the beginning.

I can't simply create a new tree and set it up with the same node, because the setup() method tries to redeclare ROS parameters and that is not a happy path. That's easy enough to fix, but maybe not the right approach.

A second thing I tried was to use replace_subtree() on the root node of the tree, manually setting the root's status to INACTIVE, and then ticking to completion again. Which works, but also feels wrong.

And then what if you want to keep the same tree around but simply run it to completion and then reset it multiple times?

So before I try work on some fixes, I wanted to ask if there is some way I am missing to do this all better? Thank you!

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

No branches or pull requests

1 participant