Skip to content

Conversation

@mini-1235
Copy link
Collaborator

@mini-1235 mini-1235 commented Jan 16, 2026


Basic Info

Info Please fill out this column
Ticket(s) this addresses Fixes #4003
Primary OS tested on Ubuntu
Robotic platform tested on Tb4
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-*.

@mini-1235
Copy link
Collaborator Author

I am planning to update the detailed behavior walkthrough, which requires generating the behavior tree via the script. I will open the docs PR once this one is approved

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 5 files with indirect coverage changes

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

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

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

Otherwise, approved :-)

<GlobalUpdatedGoal/>
</Inverter>
<IsGoalNearby path="{path}" proximity_threshold="1.0" max_robot_pose_search_dist="1.5"/>
<IsPathValid path="{path}"/>
Copy link
Member

Choose a reason for hiding this comment

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

Does this check validity only of the remaining sections of the path?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No.

What about doing

<IsGoalNearby path="{path}" proximity_threshold="1.0" max_robot_pose_search_dist="1.5"/>
<TruncatePathLocal input_path="{path}" output_path="{remaining_path}" distance_forward="2.0" distance_backward="0.0" />
<IsPathValid path="{remaining_path}"/>

So that we only check if the remaining path is valid? Does this make sense to you?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that makes sense to me!

@mini-1235
Copy link
Collaborator Author

Perhaps also: https://github.com/ros-navigation/navigation2/blob/83f344b115b2d40c0b326c970e0e871c38d18e6a/nav2_bt_navigator/behavior_trees/nav_to_pose_with_consistent_replanning_and_if_path_becomes_invalid.xml

I think the purpose of this demo is to stop replanning when the path is valid (regardless of whether the robot is near the goal), so I didn't update this demo

@SteveMacenski
Copy link
Member

I think the purpose of this demo is to stop replanning when the path is valid (regardless of whether the robot is near the goal), so I didn't update this demo

It has a timer to replan occasionally. That occasionally could happen when approaching the goal. If the path is still valid, I would like it not to regardless of the timer

@mini-1235
Copy link
Collaborator Author

I am going to hold this PR so that we can get ros-navigation/docs.nav2.org#854 merged in first

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.

BT XML Idea: Stop replanning when near the goal if path is valid

2 participants