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(behavior_path_planner): use function with color name #4797

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 commented Aug 29, 2023

Description

🤖 Generated by Copilot at 0dd15e4

This pull request refactors the code for specifying colors for markers in the behavior_path_planner package. It introduces a new header file colors.hpp that defines color utility functions, and updates the debug.cpp source file to use them. It also removes the redundant colorsList function from the utils.hpp header file. The purpose of these changes is to simplify and standardize the color usage for lane change visualization and debugging.

Required #4796 to be merged.

Tests performed

  1. Compile autoware and ensure it builds successfully.
  2. Run lane change scenario to ensure the debug marker works.

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:planning Route planning, decision-making, and navigation. (auto-assigned) label Aug 29, 2023
Copy link
Contributor

@satoshi-ota satoshi-ota left a comment

Choose a reason for hiding this comment

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

LGTM!

zulfaqar-azmi-t4 and others added 2 commits August 29, 2023 22:33
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…arker_utils/colors.hpp

Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the refactor-marker-utils-colors branch from 6f76306 to 0dd15e4 Compare August 29, 2023 13:34
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 marked this pull request as ready for review August 29, 2023 13:34
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 29, 2023
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 enabled auto-merge (squash) August 29, 2023 13:59
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit 4c714ed into autowarefoundation:main Aug 29, 2023
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the refactor-marker-utils-colors branch August 29, 2023 15:40
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Aug 30, 2023
…refoundation#4797)

* refactor(behavior_path_planner): use function with color name

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/include/behavior_path_planner/marker_utils/colors.hpp

Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
kyoichi-sugahara pushed a commit to tier4/autoware.universe that referenced this pull request Sep 12, 2023
…refoundation#4797)

* refactor(behavior_path_planner): use function with color name

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/include/behavior_path_planner/marker_utils/colors.hpp

Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
kyoichi-sugahara added a commit to tier4/autoware.universe that referenced this pull request Sep 12, 2023
zulfaqar-azmi-t4 added a commit to tier4/autoware.universe that referenced this pull request Sep 14, 2023
…refoundation#4797)

* refactor(behavior_path_planner): use function with color name

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/include/behavior_path_planner/marker_utils/colors.hpp

Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (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.

2 participants