Skip to content

Adding default ports to subtrees #957

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

Closed
ufrhaidar opened this issue Apr 8, 2025 · 1 comment
Closed

Adding default ports to subtrees #957

ufrhaidar opened this issue Apr 8, 2025 · 1 comment

Comments

@ufrhaidar
Copy link

ufrhaidar commented Apr 8, 2025

Is your feature request related to a problem? Please describe.
Want to use subtrees more often to reduce repeated logic and to better explain sections of code (clean/clear up trees and reduce repeated logic), but in most cases (depending on how many ports the nodes i want to place in a subtree have/use), it takes longer to create the port mappings than to just leave the logic as is.

Describe the solution you'd like
Having the ability to add default ports and values for subtrees. or another button similar to _autoremap that creates ports for all black bord variables used in subtree?

Describe alternatives you've considered
copy pasting prefilled tree. you need to know where it was used. not easy in more complicated trees.

or creating template trees that i can open on the side to copy paste from.

Additional context
Something similar to behaviors/containers in flexbe.

Would be nice to know if people are facing similar issue and what they are doing to deal with it.

@facontidavide
Copy link
Collaborator

this is already possible, checj this example

https://github.com/BehaviorTree/BehaviorTree.CPP/blob/master/examples/t14_subtree_model.cpp

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

2 participants