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

fix(behavior_path_planner): use SUCCESS instead of IDLE when onExit #2391

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Nov 28, 2022

Signed-off-by: kosuke55 [email protected]

Description

From the flowing comment, it seems better to use Success instead of Idle.

https://github.com/BehaviorTree/BehaviorTree.CPP/blob/master/include/behaviortree_cpp/basic_types.h#L35
/// IMPORTANT: Your custom nodes should NEVER return IDLE.

Related links

Tests performed

Notes for reviewers

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@@ -184,7 +184,6 @@ void PullOverModule::onExit()
steering_factor_interface_ptr_->clearSteeringFactors();

// A child node must never return IDLE
// https://github.com/BehaviorTree/BehaviorTree.CPP/blob/master/include/behaviortree_cpp_v3/basic_types.h#L34
Copy link
Contributor Author

@kosuke55 kosuke55 Nov 28, 2022

Choose a reason for hiding this comment

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

the link is already invalid now.
it moved to https://github.com/BehaviorTree/BehaviorTree.CPP/blob/master/include/behaviortree_cpp/basic_types.h#L35, but remove it considering the maintenance cost

@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Base: 10.61% // Head: 10.55% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (8e2dca6) compared to base (49f9437).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2391      +/-   ##
==========================================
- Coverage   10.61%   10.55%   -0.07%     
==========================================
  Files        1241     1242       +1     
  Lines       83131    83742     +611     
  Branches    20459    20670     +211     
==========================================
+ Hits         8823     8836      +13     
- Misses      64596    65016     +420     
- Partials     9712     9890     +178     
Flag Coverage Δ *Carryforward flag
differential 3.18% <0.00%> (?)
total 10.61% <0.00%> (ø) Carriedforward from 49f9437

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...er/scene_module/scene_module_bt_node_interface.hpp 0.00% <ø> (ø)
...th_planner/scene_module/scene_module_interface.hpp 0.00% <0.00%> (ø)
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% <0.00%> (ø)
...ne_module/lane_following/lane_following_module.cpp 0.00% <0.00%> (ø)
...nner/src/scene_module/pull_out/pull_out_module.cpp 0.00% <0.00%> (ø)
...er/src/scene_module/pull_over/pull_over_module.cpp 0.00% <ø> (ø)
.../src/scene_module/side_shift/side_shift_module.cpp 0.00% <0.00%> (ø)
planning/behavior_path_planner/test/input.cpp 60.00% <0.00%> (-7.86%) ⬇️
...ng/behavior_path_planner/test/test_turn_signal.cpp 40.41% <0.00%> (-6.86%) ⬇️
.../behavior_path_planner/src/turn_signal_decider.cpp 35.20% <0.00%> (-0.55%) ⬇️
... and 36 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@rej55 rej55 left a comment

Choose a reason for hiding this comment

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

LGTM

@rej55 rej55 merged commit 1b77bba into autowarefoundation:main Nov 30, 2022
@rej55 rej55 deleted the fix/idle_to_success branch November 30, 2022 08:11
HansRobo pushed a commit to HansRobo/autoware.universe that referenced this pull request Dec 16, 2022
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants