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(pointcloud_preprocessor): publish excluded points in ring_outlier_filter for debug purpose #6483

Conversation

kyoichi-sugahara
Copy link
Contributor

Description

Publish excluded points in ring_outlier_filter for visualization.
This feature is disabled by default.

The white points have been excluded by the ring_outlier_filter, whereas the colorful points represent the pointcloud after the ring_outlier_filter.
Screenshot from 2024-02-23 19-56-31

Tests performed

running logging_simulator with enabling sensing moudle.

How to check this feature

  1. Visualizing filtered/excluded pointcloud in rviz by applying following change
necessary change for autoware.rviz
    - Alpha: 1
      Autocompute Intensity Bounds: true
      Autocompute Value Bounds:
        Max Value: 5
        Min Value: -10
        Value: false
      Axis: Z
      Channel Name: intensity
      Class: rviz_default_plugins/PointCloud2
      Color: 255; 255; 255
      Color Transformer: Intensity
      Decay Time: 0
      Enabled: true
      Invert Rainbow: false
      Max Color: 255; 255; 255
      Max Intensity: 79
      Min Color: 0; 0; 0
      Min Intensity: 1
      Name: left filterd points
      Position Transformer: XYZ
      Selectable: false
      Size (Pixels): 2
      Size (m): 0.019999999552965164
      Style: Points
      Topic:
        Depth: 5
        Durability Policy: Volatile
        Filter size: 10
        History Policy: Keep Last
        Reliability Policy: Best Effort
        Value: /sensing/lidar/left/pointcloud
      Use Fixed Frame: true
      Use rainbow: true
      Value: true
    - Alpha: 1
      Autocompute Intensity Bounds: true
      Autocompute Value Bounds:
        Max Value: 5
        Min Value: -10
        Value: false
      Axis: Z
      Channel Name: intensity
      Class: rviz_default_plugins/PointCloud2
      Color: 255; 255; 255
      Color Transformer: FlatColor
      Decay Time: 0
      Enabled: true
      Invert Rainbow: false
      Max Color: 255; 255; 255
      Max Intensity: 4096
      Min Color: 0; 0; 0
      Min Intensity: 0
      Name: left lidar excluded points
      Position Transformer: XYZ
      Selectable: false
      Size (Pixels): 7
      Size (m): 0.019999999552965164
      Style: Points
      Topic:
        Depth: 5
        Durability Policy: Volatile
        Filter size: 10
        History Policy: Keep Last
        Reliability Policy: Best Effort
        Value: /sensing/lidar/left/debug/ring_outlier_filter
      Use Fixed Frame: true
      Use rainbow: true
      Value: true
  1. launch logging_simulator with following commnad
ros2 launch autoware_launch logging_simulator.launch.xml map_path:=/path_to_your_map vehicle_model:=lexus sensor_model:=aip_xx1 sensing:=true
  1. Enabling this feature (for left lidar for example) with following command
ros2 param set /sensing/lidar/left/ring_outlier_filter publish_excluded_points true
  1. play rosbag

sample rosbag for TIER IV developer
TIERIV INTERNAL LINK
Basically I expect this feature works with any rosbag file though.

Effects on system behavior

Not applicable.

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 Feb 23, 2024
@kyoichi-sugahara kyoichi-sugahara force-pushed the feat/publish_filtered_out_points branch from 940da42 to f602ad3 Compare February 23, 2024 11:25
@miursh miursh self-assigned this Feb 24, 2024
@miursh miursh added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 24, 2024
Copy link

codecov bot commented Feb 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 36 lines in your changes are missing coverage. Please review.

Project coverage is 14.63%. Comparing base (e64415b) to head (2ae8c9f).
Report is 4 commits behind head on main.

Files Patch % Lines
...src/outlier_filter/ring_outlier_filter_nodelet.cpp 0.00% 36 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6483      +/-   ##
==========================================
- Coverage   14.63%   14.63%   -0.01%     
==========================================
  Files        1900     1900              
  Lines      130645   130678      +33     
  Branches    38381    38381              
==========================================
  Hits        19123    19123              
- Misses      90064    90097      +33     
  Partials    21458    21458              
Flag Coverage Δ *Carryforward flag
differential 5.21% <0.00%> (?)
total 14.63% <ø> (+<0.01%) ⬆️ Carriedforward from e64415b

*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.

@kyoichi-sugahara kyoichi-sugahara force-pushed the feat/publish_filtered_out_points branch from f602ad3 to 5640819 Compare February 27, 2024 02:05
@kyoichi-sugahara kyoichi-sugahara removed the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 27, 2024
Copy link
Contributor

@badai-nguyen badai-nguyen left a comment

Choose a reason for hiding this comment

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

LGTM

@kyoichi-sugahara kyoichi-sugahara added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 27, 2024
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@xmfcx xmfcx force-pushed the feat/publish_filtered_out_points branch from 501c2d1 to 2ae8c9f Compare February 28, 2024 15:04
@xmfcx
Copy link
Contributor

xmfcx commented Feb 28, 2024

Updated with a rebase because this PR is merged:

@kyoichi-sugahara kyoichi-sugahara merged commit 0410e92 into autowarefoundation:main Feb 28, 2024
18 of 22 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the feat/publish_filtered_out_points branch February 28, 2024 16:34
HansRobo pushed a commit that referenced this pull request Mar 12, 2024
…r_filter for debug purpose (#6483)

* publish excluded points for debug purpose

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* improve performance of extraction method

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* change variable name to avoid spell miss checker error

---------

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…r_filter for debug purpose (autowarefoundation#6483)

* publish excluded points for debug purpose

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* improve performance of extraction method

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* change variable name to avoid spell miss checker error

---------

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
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) 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.

4 participants