Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt GoalUpdater to update goals as well #4771

Merged
merged 71 commits into from
Jan 13, 2025

Conversation

tonynajjar
Copy link
Contributor


Basic Info

Info Please fill out this column
Ticket(s) this addresses (add tickets here #1)
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)

Description of contribution in a few bullet points

Description of documentation updates required from your changes


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

tonynajjar and others added 20 commits November 25, 2024 16:49
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
@tonynajjar tonynajjar changed the title Adapt GoalUpdater to update goals Adapt GoalUpdater to update goals as well Nov 28, 2024
@tonynajjar
Copy link
Contributor Author

@SteveMacenski as usual, still a draft but what do you think of the idea? Do you have a preference for a standalone node? GoalUpdatedCondition checks both goal and goals in the same node.

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...avior_tree/plugins/decorator/goal_updater_node.cpp 92.00% 2 Missing ⚠️
Files with missing lines Coverage Δ
...avior_tree/plugins/decorator/goal_updater_node.hpp 100.00% <100.00%> (ø)
...avior_tree/plugins/decorator/goal_updater_node.cpp 95.74% <92.00%> (-4.26%) ⬇️

... and 2 files with indirect coverage changes

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.

I know its a conversational draft, so obviously the main block in tick still needs the goals version.

I'm not opposed to having this BT node be goal(s). I'm less certain about the introduction of a new PosesStamped message type used only for this application. I imagine the context of use would be for NavigateThroughPoses or similar, so shouldn't those be updated as well to use that [1] (among possibly others)?

Also, food for thought, this seems like a good geometry_msgs improvement rather than a nav2_msgs improvement to add PosesStamped. Maybe we should file a ticket over there and ask @tfoote if he's open to that contribution

[1] https://github.com/ros-navigation/navigation2/blob/main/nav2_msgs/action/NavigateThroughPoses.action#L3

nav2_behavior_tree/plugins/decorator/goal_updater_node.cpp Outdated Show resolved Hide resolved
nav2_behavior_tree/plugins/decorator/goal_updater_node.cpp Outdated Show resolved Hide resolved
nav2_msgs/msg/PosesStamped.msg Outdated Show resolved Hide resolved
@tonynajjar tonynajjar marked this pull request as ready for review December 3, 2024 16:11
@tonynajjar
Copy link
Contributor Author

I merged #4791 into this branch to be able to test in CI. Let's come back to reviewing this PR what's the first one is merged for more clarity

Signed-off-by: Tony Najjar <[email protected]>
Copy link
Contributor

mergify bot commented Jan 7, 2025

@tonynajjar, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

1 similar comment
Copy link
Contributor

mergify bot commented Jan 7, 2025

@tonynajjar, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

@SteveMacenski
Copy link
Member

OK sounds good - that will make this diff much smaller and more concise to the change srequired

@SteveMacenski
Copy link
Member

I think this can now be rebased for only the changes required to the sp. BT nodes

Copy link
Contributor

mergify bot commented Jan 10, 2025

@tonynajjar, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

Signed-off-by: Tony Najjar <[email protected]>
Copy link
Contributor

mergify bot commented Jan 10, 2025

@tonynajjar, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
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.

Small change and then we can merge! Update the jazzy backport too and I'll do the pair

Signed-off-by: Tony Najjar <[email protected]>
@SteveMacenski SteveMacenski merged commit eaa88e6 into ros-navigation:main Jan 13, 2025
9 of 10 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