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(obstacle_cruise_planner): clean up a part of the code #3006

Merged

Conversation

takayuki5168
Copy link
Contributor

@takayuki5168 takayuki5168 commented Mar 6, 2023

Description

This PR includes

  • Define Obstacle struct again so that the pointcloud can be converted to this struct.

    • Soon obstacle_cruise_planner will support the pointcloud input. Current Obstacle (TargetObstacle) struct strongly depends on the algorithm rather than just the abstraction of the input.
    • I split TargetObstacle to
      • Obstacle struct which is the abstraction of the input for objects and pointcloud
      • Stop/Cruise/SlowDown Obstacle struct which is obstacle data for each algorithm.
  • Refactor obstacle filtering method

  • Rename some parameters

    • e.g. current_pose -> ego_pose
  • use std::optional instead of boost::optional

  • Implement slow down function which is currently empty.

    • I will create another PR for slow down implementation.
  • TODO

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 type:documentation Creating or refining documentation. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) labels Mar 6, 2023
@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch from 5bd64b3 to 415b544 Compare March 6, 2023 04:34
@takayuki5168 takayuki5168 changed the title refactor obstacle_cruise_planner refactor(obstacle_cruise_planner): clean up a part of the code Mar 6, 2023
@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch from 415b544 to 8e7f688 Compare March 6, 2023 08:20
@takayuki5168 takayuki5168 added the run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) label Mar 6, 2023
@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch from 8e7f688 to 9c0b021 Compare March 9, 2023 17:04
@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

Patch coverage: 9.97% and project coverage change: -0.01 ⚠️

Comparison is base (6e3dbac) 12.40% compared to head (c7de0bb) 12.39%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3006      +/-   ##
==========================================
- Coverage   12.40%   12.39%   -0.01%     
==========================================
  Files        1369     1369              
  Lines       96209    96222      +13     
  Branches    27729    27719      -10     
==========================================
- Hits        11931    11924       -7     
- Misses      71612    71671      +59     
+ Partials    12666    12627      -39     
Flag Coverage Δ *Carryforward flag
differential 8.75% <9.97%> (?)
total 12.40% <ø> (+<0.01%) ⬆️ Carriedforward from 6e3dbac

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

Impacted Files Coverage Δ
...e_planner/include/obstacle_cruise_planner/node.hpp ∅ <ø> (∅)
...se_planner/pid_based_planner/pid_based_planner.hpp 22.22% <ø> (ø)
...ruise_planner/pid_based_planner/pid_controller.hpp 0.00% <0.00%> (ø)
..._planner/include/obstacle_cruise_planner/utils.hpp 0.00% <0.00%> (ø)
...ation_based_planner/optimization_based_planner.cpp 0.00% <0.00%> (ø)
...include/obstacle_cruise_planner/common_structs.hpp 10.52% <6.25%> (-0.39%) ⬇️
.../obstacle_cruise_planner/src/planner_interface.cpp 8.40% <6.89%> (+0.07%) ⬆️
planning/obstacle_cruise_planner/src/utils.cpp 5.40% <8.00%> (+1.32%) ⬆️
planning/obstacle_cruise_planner/src/node.cpp 15.38% <10.68%> (-2.11%) ⬇️
...lanner/src/pid_based_planner/pid_based_planner.cpp 7.26% <14.92%> (+0.35%) ⬆️
... and 2 more

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch from 9c0b021 to 8a938c2 Compare March 13, 2023 05:29
@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch from 8a938c2 to b97d905 Compare March 22, 2023 17:16
xianglunkai pushed a commit to xianglunkai/autoware.universe that referenced this pull request Apr 3, 2023
…ation#3006)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch from b97d905 to f291f92 Compare April 4, 2023 16:22
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch 2 times, most recently from 6240085 to eabf295 Compare April 8, 2023 02:24
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 force-pushed the refactor/obstacle-cruise-planner branch from eabf295 to c43f614 Compare April 8, 2023 06:24
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 marked this pull request as ready for review April 10, 2023 07:44
@takayuki5168 takayuki5168 requested review from purewater0901 and a team as code owners April 10, 2023 07:44
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Copy link
Contributor

@purewater0901 purewater0901 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 merged commit 61d886f into autowarefoundation:main Apr 11, 2023
@takayuki5168 takayuki5168 deleted the refactor/obstacle-cruise-planner branch April 11, 2023 08:50
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:deploy-docs Mark for deploy-docs action generation. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants