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): remove waitForData() in constructor #1684

Conversation

TakaHoribe
Copy link
Contributor

@TakaHoribe TakaHoribe commented Aug 25, 2022

Description

Remove waitForData() in the constructor since it disturbs other nodes in the same component to launch.
Add isDataReady() instead at the beginning of the timer callback process.

Related links

Tests performed

  • run psim and check if there is no degradation.

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.

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
@TakaHoribe TakaHoribe requested a review from tkimura4 August 25, 2022 02:53
@codecov
Copy link

codecov bot commented Aug 25, 2022

Codecov Report

Merging #1684 (7516510) into main (7b94ead) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1684      +/-   ##
==========================================
- Coverage   10.72%   10.64%   -0.09%     
==========================================
  Files        1103     1103              
  Lines       78410    79037     +627     
  Branches    18649    19147     +498     
==========================================
+ Hits         8409     8410       +1     
- Misses      61087    61663     +576     
- Partials     8914     8964      +50     
Flag Coverage Δ *Carryforward flag
differential 0.79% <0.00%> (?)
total 10.70% <0.00%> (ø) Carriedforward from 9dcce83

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

Impacted Files Coverage Δ
...or_path_planner/src/behavior_path_planner_node.cpp 0.34% <0.00%> (+0.11%) ⬆️
planning/behavior_path_planner/src/utilities.cpp 0.85% <0.00%> (-0.20%) ⬇️
...nning/behavior_path_planner/src/path_utilities.cpp 0.00% <0.00%> (ø)
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% <0.00%> (ø)

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

@tkimura4
Copy link
Contributor

I confirmed that the behavior nodes were registered before a route was published by this PR.

image

Copy link
Contributor

@tkimura4 tkimura4 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Copy link
Contributor

@taikitanaka3 taikitanaka3 left a comment

Choose a reason for hiding this comment

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

LGTM

@taikitanaka3 taikitanaka3 merged commit eb0e92d into autowarefoundation:main Aug 26, 2022
@taikitanaka3 taikitanaka3 deleted the fix/remove-wait-in-constructor-behavior-path branch August 26, 2022 06:05
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…4#1684)

* fix(behavior_path_planner): remove waitForData() in constructor

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* add rclcpp_info for missing messages

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…4#1684)

* fix(behavior_path_planner): remove waitForData() in constructor

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* add rclcpp_info for missing messages

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…4#1684)

* fix(behavior_path_planner): remove waitForData() in constructor

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* add rclcpp_info for missing messages

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…warefoundation#1684)

* fix(behavior_path_planner): remove waitForData() in constructor

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* add rclcpp_info for missing messages

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
…4#1684)

* fix(behavior_path_planner): remove waitForData() in constructor

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* add rclcpp_info for missing messages

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
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