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

fix(behavior_path_planner): add empty guard to combinePath #5147

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Sep 26, 2023

Description

add empty guard to combinePath

fix freespace pull out dying

(gdb) p path2.points
$4 = std::vector of length 0, capacity 0
(gdb) f 15
#15 0x00007f5c9b673d94 in behavior_path_planner::FreespacePullOut::plan (this=<optimized out>, start_pose=..., end_pose=...) at /home/kosuke55/pilot-auto/src/autoware/universe/planning/behavior_path_planner/src/utils/start_planner/freespace_pull_out.cpp:100
100         start_planner_utils::combineReferencePath(last_path, road_center_line_path),
(gdb) f 14
#14 behavior_path_planner::start_planner_utils::combineReferencePath (path1=..., path2=...) at /home/kosuke55/pilot-auto/src/autoware/universe/planning/behavior_path_planner/src/utils/start_planner/util.cpp:47
47        path.points.insert(path.points.end(), next(path2.points.begin()), path2.points.end());
(gdb) l
42      {
43        PathWithLaneId path;
44        path.points.insert(path.points.end(), path1.points.begin(), path1.points.end());
45
46        // skip overlapping point
47        path.points.insert(path.points.end(), next(path2.points.begin()), path2.points.end());
48
49        PathWithLaneId filtered_path = path;
50        filtered_path.points = motion_utils::removeOverlapPoints(filtered_path.points);
51        return filtered_path;
(gdb) f 15
#15 0x00007f5c9b673d94 in behavior_path_planner::FreespacePullOut::plan (this=<optimized out>, start_pose=..., end_pose=...) at /home/kosuke55/pilot-auto/src/autoware/universe/planning/behavior_path_planner/src/utils/start_planner/freespace_pull_out.cpp:100
100         start_planner_utils::combineReferencePath(last_path, road_center_line_path),
(gdb) p road_center_line_path
$5 = {header = {stamp = {sec = 0, nanosec = 0}, frame_id = ""}, points = std::vector of length 0, capacity 0, left_bound = std::vector of length 0, capacity 0, right_bound = std::vector of length 0, capacity 0}

Related links

none

Tests performed

2023/09/27 https://evaluation.tier4.jp/evaluation/reports/1165d183-1910-5451-a816-41d1da57d444/?project_id=prd_jt

Notes for reviewers

Interface changes

none

Effects on system behavior

none

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Sep 26, 2023
@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 26, 2023
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

LGTM!

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (68ee0f2) 14.89% compared to head (9bcf86a) 14.89%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5147   +/-   ##
=======================================
  Coverage   14.89%   14.89%           
=======================================
  Files        1625     1625           
  Lines      112470   112458   -12     
  Branches    34712    34713    +1     
=======================================
  Hits        16750    16750           
+ Misses      76981    76968   -13     
- Partials    18739    18740    +1     
Flag Coverage Δ *Carryforward flag
differential 12.61% <0.00%> (?)
total 14.89% <ø> (+<0.01%) ⬆️ Carriedforward from 68ee0f2

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

Files Coverage Δ
.../include/behavior_path_planner/planner_manager.hpp 19.76% <ø> (ø)
...avior_path_planner/src/utils/goal_planner/util.cpp 7.24% <ø> (+0.48%) ⬆️
...planner/src/utils/start_planner/shift_pull_out.cpp 2.51% <ø> (ø)
...vior_path_planner/src/utils/start_planner/util.cpp 0.00% <ø> (ø)
...tem/system_monitor/src/ntp_monitor/ntp_monitor.cpp 0.00% <ø> (ø)
...th_planner/src/scene_module/lane_change/normal.cpp 4.55% <0.00%> (ø)
...avior_path_planner/src/utils/lane_change/utils.cpp 0.45% <0.00%> (+<0.01%) ⬆️
...ner/src/utils/start_planner/freespace_pull_out.cpp 14.28% <0.00%> (+0.28%) ⬆️
...ner/src/utils/start_planner/geometric_pull_out.cpp 8.10% <0.00%> (ø)
...ning/behavior_path_planner/src/planner_manager.cpp 16.56% <0.00%> (-0.15%) ⬇️
... and 1 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kosuke55 kosuke55 merged commit a596ce2 into main Sep 27, 2023
@kosuke55 kosuke55 deleted the fix/combine_path branch September 27, 2023 00:30
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Sep 27, 2023
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Oct 3, 2023
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