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

refactor(detected_object_validation): apply util functions defined in the other packages #2093

Merged

Conversation

ktro2828
Copy link
Contributor

Description

Refactor some parts of package.

  • add sturct for parameter named FilterTargetLabel in utils.hpp 23e455b
  • apply perception_utils::isCarLikeVehicle() function b595ae2
  • apply tier4_autoware_utils::toPolygon2d() function ebf40b8

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: ktro2828 <kotaro.uetake@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 requested review from scepter914 and miursh October 18, 2022 05:22
@ktro2828 ktro2828 requested a review from yukkysaito as a code owner October 18, 2022 05:22
@codecov
Copy link

codecov bot commented Oct 18, 2022

Codecov Report

Base: 10.78% // Head: 10.76% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (577ce2a) compared to base (272f8a2).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2093      +/-   ##
==========================================
- Coverage   10.78%   10.76%   -0.02%     
==========================================
  Files        1179     1179              
  Lines       84449    84553     +104     
  Branches    19795    19795              
==========================================
  Hits         9104     9104              
- Misses      65853    65957     +104     
  Partials     9492     9492              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.76% <0.00%> (ø) Carriedforward from 272f8a2

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

Impacted Files Coverage Δ
...ed_object_validation/src/object_lanelet_filter.cpp 0.00% <0.00%> (ø)
...d_object_validation/src/object_position_filter.cpp 0.00% <0.00%> (ø)
...dation/src/obstacle_pointcloud_based_validator.cpp 0.00% <0.00%> (ø)
..._validation/src/occupancy_grid_based_validator.cpp 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.

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 force-pushed the refactor/detected_object_validation branch from fbaec5a to c53e536 Compare October 18, 2022 06:05
Copy link
Contributor

@scepter914 scepter914 left a comment

Choose a reason for hiding this comment

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

Thank you for well-written refactoring PR.
I just pointed out a bit, so would you confirm these?

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828
Copy link
Contributor Author

Updated to divide validation operation in ObjectPositionFilterNode into a method such as ObjectLaneletFilterNode's isPolygonOnverlapLanelets() with b317b81

@ktro2828 ktro2828 requested a review from scepter914 October 18, 2022 09:54
Copy link
Contributor

@scepter914 scepter914 left a comment

Choose a reason for hiding this comment

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

LGTM

@ktro2828 ktro2828 self-assigned this Oct 19, 2022
@ktro2828 ktro2828 enabled auto-merge (squash) October 20, 2022 01:02
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.

LGM

@ktro2828 ktro2828 merged commit 206bcdb into autowarefoundation:main Oct 20, 2022
@Shin-kyoto
Copy link
Contributor

Shin-kyoto commented Oct 21, 2022

@ktro2828

  1. src/utils.cpp is not written here, so src/utils.cpp is not built and runtime error occurs.

    ament_auto_add_library(object_lanelet_filter SHARED
    src/object_lanelet_filter.cpp
    )
    ament_auto_add_library(object_position_filter SHARED
    src/object_position_filter.cpp
    )

  2. This is wrong. #include <autoware_auto_perception_msgs/msg/ObjectClassification.hpp> should be #include <autoware_auto_perception_msgs/msg/object_classification.hpp>

#include <autoware_auto_perception_msgs/msg/ObjectClassification.hpp>

https://github.com/tier4/autoware_auto_msgs/blob/tier4/main/autoware_auto_perception_msgs/msg/ObjectClassification.idl

ktro2828 added a commit to ktro2828/autoware.universe that referenced this pull request Oct 21, 2022
ktro2828 added a commit to ktro2828/autoware.universe that referenced this pull request Oct 21, 2022
…fined in the other packages (autowarefoundation#2093)"

This reverts commit 206bcdb.

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 deleted the refactor/detected_object_validation branch May 11, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants