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

refactor(kalman_filter): make getter functions explicitly return values #1895

Merged
merged 9 commits into from
Sep 29, 2022

Conversation

IshitaTakeshi
Copy link
Contributor

@IshitaTakeshi IshitaTakeshi commented Sep 16, 2022

Description

Getter functions should explicitly return values.
Doing this allows the return values to be constants, and the readability improves.

Related links

Tests performed

No tests have been performed yet. The time-delay kalman filter has a large state so how to validate the internal state will be an open question.

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.

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Base: 10.27% // Head: 10.17% // Decreases project coverage by -0.10% ⚠️

Coverage data is based on head (69751b9) compared to base (87f8142).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1895      +/-   ##
==========================================
- Coverage   10.27%   10.17%   -0.11%     
==========================================
  Files        1158     1255      +97     
  Lines       82151    90590    +8439     
  Branches    19120    20658    +1538     
==========================================
+ Hits         8441     9214     +773     
- Misses      64568    71958    +7390     
- Partials     9142     9418     +276     
Flag Coverage Δ *Carryforward flag
differential 5.15% <0.00%> (?)
total 10.16% <0.00%> (-0.10%) ⬇️ Carriedforward from 4485736

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

Impacted Files Coverage Δ
...mon/kalman_filter/src/time_delay_kalman_filter.cpp 0.00% <0.00%> (ø)
localization/ekf_localizer/src/ekf_localizer.cpp 0.00% <0.00%> (ø)
system/default_ad_api/src/routing.cpp 33.33% <0.00%> (-4.17%) ⬇️
...tion_utils/test/src/trajectory/test_trajectory.cpp 26.16% <0.00%> (-0.03%) ⬇️
perception/tensorrt_yolo/src/nodelet.cpp 0.00% <0.00%> (ø)
perception/lidar_centerpoint/src/node.cpp 0.00% <0.00%> (ø)
planning/obstacle_stop_planner/src/node.cpp 0.00% <0.00%> (ø)
common/osqp_interface/src/osqp_interface.cpp 34.35% <0.00%> (ø)
planning/route_handler/src/route_handler.cpp 0.00% <0.00%> (ø)
planning/rtc_interface/src/rtc_interface.cpp 0.00% <0.00%> (ø)
... and 299 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

@kminoda kminoda left a comment

Choose a reason for hiding this comment

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

LGTM

@IshitaTakeshi IshitaTakeshi enabled auto-merge (squash) September 21, 2022 07:19
@kminoda
Copy link
Contributor

kminoda commented Sep 22, 2022

@IshitaTakeshi Just a reminder, but I think you need to get a review from the code owners of kalman_filter (currently only @.yukkysaito, but maybe we should consider adding other people as a new maintainer, too)

@IshitaTakeshi
Copy link
Contributor Author

@YamatoAndo is also added as a code owner. How about?

@kminoda
Copy link
Contributor

kminoda commented Sep 22, 2022

@IshitaTakeshi I don't think so (at least from here)

  <description>The kalman filter package</description>
  <maintainer email="yukihiro.saito@tier4.jp">Yukihiro Saito</maintainer>
  <license>Apache License 2.0</license>

@IshitaTakeshi
Copy link
Contributor Author

@kminoda I also could see the message "Waiting on code owner review from yukkysaito." on GitHub

@IshitaTakeshi
Copy link
Contributor Author

@yukkysaito Could you review this?

@kminoda
Copy link
Contributor

kminoda commented Sep 29, 2022

It still requires a review from @.yukkysaito even after merging 87f8142 ... 🤔

@kenji-miyake
Copy link
Contributor

kenji-miyake commented Sep 29, 2022

It still requires a review from @.yukkysaito even after merging 87f8142 ... thinking

@kminoda Please merge #1983 to reflect maintainers to CODEOWNERS.

Signed-off-by: GitHub <noreply@github.com>

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com>
Co-authored-by: Takeshi Ishita <ishitah.takeshi@gmail.com>
@IshitaTakeshi IshitaTakeshi merged commit 767e765 into main Sep 29, 2022
@IshitaTakeshi IshitaTakeshi deleted the refactor/return-from-getter branch September 29, 2022 06:06
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…es (autowarefoundation#1895)

* refactor(kalman_filter): getter functions should explicitly return values
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…es (autowarefoundation#1895)

* refactor(kalman_filter): getter functions should explicitly return values
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
…es (autowarefoundation#1895)

* refactor(kalman_filter): getter functions should explicitly return values
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