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(crop_box_filter): fix bug #2992

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

sykwer
Copy link
Member

@sykwer sykwer commented Mar 3, 2023

Description

Fix bug in #2908.
Resolve #2970.

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.

Signed-off-by: Takahiro Ishikawa <sykwer@gmail.com>
@sykwer sykwer requested review from amc-nu, miursh, yukkysaito and a team as code owners March 3, 2023 02:24
@github-actions github-actions bot added the component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) label Mar 3, 2023
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

@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (f9075cb) 12.81% compared to head (e5288eb) 12.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2992      +/-   ##
==========================================
- Coverage   12.81%   12.79%   -0.02%     
==========================================
  Files        1212     1212              
  Lines       85613    85714     +101     
  Branches    24260    24260              
==========================================
  Hits        10968    10968              
- Misses      63282    63383     +101     
  Partials    11363    11363              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 12.81% <ø> (+<0.01%) ⬆️ Carriedforward from 4c98689

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

Impacted Files Coverage Δ
...havior_path_planner/behavior_path_planner_node.hpp 0.00% <ø> (ø)
...th_planner/scene_module/scene_module_interface.hpp 0.00% <ø> (ø)
...or_path_planner/src/behavior_path_planner_node.cpp 0.15% <ø> (ø)
...or/src/crop_box_filter/crop_box_filter_nodelet.cpp 0.00% <0.00%> (ø)
...entation/include/ground_segmentation/gencolors.hpp 0.00% <0.00%> (ø)
...ssor/src/passthrough_filter/passthrough_uint16.cpp 0.00% <0.00%> (ø)
...rocessor/passthrough_filter/passthrough_uint16.hpp 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.

@VRichardJP
Copy link
Contributor

Although it is not related to the bug, I think there is another problem with the implementation: the last point of the point cloud is ignored:

for (size_t global_offset = 0; global_offset + input->point_step < input->data.size();
global_offset += input->point_step) {

Let's take a simple example: input cloud is 1D and has 1 point. Then:

  • input->point_step = 1
  • input->data.size() = 1
    So when the loop starts (global_offset = 0), the clause global_offset + input->point_step < input->data.size() is false and we immediately leave the loop, ignoring the first (last) point.

Could you fix that as well?

Signed-off-by: Takahiro Ishikawa <sykwer@gmail.com>
@sykwer sykwer enabled auto-merge (squash) March 3, 2023 03:21
@sykwer sykwer merged commit a9faeda into autowarefoundation:main Mar 3, 2023
1222-takeshi pushed a commit to 1222-takeshi/autoware.universe that referenced this pull request Mar 6, 2023
* Fix bug

Signed-off-by: Takahiro Ishikawa <sykwer@gmail.com>

* Fix bug

Signed-off-by: Takahiro Ishikawa <sykwer@gmail.com>

---------

Signed-off-by: Takahiro Ishikawa <sykwer@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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ring_outlier_filter output is sometimes empty
3 participants