Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

having an executable script in a Pre Condition #895

Open
ufrhaidar opened this issue Dec 12, 2024 · 2 comments
Open

having an executable script in a Pre Condition #895

ufrhaidar opened this issue Dec 12, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ufrhaidar
Copy link

Similar functionality to _post.

It is good for many things as it can help the tree be more readable:

  • resetting or making sure a variable exists
  • updating status to know a node has started.
@facontidavide facontidavide self-assigned this Dec 16, 2024
@facontidavide facontidavide added the enhancement New feature or request label Dec 16, 2024
@facontidavide
Copy link
Collaborator

yes, I have been thinking about that. I think that I will add it

Aglargil pushed a commit to Aglargil/BehaviorTree.CPP that referenced this issue Dec 17, 2024
Add a new precondition type _onStart that allows executing scripts
before a node starts its tick. This provides symmetry with the
existing _post functionality.

Resolves BehaviorTree#895
@Aglargil
Copy link
Contributor

Aglargil commented Dec 17, 2024

yes, I have been thinking about that. I think that I will add it

@facontidavide This PR might help solve this case. Let me know if you need any clarification on the implementation.
#899

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants