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(ground_segmentation): add intensity field #6791

Conversation

badai-nguyen
Copy link
Contributor

@badai-nguyen badai-nguyen commented Apr 11, 2024

Description

Releated Link

Tests performed

  • Confirmed by logging_simulator that the scan_ground_segmentation output pointcloud with intensity using the padding field without increasing point_steps number (=16)

image

/**:
  ros__parameters:
    additional_lidars: []
    ransac_input_topics: [
      "/sensing/lidar/left/min_range_cropped/pointcloud",]
    use_single_frame_filter: False
    use_time_series_filter: True

    common_crop_box_filter:
       .
       .
       .
    short_height_obstacle_detection_area_filter:
      parameters:
        min_x: 0.0
        max_x: 19.6  # max_x: 18.0m + base_link2livox_front_center distance 1.6m
        min_y: -4.0
        max_y: 4.0
        min_z: -0.5
        max_z: 0.5
        negative: False

ransac_ground_filter:
      parameters:
        base_frame: "base_link"
        unit_axis: "z"
        min_trial: 5000
        min_points: 1000
        outlier_threshold: 0.1
        min_points: 400
        min_inliers: 200
        max_iterations: 50
        height_threshold: 0.15
        plane_slope_threshold: 10.0
        voxel_size_x: 0.2
        voxel_size_y: 0.2
        voxel_size_z: 0.2
        debug: False

image

image

      plugin: "ground_segmentation::RayGroundFilterComponent"
      parameters:
        min_x: -0.01
        max_x: 0.01
        min_y: -0.01
        max_y: 0.01
        use_vehicle_footprint: false
        general_max_slope: 8.0
        local_max_slope: 6.0
        initial_max_slope: 3.0
        radial_divider_angle: 1.0
        min_height_threshold: 0.15
        concentric_divider_distance: 0.0
        reclass_distance_threshold: 0.1
  • Confirmed that ray_ground_filter also ray_ground_filter copy input fields into output topic.

image

Not applicable.

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 the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Apr 11, 2024
@badai-nguyen badai-nguyen marked this pull request as ready for review April 12, 2024 16:46
@badai-nguyen badai-nguyen requested a review from YoshiRi as a code owner April 16, 2024 13:21
@github-actions github-actions bot added the component:launch Launch files, scripts and initialization tools. (auto-assigned) label Apr 16, 2024
@xmfcx xmfcx changed the title fix(grond_segmentation): add intensity field fix(ground_segmentation): add intensity field Apr 17, 2024
@github-actions github-actions bot removed the component:launch Launch files, scripts and initialization tools. (auto-assigned) label Apr 18, 2024
@badai-nguyen badai-nguyen marked this pull request as draft April 26, 2024 07:51
@badai-nguyen badai-nguyen marked this pull request as ready for review April 30, 2024 16:16
Copy link
Contributor

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

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

Just a minor comment in ray_ground_filter. Because I am not sure how this filter is used now, my comment is not necessary for autoware update. You may ignore my comment.

Signed-off-by: badai-nguyen <[email protected]>
Copy link
Contributor

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

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

LGTM

@badai-nguyen
Copy link
Contributor Author

@yukkysaito @miursh Could you approve this PR as codeowner?

@badai-nguyen badai-nguyen added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label May 7, 2024
Signed-off-by: badai-nguyen <[email protected]>
@badai-nguyen badai-nguyen merged commit 729eec0 into autowarefoundation:main May 9, 2024
20 of 22 checks passed
vividf pushed a commit to vividf/autoware.universe that referenced this pull request May 16, 2024
* fix(grond_segmentation): add intensity

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(scan_ground_filter): intensity bug fix

Signed-off-by: badai-nguyen <[email protected]>

* fix(ground_segmentation): add field select option

Signed-off-by: badai-nguyen <[email protected]>

* Revert "fix(ground_segmentation): add field select option"

This reverts commit 36fc554.

* fix: copy input field to output

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): indices extract bug fix

Signed-off-by: badai-nguyen <[email protected]>

* refactor: ray_ground_filter

Signed-off-by: badai-nguyen <[email protected]>

* fix: indices max

Signed-off-by: badai-nguyen <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: badai-nguyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: vividf <[email protected]>
badai-nguyen added a commit to tier4/autoware.universe that referenced this pull request May 30, 2024
* fix(grond_segmentation): add intensity

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(scan_ground_filter): intensity bug fix

Signed-off-by: badai-nguyen <[email protected]>

* fix(ground_segmentation): add field select option

Signed-off-by: badai-nguyen <[email protected]>

* Revert "fix(ground_segmentation): add field select option"

This reverts commit 36fc554.

* fix: copy input field to output

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): indices extract bug fix

Signed-off-by: badai-nguyen <[email protected]>

* refactor: ray_ground_filter

Signed-off-by: badai-nguyen <[email protected]>

* fix: indices max

Signed-off-by: badai-nguyen <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: badai-nguyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
* fix(grond_segmentation): add intensity

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(scan_ground_filter): intensity bug fix

Signed-off-by: badai-nguyen <[email protected]>

* fix(ground_segmentation): add field select option

Signed-off-by: badai-nguyen <[email protected]>

* Revert "fix(ground_segmentation): add field select option"

This reverts commit 36fc554.

* fix: copy input field to output

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): indices extract bug fix

Signed-off-by: badai-nguyen <[email protected]>

* refactor: ray_ground_filter

Signed-off-by: badai-nguyen <[email protected]>

* fix: indices max

Signed-off-by: badai-nguyen <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: badai-nguyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1222-takeshi added a commit to 1222-takeshi/autoware.universe that referenced this pull request Jun 13, 2024
badai-nguyen added a commit to tier4/autoware.universe that referenced this pull request Jun 14, 2024
* fix(grond_segmentation): add intensity

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): change to pointXYZI

Signed-off-by: badai-nguyen <[email protected]>

* fix(scan_ground_filter): intensity bug fix

Signed-off-by: badai-nguyen <[email protected]>

* fix(ground_segmentation): add field select option

Signed-off-by: badai-nguyen <[email protected]>

* Revert "fix(ground_segmentation): add field select option"

This reverts commit 36fc554.

* fix: copy input field to output

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ransac_ground_filter): copy input fields

Signed-off-by: badai-nguyen <[email protected]>

* fix(ray_ground_filter): indices extract bug fix

Signed-off-by: badai-nguyen <[email protected]>

* refactor: ray_ground_filter

Signed-off-by: badai-nguyen <[email protected]>

* fix: indices max

Signed-off-by: badai-nguyen <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: badai-nguyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Comment on lines +300 to +307
float x = *reinterpret_cast<float *>(input->data[global_size + x_offset]);
float y = *reinterpret_cast<float *>(input->data[global_size + y_offset]);
float z = *reinterpret_cast<float *>(input->data[global_size + z_offset]);
const Eigen::Vector3d transformed_point = plane_affine.inverse() * Eigen::Vector3d(x, y, z);
if (std::abs(transformed_point.z()) > height_threshold_) {
no_ground_cloud_ptr->points.push_back(p);
std::memcpy(
&no_ground_cloud_msg_ptr->data[output_size], &input->data[global_size], point_step);
output_size += point_step;
Copy link
Contributor

Choose a reason for hiding this comment

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

The node crashes here, so please fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants