Skip to content

Fix bt navigator feedback in looping path#5864

Merged
SteveMacenski merged 12 commits intoros-navigation:mainfrom
mini-1235:fix/bt-navigator
Jan 15, 2026
Merged

Fix bt navigator feedback in looping path#5864
SteveMacenski merged 12 commits intoros-navigation:mainfrom
mini-1235:fix/bt-navigator

Conversation

@mini-1235
Copy link
Collaborator


Basic Info

Info Please fill out this column
Ticket(s) this addresses Follow up of #5446
Primary OS tested on (Ubuntu, MacOS, Windows)
Robotic platform tested on (Steve's Robot, gazebo simulation of Tally, hardware turtlebot)
Does this PR contain AI generated software? (No; Yes and it is marked inline in the code)
Was this PR description generated by AI software? Out of respect for maintainers, AI for human-to-human communications are banned

Description of contribution in a few bullet points

Description of documentation updates required from your changes

Description of how this change was tested


Future work that may be required in bullet points

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-*.

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
syncTabsWithAccumulatedPoses(); // Sync tabs with new pose
} else {
acummulated_poses_ = nav_msgs::msg::Goals();
// Reset goal index for single goal navigation
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are some issues with the rviz panel when doing single goal navigation:

  • The goal index is not reset after using waypoint follower
  • The goal is not added to store poses

However, I am not sure if this is the best place to add these

Copy link
Member

Choose a reason for hiding this comment

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

Got it - I default to your judgement on this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, it seems that this introduced a minor bug, will open a PR tomorrow

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 97.36842% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...2_bt_navigator/src/navigators/navigate_to_pose.cpp 93.33% 1 Missing ⚠️
Files with missing lines Coverage Δ
...tree/plugins/decorator/path_longer_on_approach.hpp 100.00% <ø> (ø)
...tree/plugins/decorator/path_longer_on_approach.cpp 90.90% <100.00%> (-0.99%) ⬇️
...bt_navigator/navigators/navigate_through_poses.hpp 100.00% <ø> (ø)
.../nav2_bt_navigator/navigators/navigate_to_pose.hpp 100.00% <ø> (ø)
...avigator/src/navigators/navigate_through_poses.cpp 89.21% <100.00%> (+0.91%) ⬆️
nav2_controller/src/controller_server.cpp 80.05% <100.00%> (ø)
nav2_util/src/path_utils.cpp 100.00% <100.00%> (ø)
...2_bt_navigator/src/navigators/navigate_to_pose.cpp 82.41% <93.33%> (+0.48%) ⬆️

... and 7 files with indirect coverage changes

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

mini-1235 and others added 6 commits January 15, 2026 23:16
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: Maurice <mauricepurnawan@gmail.com>
return first_after_constraint;
}

bool isPathUpdated(
Copy link
Member

@SteveMacenski SteveMacenski Jan 15, 2026

Choose a reason for hiding this comment

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

Add a test for this plz

Otherwise this PR looks good to me. I merged the docs as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added, waiting for the ci to run again

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
@SteveMacenski
Copy link
Member

Check uncrustify ;-)

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
@mini-1235
Copy link
Collaborator Author

Always forgot to lint before I commit 😓

@SteveMacenski SteveMacenski merged commit 5a16959 into ros-navigation:main Jan 15, 2026
17 checks passed
Lotusymt pushed a commit to Lotusymt/navigation2 that referenced this pull request Jan 16, 2026
* Fix bt navigator feedback in looping path

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Revert

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Revert

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Update nav2_bt_navigator/src/navigators/navigate_to_pose.cpp

Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>

* Update nav2_bt_navigator/src/navigators/navigate_through_poses.cpp

Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>

* Add tracking error to Navigators feedback

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Add search window to bringup

Signed-off-by: Maurice <mauricepurnawan@gmail.com>

* Add test

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

---------

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>
Signed-off-by: Maurice <mauricepurnawan@gmail.com>
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: lotusymt <mengtiy5@uci.edu>
Pana1v pushed a commit to Arnav-panjla/navigation2 that referenced this pull request Feb 21, 2026
* Fix bt navigator feedback in looping path

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Revert

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Revert

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Update nav2_bt_navigator/src/navigators/navigate_to_pose.cpp

Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>

* Update nav2_bt_navigator/src/navigators/navigate_through_poses.cpp

Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>

* Add tracking error to Navigators feedback

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Add search window to bringup

Signed-off-by: Maurice <mauricepurnawan@gmail.com>

* Add test

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Lint

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

---------

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>
Signed-off-by: Maurice <mauricepurnawan@gmail.com>
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
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