Skip to content

More improvments in BTActionNode#375

Merged
fmrico merged 8 commits intoPlanSys2:rollingfrom
grupo-avispa:back_to_idle
Jul 23, 2025
Merged

More improvments in BTActionNode#375
fmrico merged 8 commits intoPlanSys2:rollingfrom
grupo-avispa:back_to_idle

Conversation

@ajtudela
Copy link
Contributor

@ajtudela ajtudela commented Jul 10, 2025

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.

ajtudela added 2 commits July 10, 2025 13:38
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
@ajtudela ajtudela changed the title Return to IDLE when BT finished More improvments in BTActionNode Jul 10, 2025
@ajtudela ajtudela marked this pull request as draft July 10, 2025 12:50
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
@ajtudela ajtudela marked this pull request as ready for review July 11, 2025 07:48
@ajtudela
Copy link
Contributor Author

It's ready for review!

@fmrico
Copy link
Contributor

fmrico commented Jul 11, 2025

LGTM!!

Let me manually test against the examples to make sure everything is smooth, and then I will merge.

ajtudela added 4 commits July 14, 2025 11:20
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>
@ajtudela
Copy link
Contributor Author

I just added a few fixes related to Groot2, formating and styling.

@fmrico
Copy link
Contributor

fmrico commented Jul 23, 2025

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 branch

rolling.mp4

back_to_idle_branch

back_to_idle.mp4

Can you reproduce this test manually to find out what is happening?

@ajtudela
Copy link
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>
@ajtudela
Copy link
Contributor Author

@fmrico all fixed!

@fmrico
Copy link
Contributor

fmrico commented Jul 23, 2025

Merging! 🚀

Thanks @ajtudela !!!!

@fmrico fmrico merged commit b03e62c into PlanSys2:rolling Jul 23, 2025
1 check passed
@ajtudela ajtudela deleted the back_to_idle branch July 24, 2025 09:15
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