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

fix(ring_outlier_filter): change a parameter to be less misleading #4981

Closed
wants to merge 3 commits into from

Conversation

sykwer
Copy link
Member

@sykwer sykwer commented Sep 13, 2023

Description

The name of a ring_outlier_filter parameter (max_rings_num) has been changed to be less misleading (max_ring_index), and the source code has been modified accordingly.

In a project using Autoware, max_rings_num was set to 128 (i.e. the range of ring index was set to be 0~127), but actually the maximum value of ring index was 128.
To prevent this kind of thing, the parameter name should be changed to be less misleading.

TIER IV internal link

Tests performed

Even in projects with a maximum ring index of 128, it worked without error messages.

Effects on system behavior

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.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@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 Sep 13, 2023
@sykwer sykwer added the type:bug Software flaws or errors. label Sep 13, 2023
@sykwer sykwer marked this pull request as ready for review September 13, 2023 16:15
sykwer and others added 2 commits September 19, 2023 21:01
| `distance_ratio` | double | 1.03 | |
| `object_length_threshold` | double | 0.1 | |
| `num_points_threshold` | int | 4 | |
| `max_ring_index` | uint_16 | 128 | `128` corresponds to vls128. |
Copy link
Contributor

Choose a reason for hiding this comment

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

For index, I am not sure if it is 127 or 128 when using vls128. max_rings_num would be easier to understand if it is 128.

Copy link
Contributor

Choose a reason for hiding this comment

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

related comment: #4981 (comment)
cc @taikitanaka3

Copy link
Contributor

Choose a reason for hiding this comment

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

@yukkysaito

In a project using Autoware, max_rings_num was set to 128 (i.e. the range of ring index was set to be 0~127), but actually the maximum value of ring index was 128.
To prevent this kind of thing, the parameter name should be changed to be less misleading.

Based on this explanation, wouldn't it be more appropriate to use 'max_rings_index' rather than 'max_rings_num'?

Copy link
Contributor

@yukkysaito yukkysaito Oct 27, 2023

Choose a reason for hiding this comment

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

@tkimura4 If it weren't for the description, I would think that vls128 would be correct to specify 127 based on the name max_ring_index.
Wouldn't it be better to fix the index set to 128?

Copy link

stale bot commented Dec 26, 2023

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Dec 26, 2023
@miursh
Copy link
Contributor

miursh commented Feb 13, 2024

We are closing this PR as there are no response for months. Please re-open if the issue still persists.

@miursh miursh closed this Feb 13, 2024
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) status:stale Inactive or outdated issues. (auto-assigned) type:bug Software flaws or errors. type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants