-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Provide bt result #2998
Conversation
@mradams-bastian, please properly fill in PR template in the future. @SteveMacenski, use this instead.
|
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 |
There was a problem hiding this 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
nav2_bt_navigator/include/nav2_bt_navigator/navigators/navigate_to_pose.hpp
Outdated
Show resolved
Hide resolved
nav2_bt_navigator/include/nav2_bt_navigator/navigators/navigate_through_poses.hpp
Outdated
Show resolved
Hide resolved
K, I'll get those fixed soon |
Toggling for CI, it didn't trigger for some reason |
There was a problem hiding this 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
Thanks @mradams-bastian! |
* 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
Basic Info
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: