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(map_loader): handle enable_selected_load correctly #3920

Conversation

kminoda
Copy link
Contributor

@kminoda kminoda commented Jun 8, 2023

Description

The previous implementation did not consider a case where enable_partial_load and enable_differential_load is set false but enable_selected_load is set true.

Related links

None

Tests performed

Launch with following config before and after PR, and confirmed that the selected node client launches successfully after the PR while not before.

/**:
  ros__parameters:
    enable_whole_load: true
    enable_downsampled_whole_load: false
    enable_partial_load: false
    enable_differential_load: false
    enable_selected_load: true

    # only used when downsample_whole_load enabled
    leaf_size: 3.0 # downsample leaf size [m]

Notes for reviewers

Interface changes

None

Effects on system behavior

None

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

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

kminoda added 2 commits June 8, 2023 11:47
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@kminoda kminoda requested a review from Shin-kyoto June 8, 2023 03:07
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:map Map creation, storage, and loading. (auto-assigned) labels Jun 8, 2023
@kminoda kminoda changed the title Fix/map loader/flag of enable selected load fix(map_loader): flag of enable selected load Jun 8, 2023
@kminoda kminoda changed the title fix(map_loader): flag of enable selected load fix(map_loader): handle enable_selected_load correctly Jun 8, 2023
@kminoda kminoda marked this pull request as ready for review June 8, 2023 03:12
@kminoda kminoda requested review from mitsudome-r, RyuYamamoto and a team as code owners June 8, 2023 03:12
Copy link
Contributor

@Shin-kyoto Shin-kyoto 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 Jun 8, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (35bc65a) 14.05% compared to head (e3567c4) 14.05%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3920   +/-   ##
=======================================
  Coverage   14.05%   14.05%           
=======================================
  Files        1456     1456           
  Lines      102521   102521           
  Branches    27295    27295           
=======================================
  Hits        14411    14411           
  Misses      72323    72323           
  Partials    15787    15787           
Flag Coverage Δ *Carryforward flag
differential 26.34% <0.00%> (?)
total 14.05% <ø> (+<0.01%) ⬆️ Carriedforward from 994728f

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

Impacted Files Coverage Δ
...intcloud_map_loader/pointcloud_map_loader_node.cpp 1.69% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: kminoda <koji.minoda@tier4.jp>
@github-actions github-actions bot removed the type:documentation Creating or refining documentation. (auto-assigned) label Jun 8, 2023
Copy link
Contributor

@RyuYamamoto RyuYamamoto left a comment

Choose a reason for hiding this comment

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

LGTM

@kminoda kminoda merged commit a09b2c9 into autowarefoundation:main Jun 9, 2023
@kminoda kminoda deleted the fix/map_loader/flag_of_enable_selected_load branch August 10, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:map Map creation, storage, and loading. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants