-
Notifications
You must be signed in to change notification settings - Fork 665
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
feat(radar_threshold_filter): add radar_threshold_filter package #2300
Conversation
Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: scepter914 <scepter914@gmail.com>
Signed-off-by: scepter914 <scepter914@gmail.com>
Codecov ReportBase: 10.48% // Head: 10.47% // Decreases project coverage by
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
*This pull request uses carry forward flags. Click here to find out 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. |
Signed-off-by: scepter914 <scepter914@gmail.com>
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); | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
radar_data_ = msg; | ||
if (!isDataReady()) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed at 2151bd7
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed at d2f8a8b
Signed-off-by: scepter914 <scepter914@gmail.com>
…pter914/autoware.universe into feature/radar_threshold_filter
Signed-off-by: scepter914 <scepter914@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…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>
…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>
…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>
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.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.