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

Provide bt result #2998

Merged
merged 6 commits into from
Jun 3, 2022
Merged

Conversation

mrmitchadams
Copy link
Contributor


Basic Info

Info Please fill out this column
Ticket(s) this addresses 2991
Primary OS tested on Ubuntu
Robotic platform tested on Gazebo

Description of contribution in a few bullet points

Added input parameter 'final_bt_status' of type nav2_behavior_tree::BtStatus to the goalCompleted() function of navigator.hpp that makes the final status of the behavior tree run available to the navigator. This could provide the navigator with important context while populating the result and doing anything else it might do during that function.

None of the navigators that are included in nav2 currently do anything with this goalCompleted() function, but this could be a nice feature for developers who are creating their own custom navigators, and the current nav2 navigators may also benefit from this feature in the future. For example, a parameter in the result message could provide some context to the client as to whether an aborted result corresponds to a preemption or a behavior tree failure.


For Maintainers:

  • Check that any new parameters added are updated in navigation.ros.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

@mergify
Copy link
Contributor

mergify bot commented Jun 2, 2022

@mradams-bastian, please properly fill in PR template in the future. @SteveMacenski, use this instead.

  • Check that any new parameters added are updated in navigation.ros.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

@padhupradheep
Copy link
Member

padhupradheep commented Jun 3, 2022

To give a heads up, there are some linter issues, that you might want to fix.. see the details in the release test. You can also get those results locally by simply running ament_uncrustify and ament_cpplint

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.

LGTM, I don't usually mention by hand the linting errors, but I want to get this done ASAP so I can release this afternoon

@mrmitchadams
Copy link
Contributor Author

K, I'll get those fixed soon

@SteveMacenski
Copy link
Member

Toggling for CI, it didn't trigger for some reason

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.

Just waiting on CI

@mrmitchadams mrmitchadams reopened this Jun 3, 2022
@SteveMacenski SteveMacenski merged commit 97cb138 into ros-navigation:main Jun 3, 2022
@SteveMacenski
Copy link
Member

SteveMacenski commented Jun 3, 2022

Thanks @mradams-bastian!

redvinaa pushed a commit to EnjoyRobotics/navigation2 that referenced this pull request Jun 30, 2022
* Added goal accepted check before flagging navigator as running

* Added final bt status as a parameter to goal completed callback of navigators (for reference)

* Formatting for line length

* Fixed indentation formatting

* Fixed indentation formatting
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.

3 participants