More improvments in BTActionNode#375
Merged
fmrico merged 8 commits intoPlanSys2:rollingfrom Jul 23, 2025
Merged
Conversation
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Contributor
Author
|
It's ready for review! |
Contributor
|
LGTM!! Let me manually test against the examples to make sure everything is smooth, and then I will merge. |
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Contributor
Author
|
I just added a few fixes related to Groot2, formating and styling. |
Contributor
|
Hi @ajtudela I have found a problem manually testing with the https://github.com/PlanSys2/ros2_planning_system_examples . The plansys2_bt_example seems to fail with your change consistently: rolling branchrolling.mp4back_to_idle_branchback_to_idle.mp4Can you reproduce this test manually to find out what is happening? |
Contributor
Author
|
Mmm, I think I fixed in this PR but I'll review both PRs and I let you know when it's ready to merge. |
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Contributor
Author
|
@fmrico all fixed! |
Contributor
|
Merging! 🚀 Thanks @ajtudela !!!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I discovered that my BT nodes were only executing once they had finished.
This change reverts the internal state machine of the BT to the IDLE state once it has finished, enabling the BT node to be executed every time inside a loop controller.
I also added a callback group executor to call the action in a different thread, to avoid blocking the BT.