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

feat(yabloc_monitor): add yabloc_monitor #4395

Merged
merged 32 commits into from
Jul 31, 2023

Conversation

kminoda
Copy link
Contributor

@kminoda kminoda commented Jul 26, 2023

Description

Add YabLoc monitor. The output diagnostics could be used for various purposes, incl. Driving Log Replayer.

Related links

N/A

Tests performed

Run logging_simulator with YabLoc sample rosbag, and confirmed that

  • Before the pose initialization, yabloc_monitor: yabloc_status is NG in /diagnostics`
  • After the pose initialization, yabloc_monitor: yabloc_status is OK in /diagnostics`

Notes for reviewers

N/A

Interface changes

N/A

Effects on system behavior

N/A

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: kminoda <koji.minoda@tier4.jp>
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:localization Vehicle's position determination in its environment. (auto-assigned) labels Jul 26, 2023
pre-commit-ci bot and others added 2 commits July 26, 2023 08:39
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@github-actions github-actions bot added the component:launch Launch files, scripts and initialization tools. (auto-assigned) label Jul 26, 2023
pre-commit-ci bot and others added 13 commits July 26, 2023 08:49
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@kminoda
Copy link
Contributor Author

kminoda commented Jul 28, 2023

Moved to #4435 for testing ChatGPT reviewer

@kminoda kminoda closed this Jul 28, 2023
kminoda and others added 3 commits July 28, 2023 09:29
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@kminoda kminoda reopened this Jul 28, 2023
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@kminoda kminoda marked this pull request as ready for review July 28, 2023 01:09
@kminoda kminoda added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 28, 2023
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.02% 🎉

Comparison is base (8f905a1) 14.89% compared to head (2b83eb2) 14.91%.
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4395      +/-   ##
==========================================
+ Coverage   14.89%   14.91%   +0.02%     
==========================================
  Files        1516     1519       +3     
  Lines      104652   104655       +3     
  Branches    31853    31831      -22     
==========================================
+ Hits        15587    15610      +23     
+ Misses      72042    72010      -32     
- Partials    17023    17035      +12     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.92% <ø> (+0.02%) ⬆️ Carriedforward from 4472179

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

Files Changed Coverage Δ
.../yabloc/yabloc_monitor/src/availability_module.cpp 0.00% <0.00%> (ø)
.../yabloc/yabloc_monitor/src/yabloc_monitor_core.cpp 0.00% <0.00%> (ø)
.../yabloc/yabloc_monitor/src/yabloc_monitor_node.cpp 0.00% <0.00%> (ø)

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

kminoda and others added 2 commits July 28, 2023 10:25
Signed-off-by: kminoda <koji.minoda@tier4.jp>

const auto now = clock_->now();

const auto diff_pose = now - *latest_yabloc_pose_stamp_ptr_;
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is a comparison of timestamps, how about renaming it or the following?

const auto diff_pose_sec = (now - *latest_yabloc_pose_stamp_ptr_).seconds();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the review 🙏
Resolved: ad063e9

Signed-off-by: kminoda <koji.minoda@tier4.jp>
@KYabuuchi
Copy link
Contributor

I have confirmed that yabloc_monitor informs the status 👍

yabloc_monitor_works_well.mp4

Signed-off-by: kminoda <koji.minoda@tier4.jp>
@kminoda
Copy link
Contributor Author

kminoda commented Jul 28, 2023

BTW also confirmed that this works with new scenario proposed in driving log replayer 🎉
tier4/driving_log_replayer#201

Copy link
Contributor

@KYabuuchi KYabuuchi left a comment

Choose a reason for hiding this comment

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

I left some comments. Please check out them 😄

kminoda and others added 4 commits July 28, 2023 17:20
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Copy link
Contributor

@KYabuuchi KYabuuchi left a comment

Choose a reason for hiding this comment

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

lgtm 💯

@kminoda
Copy link
Contributor Author

kminoda commented Jul 31, 2023

@RyuYamamoto @YamatoAndo Hi, could you review this PR? 🙏

kminoda and others added 3 commits July 31, 2023 14:48
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@kminoda kminoda merged commit 0730888 into autowarefoundation:main Jul 31, 2023
felixf4xu pushed a commit to felixf4xu/autoware.universe that referenced this pull request Aug 2, 2023
* feat(yabloc_monitor): add yabloc_monitor

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* add readme

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* update config

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* update

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* update

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* remove unnecessary part

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* remove todo

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* fix typo

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* remove unnecessary part

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* update readme

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* shorten function

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* reflect chatgpt

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* update

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* cland-tidy

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* update variable name

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* fix if name

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* use nullopt (and moved yabloc monitor namespace

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* fix readme

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* add dependency

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

* reflect comment

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* update comment

Signed-off-by: kminoda <koji.minoda@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: kminoda <koji.minoda@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Felix F Xu <felixfxu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:launch Launch files, scripts and initialization tools. (auto-assigned) component:localization Vehicle's position determination in its environment. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants