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(radar_threshold_filter): add radar_threshold_filter package #2300

Merged

Conversation

scepter914
Copy link
Contributor

@scepter914 scepter914 commented Nov 16, 2022

Description

Add radar_threshold_filter package.
This package follow proposed radar sensing architecture.

Related links

Tests performed

Tests by rosbag.

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: scepter914 <scepter914@gmail.com>
Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: scepter914 <scepter914@gmail.com>
@github-actions github-actions bot added document component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) labels Nov 16, 2022
@codecov
Copy link

codecov bot commented Nov 16, 2022

Codecov Report

Base: 10.48% // Head: 10.47% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (d2f8a8b) compared to base (12fbe87).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2300      +/-   ##
==========================================
- Coverage   10.48%   10.47%   -0.01%     
==========================================
  Files        1249     1250       +1     
  Lines       90870    90931      +61     
  Branches    20843    20843              
==========================================
  Hits         9527     9527              
- Misses      71219    71280      +61     
  Partials    10124    10124              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.46% <ø> (ø) Carriedforward from 12fbe87

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

Impacted Files Coverage Δ
...eshold_filter_node/radar_threshold_filter_node.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.

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

@shmpwk shmpwk added type:documentation Creating or refining documentation. (auto-assigned) and removed document labels Nov 16, 2022
Signed-off-by: scepter914 <scepter914@gmail.com>
Comment on lines 137 to 152
void RadarThresholdFilterNode::onTimer()
{
if (!isDataReady()) {
return;
}

RadarScan output;
output.header = radar_data_->header;
for (const auto & radar_return : radar_data_->returns) {
if (isWithinThreshold(radar_return)) {
output.returns.push_back(radar_return);
}
}

pub_radar_->publish(output);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please let me know if there is a reason why you are publishing onTimer.
Basically, I think it is better to publish with onData.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed at 2824cb0

Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: scepter914 <scepter914@gmail.com>
Comment on lines 124 to 127
radar_data_ = msg;
if (!isDataReady()) {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

no need?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed at 2151bd7

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the isDataReady function needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed at d2f8a8b

scepter914 and others added 5 commits November 18, 2022 14:26
Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: scepter914 <scepter914@gmail.com>
…pter914/autoware.universe into feature/radar_threshold_filter
Signed-off-by: scepter914 <scepter914@gmail.com>
Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

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

LGTM

@scepter914 scepter914 merged commit c04d5ee into autowarefoundation:main Nov 19, 2022
@scepter914 scepter914 deleted the feature/radar_threshold_filter branch November 19, 2022 00:25
HansRobo pushed a commit to HansRobo/autoware.universe that referenced this pull request Dec 16, 2022
…owarefoundation#2300)

* feat(radar_threshold_filter): add radar_threshold_filter

Signed-off-by: scepter914 <scepter914@gmail.com>

* apply pre-commit

Signed-off-by: scepter914 <scepter914@gmail.com>

* update README

Signed-off-by: scepter914 <scepter914@gmail.com>

* update package.xml

Signed-off-by: scepter914 <scepter914@gmail.com>

* change onTimer to onData

Signed-off-by: scepter914 <scepter914@gmail.com>

* refactor

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete update hz param

Signed-off-by: scepter914 <scepter914@gmail.com>

* refactor

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete xml model

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete function

Signed-off-by: scepter914 <scepter914@gmail.com>

Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Jan 6, 2023
…owarefoundation#2300)

* feat(radar_threshold_filter): add radar_threshold_filter

Signed-off-by: scepter914 <scepter914@gmail.com>

* apply pre-commit

Signed-off-by: scepter914 <scepter914@gmail.com>

* update README

Signed-off-by: scepter914 <scepter914@gmail.com>

* update package.xml

Signed-off-by: scepter914 <scepter914@gmail.com>

* change onTimer to onData

Signed-off-by: scepter914 <scepter914@gmail.com>

* refactor

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete update hz param

Signed-off-by: scepter914 <scepter914@gmail.com>

* refactor

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete xml model

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete function

Signed-off-by: scepter914 <scepter914@gmail.com>

Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
YoshiRi pushed a commit to YoshiRi/autoware.universe that referenced this pull request Jan 11, 2023
…owarefoundation#2300)

* feat(radar_threshold_filter): add radar_threshold_filter

Signed-off-by: scepter914 <scepter914@gmail.com>

* apply pre-commit

Signed-off-by: scepter914 <scepter914@gmail.com>

* update README

Signed-off-by: scepter914 <scepter914@gmail.com>

* update package.xml

Signed-off-by: scepter914 <scepter914@gmail.com>

* change onTimer to onData

Signed-off-by: scepter914 <scepter914@gmail.com>

* refactor

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete update hz param

Signed-off-by: scepter914 <scepter914@gmail.com>

* refactor

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete xml model

Signed-off-by: scepter914 <scepter914@gmail.com>

* delete function

Signed-off-by: scepter914 <scepter914@gmail.com>

Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: yoshiri <yoshiyoshidetteiu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants