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(elevation_map_loader): add package name prefix autoware_, fix namespace and directory structure #7988

Conversation

technolojin
Copy link
Contributor

@technolojin technolojin commented Jul 12, 2024

Description

This PR puts headers in the autoware namespace.
It also adds the autoware_ prefix to the package name.

  1. Folder name (appears as file renaming)
  2. Package names in CMakeLists.txt, package.xml
  3. README.md
  4. Launch files $(find-pkg-share ...)
  5. .github/CODEOWNERS

Rework of #7807

Additional works

  1. Align directory structure to follow the coding guidelines.
  2. Clean unused dependencies LIST

This PR do not contains any logic change.

Related links

Part of: autowarefoundation/autoware#4569

How was this PR tested?

Tested in a local recompute environment with the following options settings.

  • options
  1. autoware_launch/config/perception/obstacle_segmentation/ground_segmentation/ground_segmentation.param.yaml
    use_single_frame_filter: True
  2. universe/launch/tier4_perception_launch/launch/obstacle_segmentation/ground_segmentation/ground_segmentation.launch.py
    "use_inpaint": True,
    "use_elevation_map_cloud_publisher": True,
  • visualization
    Elevation map (GridMap) /perception/obstacle_segmentation/elevation_map/map
    Screenshot from 2024-07-18 18-00-48

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) labels Jul 12, 2024
Copy link

github-actions bot commented Jul 12, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@technolojin technolojin added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 12, 2024
@technolojin technolojin marked this pull request as ready for review July 12, 2024 00:07
Copy link

codecov bot commented Jul 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 29.17%. Comparing base (bab6f4f) to head (7964989).
Report is 4 commits behind head on main.

Files Patch % Lines
...ation_map_loader/src/elevation_map_loader_node.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7988      +/-   ##
==========================================
- Coverage   29.24%   29.17%   -0.07%     
==========================================
  Files        1596     1598       +2     
  Lines      117690   117821     +131     
  Branches    50708    50704       -4     
==========================================
- Hits        34415    34380      -35     
- Misses      74105    74275     +170     
+ Partials     9170     9166       -4     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 29.23% <ø> (-0.01%) ⬇️ Carriedforward from bab6f4f

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

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

@technolojin technolojin enabled auto-merge (squash) July 12, 2024 02:28
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.

@technolojin

Did elevation_map_loader_node run in the TIER IV Cloud environment?

@technolojin
Copy link
Contributor Author

@technolojin

Did elevation_map_loader_node run in the TIER IV Cloud environment?

I realize the node is not tested.
I could not confirm the node is working properly before this PR changes.

@Shin-kyoto
Can you confirm if the main branch works with the node enabled?

@technolojin
Copy link
Contributor Author

@Shin-kyoto I could visualize the grid map, in the PR changes. see #7988 (comment).

@technolojin technolojin requested a review from Shin-kyoto July 16, 2024 02:18
@technolojin technolojin marked this pull request as draft July 16, 2024 05:54
auto-merge was automatically disabled July 16, 2024 05:54

Pull request was converted to draft

@technolojin technolojin force-pushed the refactor/namespace-elevation_map_loader branch from 8ab021c to 4dc12b5 Compare July 17, 2024 09:18
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) type:ci Continuous Integration (CI) processes and testing. (auto-assigned) labels Jul 17, 2024
@technolojin technolojin changed the title refactor(elevation_map_loader): fix namespace and directory structure refactor(elevation_map_loader): add package name prefix autoware_, fix namespace and directory structure Jul 18, 2024
@technolojin technolojin force-pushed the refactor/namespace-elevation_map_loader branch from 612e539 to 332ccbc Compare July 18, 2024 09:02
@technolojin technolojin marked this pull request as ready for review July 18, 2024 09:04
@technolojin technolojin requested a review from tkimura4 as a code owner July 18, 2024 09:04
@technolojin technolojin enabled auto-merge (squash) July 19, 2024 05:56
@technolojin technolojin force-pushed the refactor/namespace-elevation_map_loader branch from 332ccbc to bc9f807 Compare July 22, 2024 06:21
@technolojin technolojin disabled auto-merge July 22, 2024 06:22
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.

@technolojin
I want to review this PR by running autoware. However, there are many breaking changes and conflicts with main, so it is difficult to build an environment to check its operation.
Could you please share the autoware.repos of the environment you check this PR?

@technolojin technolojin force-pushed the refactor/namespace-elevation_map_loader branch from 1246faf to a4c58d8 Compare July 24, 2024 04:15
@technolojin technolojin requested a review from Shin-kyoto July 25, 2024 00:04
@technolojin technolojin force-pushed the refactor/namespace-elevation_map_loader branch 2 times, most recently from 6627b88 to 6b95244 Compare July 25, 2024 02:02
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

chore: remove unused dependencies

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix
Rename the `elevation_map_loader` package to `autoware_elevation_map_loader` to align with the Autoware naming convention.

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix
@technolojin technolojin force-pushed the refactor/namespace-elevation_map_loader branch from 6b95244 to 7964989 Compare July 25, 2024 03:04
@technolojin technolojin self-assigned this Jul 25, 2024
@technolojin technolojin enabled auto-merge (squash) July 25, 2024 06:57
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

Result:

  • log
[component_container_mt-1] [INFO 1721893359.854956929] [perception.obstacle_segmentation.elevation_map.elevation_map_loader]: Saving elevation map successful: true
  • ros2 topic echo
autoware:~/autoware$ ros2 topic echo /perception/obstacle_segmentation/elevation_map/map --no-arr
header:
  stamp:
    sec: 0
    nanosec: 0
  frame_id: map
info:
  resolution: 0.3
  length_x: 1455.6
  length_y: 1772.1
  pose:
    position:
      x: 89272.140625
      y: 42713.98046875
      z: 0.0
    orientation:
      x: 0.0
      y: 0.0
      z: 0.0
      w: 1.0
layers: '<sequence type: string, length: 1>'
basic_layers: '<sequence type: string, length: 0>'
data: '<sequence type: std_msgs/msg/Float32MultiArray, length: 1>'
outer_start_index: 0
inner_start_index: 0
  • rviz

image

@technolojin technolojin merged commit 76e87c0 into autowarefoundation:main Jul 25, 2024
28 of 30 checks passed
@technolojin technolojin deleted the refactor/namespace-elevation_map_loader branch July 26, 2024 02:19
chihungtzeng pushed a commit to chihungtzeng/autoware.universe that referenced this pull request Jul 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…fix namespace and directory structure (autowarefoundation#7988)

* refactor: add namespace, remove unused dependencies, file structure

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

chore: remove unused dependencies

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix

* refactor: rename elevation_map_loader to autoware_elevation_map_loader

Rename the `elevation_map_loader` package to `autoware_elevation_map_loader` to align with the Autoware naming convention.

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix
a-maumau pushed a commit to a-maumau/autoware.universe that referenced this pull request Jul 28, 2024
…fix namespace and directory structure (autowarefoundation#7988)

* refactor: add namespace, remove unused dependencies, file structure

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

chore: remove unused dependencies

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix

* refactor: rename elevation_map_loader to autoware_elevation_map_loader

Rename the `elevation_map_loader` package to `autoware_elevation_map_loader` to align with the Autoware naming convention.

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix
batuhanbeytekin pushed a commit to batuhanbeytekin/autoware.universe that referenced this pull request Aug 2, 2024
…fix namespace and directory structure (autowarefoundation#7988)

* refactor: add namespace, remove unused dependencies, file structure

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

chore: remove unused dependencies

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix

* refactor: rename elevation_map_loader to autoware_elevation_map_loader

Rename the `elevation_map_loader` package to `autoware_elevation_map_loader` to align with the Autoware naming convention.

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix

Signed-off-by: Batuhan Beytekin <batuhanbeytekin@gmail.com>
esteve pushed a commit to esteve/autoware.universe that referenced this pull request Aug 13, 2024
…fix namespace and directory structure (autowarefoundation#7988)

* refactor: add namespace, remove unused dependencies, file structure

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

chore: remove unused dependencies

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix

* refactor: rename elevation_map_loader to autoware_elevation_map_loader

Rename the `elevation_map_loader` package to `autoware_elevation_map_loader` to align with the Autoware naming convention.

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

style(pre-commit): autofix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:launch Launch files, scripts and initialization tools. (auto-assigned) 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) type:ci Continuous Integration (CI) processes and testing. (auto-assigned) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants