-
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
Add IsStoppedBTNode #4764
base: main
Are you sure you want to change the base?
Add IsStoppedBTNode #4764
Conversation
Signed-off-by: Tony Najjar <[email protected]>
@SteveMacenski are you open to this contribution? Still a draft but almost there |
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]>
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.
Groot (https://github.com/ros-navigation/navigation2/blob/main/nav2_behavior_tree/nav2_tree_nodes.xml) and doc updates are needed (the usual bits!).
nav2_behavior_tree/include/nav2_behavior_tree/plugins/condition/is_stopped_condition.hpp
Outdated
Show resolved
Hide resolved
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]>
Codecov ReportAttention: Patch coverage is
|
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.
On terminal conditions (success, fail) shouldn't we update stopped_stamp_
?
Signed-off-by: Tony Najjar <[email protected]>
With "update" I assume you mean resetting to
1. BT node returns SUCCESS after it was stopped for long enough All things considered, I think you're right that resetting at success would be the better option |
Signed-off-by: Tony Najjar <[email protected]>
Agreed, I was thinking something too like With that said, I think Also see ros-navigation/docs.nav2.org#612 (comment) (I know looking at comments after a PR is merged gets lost in the general "merge" notification, for me at least 😉 ). |
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 - let me know if there's anything else here from that conversation of its good to go
Though, I see a couple of lines that seem easy to cover in unit testing that are not covered:
twist.header.stamp = node_->get_clock()->now();
- Each of the
!received_odom_
condition's internals
Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
Basic Info
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: