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(autoware_pointcloud_preprocessor): rework random downsample filter parameters #8485

Conversation

vividf
Copy link
Contributor

@vividf vividf commented Aug 15, 2024

Description

This PR includes the following changes

  1. Remove the default parameters for the random downsample filter node.
  2. Add parameter, launch file, and parameters schema for the node.
  3. Change the name nodelet to node.

A big thank you to @Ariiees for the PRs (#8297 and #7422), where we worked together on the entire pointcloud preprocessor parameters, launch file, and schema.

Related links

Parent Issue:

  • Link

How was this PR tested?

ros2 launch autoware_pointcloud_preprocessor random_downsample_filter_node.launch.xml

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@vividf vividf self-assigned this Aug 15, 2024
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) labels Aug 15, 2024
Copy link

github-actions bot commented Aug 15, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@vividf vividf added tag:deploy-docs Mark for deploy-docs action generation. (used-by-ci) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) and removed type:documentation Creating or refining documentation. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) labels Aug 15, 2024
@vividf vividf changed the title feat: rework random downsample filter parameter refactor(autoware_pointcloud_preprocessor): rework random downsample filter parameters Aug 15, 2024
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 23.78%. Comparing base (6860be8) to head (0fbd889).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ownsample_filter/random_downsample_filter_node.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8485      +/-   ##
==========================================
- Coverage   27.84%   23.78%   -4.06%     
==========================================
  Files        1324     1413      +89     
  Lines       98838   103175    +4337     
  Branches    39680    39599      -81     
==========================================
- Hits        27523    24542    -2981     
- Misses      71281    76275    +4994     
- Partials       34     2358    +2324     
Flag Coverage Δ *Carryforward flag
differential 21.57% <0.00%> (?)
total 23.91% <ø> (-3.94%) ⬇️ Carriedforward from 46d6738

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

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

@@ -58,7 +58,7 @@ RandomDownsampleFilterComponent::RandomDownsampleFilterComponent(
{
// set initial parameters
{
sample_num_ = static_cast<size_t>(declare_parameter("sample_num", 1500));
Copy link
Contributor

Choose a reason for hiding this comment

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

types do no coincide

Copy link
Contributor Author

@vividf vividf Aug 20, 2024

Choose a reason for hiding this comment

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

@knzo25 thanks! However, declare_parameter<size_t> doesn't work for ros2 parameter. (compile will failed)
image

reference: https://autowarefoundation.github.io/autoware-documentation/main/contributing/coding-guidelines/ros-nodes/parameters/

Copy link
Contributor

Choose a reason for hiding this comment

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

Same reply as other PRs

Copy link
Contributor Author

@vividf vividf Aug 20, 2024

Choose a reason for hiding this comment

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

Thanks! Fixed in 9d3fb7f

Copy link
Contributor

@knzo25 knzo25 left a comment

Choose a reason for hiding this comment

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

Just one data type-related comment

…github.com:vividf/autoware.universe into refactor/rework_random_downsample_filter_parameter
@vividf vividf requested a review from knzo25 August 20, 2024 08:15
@vividf
Copy link
Contributor Author

vividf commented Sep 3, 2024

@knzo25 kindly ping

Copy link
Contributor

@knzo25 knzo25 left a comment

Choose a reason for hiding this comment

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

LGTM

@vividf vividf enabled auto-merge (squash) September 12, 2024 13:06
@vividf vividf merged commit c44343b into autowarefoundation:main Sep 12, 2024
31 of 32 checks passed
batuhanbeytekin pushed a commit to batuhanbeytekin/autoware.universe that referenced this pull request Sep 12, 2024
…filter parameters (autowarefoundation#8485)

* feat: rework random downsample filter parameter

Signed-off-by: vividf <[email protected]>

* chore: change name

Signed-off-by: vividf <[email protected]>

* chore: add explicit cast

Signed-off-by: vividf <[email protected]>

---------

Signed-off-by: vividf <[email protected]>
Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]>
Signed-off-by: Batuhan Beytekin <[email protected]>
batuhanbeytekin pushed a commit to batuhanbeytekin/autoware.universe that referenced this pull request Sep 12, 2024
…filter parameters (autowarefoundation#8485)

* feat: rework random downsample filter parameter

Signed-off-by: vividf <[email protected]>

* chore: change name

Signed-off-by: vividf <[email protected]>

* chore: add explicit cast

Signed-off-by: vividf <[email protected]>

---------

Signed-off-by: vividf <[email protected]>
Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]>
Signed-off-by: Batuhan Beytekin <[email protected]>
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) tag:deploy-docs Mark for deploy-docs action generation. (used-by-ci) tag:require-cuda-build-and-test tag: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.

2 participants