Use native library haltTree()#3950
Merged
SteveMacenski merged 2 commits intoros-navigation:mainfrom Nov 10, 2023
Merged
Conversation
added 2 commits
November 9, 2023 19:15
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3950 +/- ##
==========================================
- Coverage 90.30% 90.05% -0.26%
==========================================
Files 415 415
Lines 18450 18444 -6
==========================================
- Hits 16662 16610 -52
- Misses 1788 1834 +46
☔ View full report in Codecov by Sentry. |
SteveMacenski
approved these changes
Nov 10, 2023
Member
SteveMacenski
left a comment
There was a problem hiding this comment.
I see no downside - why a draft?
Contributor
Author
|
Switching to PR ;) |
Contributor
Author
|
I guess a note on the migration guide ? |
doisyg
added a commit
to doisyg/navigation.ros.org
that referenced
this pull request
Nov 10, 2023
Contributor
Author
SteveMacenski
pushed a commit
to ros-navigation/docs.nav2.org
that referenced
this pull request
Nov 10, 2023
Member
|
Honestly not sure if that was worth a migration guide doc since its not actionable to users, but I'll always default to more docs over less docs 😉 |
jwallace42
pushed a commit
to jwallace42/navigation2
that referenced
this pull request
Jan 3, 2024
* Use native library haltTree() * lint --------- Co-authored-by: Guillaume Doisy <guillaume@dexory.com> Signed-off-by: gg <josho.wallace@gmail.com>
enricosutera
pushed a commit
to enricosutera/navigation2
that referenced
this pull request
May 19, 2024
* Use native library haltTree() * lint --------- Co-authored-by: Guillaume Doisy <guillaume@dexory.com> Signed-off-by: enricosutera <enricosutera@outlook.com>
Marc-Morcos
pushed a commit
to Marc-Morcos/navigation2
that referenced
this pull request
Jul 4, 2024
* Use native library haltTree() * lint --------- Co-authored-by: Guillaume Doisy <guillaume@dexory.com>
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.
Basic Info
Description of contribution in a few bullet points
As discussed, draft to open the discussion.
Update to use the the native cpp library
haltTree()method inBehaviorTreeEngine::haltAllActions.https://github.com/BehaviorTree/BehaviorTree.CPP/blob/61c55ed720e0630f211686b3830942ae27e90501/include/behaviortree_cpp_v3/bt_factory.h#L162-L179
Before this change, only the active BT node was halted when finishing the action. After this change, all BT nodes
halt()methods are called. This is very convenient to handle cleaning operation (switch off your lights when leaving) in halt().Also updated
nav2_behavior_tree::BtActionServer::haltTree()to use the same. It is used nowhere in nav2 but is useful for external users (like me) that want for instance to halt the tree on preemption.Description of documentation updates required from your changes
Future work that may be required in bullet points
For Maintainers: