Skip to content

Adding subtree for backup with reset - #6559

Merged
nirwester merged 6 commits into
ros-navigation:mainfrom
nirwester:feat/backup_with_reset_subtree
Oct 9, 2026
Merged

nirwester merged 6 commits into
ros-navigation:mainfrom
nirwester:feat/backup_with_reset_subtree

Conversation

@nirwester

Copy link
Copy Markdown
Contributor

Basic Info

Info Please fill out this column
Ticket(s) this addresses
Primary OS tested on Ubuntu
Robotic platform tested on Turtlebot simulation
Does this PR contain AI generated software? Yes, the log actions
Was this PR description generated by AI software? No

Description of contribution in a few bullet points

  • Added an action to log messages from the BT. Quite useful for debugging, if need be I can put it on its own PR.
  • Added a sub-tree that executes BackUp only if the robot moved at least reset_distance since the last backup.
  • Used it in navigate_to_pose_w_replanning_and_recovery to provide an example of usage, I can remove it if we prefer keeping the basic BackUp on this BT. I also allowed for the round robin recoveries to be executed more than once to exemplify the functionality.

Description of documentation updates required from your changes

If we want to keep the new log action, it should get documented.

Description of how this change was tested

Ran the turtlebot sim, made the robot fail by localizing it out of the walls -> verified that backup runs only once, then making it continue by localizing it into the walls -> verifying backup can be executed again.


Future work that may be required in bullet points

If you like it, we could apply it by default to other BTs.

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists
  • Should this be backported to current distributions? If so, tag with backport-*.

@nirwester nirwester changed the title Adding subtree for backup with reset and action to log messages from … Adding subtree for backup with reset Sep 25, 2026
@nirwester
nirwester force-pushed the feat/backup_with_reset_subtree branch from ec7b95b to fdfa9da Compare September 25, 2026 21:44

@SteveMacenski SteveMacenski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI seems to be having some problems with your changes

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
...e/nav2_behavior_tree/plugins/action/log_action.hpp 100.00% <100.00%> (ø)
nav2_behavior_tree/plugins/action/log_action.cpp 100.00% <100.00%> (ø)
...core/include/nav2_core/behavior_tree_navigator.hpp 96.29% <100.00%> (ø)

... and 18 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SteveMacenski SteveMacenski left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update the navigate through poses and any others too? I think we have a couple of other 'realistic' BTs that aren't simple demos that could benefit from this update.

I trust that you have tested this sufficiently

@nirwester

Copy link
Copy Markdown
Contributor Author

Should we update the navigate through poses and any others too? I think we have a couple of other 'realistic' BTs that aren't simple demos that could benefit from this update.

I trust that you have tested this sufficiently

Sure, I'll add a dedicated PR for it to not expand too much the scope of this one.

@nirwester
nirwester merged commit a0c211d into ros-navigation:main Oct 9, 2026
19 checks passed
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