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

test(image_projection_based_fusion): add unit test code for geometry #7096

Conversation

MasatoSaeki
Copy link
Contributor

Description

Add unit test for below in image_projection_basef_fusion package

  • objectToVertices
  • boundingBoxToVertices
  • cylinderToVertices
  • transformPoints
  • is_inside
  • sanitizeROI

Tests performed

colcon test --merge-install --packages-select image_projection_based_fusion --event-handlers console_cohesion+

Effects on system behavior

Not applicable.

Interface changes

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 May 22, 2024
@kminoda kminoda added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label May 23, 2024
Copy link
Contributor

@kminoda kminoda 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 the PR 🎉
I left some minor comments on the coding style

Comment on lines 140 to 141
int height_ = 400; // image height
int width_ = 300; // image width
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
int height_ = 400; // image height
int width_ = 300; // image width
int height = 400; // image height
int width = 300; // image width

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in be2118e

Copy link
Contributor

@kminoda kminoda left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@MasatoSaeki MasatoSaeki enabled auto-merge (squash) May 31, 2024 03:49
@kminoda
Copy link
Contributor

kminoda commented May 31, 2024

@MasatoSaeki I forced the DCO CI passed. From next time please signoff for each github commit (by git commit -m "..." -s) 👍
https://autowarefoundation.github.io/autoware-documentation/main/contributing/pull-request-guidelines/commit-guidelines/#sign-off-your-commits-required-automated

MasatoSaeki and others added 3 commits May 31, 2024 14:34
…_based_fusion/test_vertices_points_inside_roi
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
@MasatoSaeki
Copy link
Contributor Author

@kminoda
I am sorry.
I could not merge this PR becauce build-and-test-differential in CI was not passed. This problem is solved in 6eba819. so Could you force DCO CI passed again?

@MasatoSaeki MasatoSaeki merged commit e132ad7 into autowarefoundation:main Jun 3, 2024
22 checks passed
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…utowarefoundation#7096)

* add geometry utility test code

* style(pre-commit): autofix

* fix scope and declare

* change declare name

* style(pre-commit): autofix

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
a-maumau pushed a commit to a-maumau/autoware.universe that referenced this pull request Jun 7, 2024
…utowarefoundation#7096)

* add geometry utility test code

* style(pre-commit): autofix

* fix scope and declare

* change declare name

* style(pre-commit): autofix

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@MasatoSaeki MasatoSaeki deleted the test/image_projection_based_fusion/test_vertices_points_inside_roi branch July 11, 2024 03:03
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
…7096)

* add geometry utility test code

* style(pre-commit): autofix

* fix scope and declare

* change declare name

* style(pre-commit): autofix

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

3 participants